/* ================================
   RetroSuit — Intermediary Guide CSS
   ================================ */

/* -------- Root Variables -------- */
:root {
  --bg-dark: #0e0e12;
  --bg-card: #121212;
  --bg-accent: #1f1f27;
  --primary: #4f8cff;
  --text-main: #ffffff;
  --text-muted: rgba(255,255,255,0.82);
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-light: 0 4px 14px rgba(0,0,0,0.3);
  --transition: 0.25s ease;
  --font-base: "Poppins", sans-serif;
}

/* -------- Base Styles -------- */
body {
  font-family: var(--font-base);
  background: var(--bg-dark);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  line-height: 1.75;
  font-size: 16.5px;
}

/* -------- Hero Section -------- */
.doc-hero {
  text-align: center;
  padding: 5.5rem 1.75rem 4rem;
  background: linear-gradient(180deg, #4f8cff18, transparent 80%);
  border-radius: 30px;
  max-width: 1040px;
  margin: 0 auto 3.5rem;
}

.doc-hero h1 {
  font-size: 2.7rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.2px;
}

.doc-hero p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.2rem;
  opacity: 0.95;
}

/* -------- Content Wrapper -------- */
.doc-content {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 1.75rem 4.5rem;
}

.doc-container {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

/* -------- Section Cards -------- */
.doc-section {
  background: var(--bg-card);
  padding: 2.6rem 2.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
}

.doc-section h2 {
  font-size: 1.85rem;
  margin-bottom: 1.1rem;
  letter-spacing: 0.2px;
}

.doc-section p {
  margin: 0.75rem 0 1rem;
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* -------- Ordered Steps -------- */
.doc-section ol {
  margin: 1.4rem 0 1.2rem 1.5rem;
  padding-left: 1.1rem;
}

.doc-section ol li {
  margin-bottom: 0.85rem;
  padding-left: 0.35rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.doc-section ol li strong {
  color: var(--text-main);
}

/* -------- Bullet Lists -------- */
.doc-section ul {
  margin: 1.2rem 0 0.75rem 1.5rem;
  padding-left: 1.1rem;
}

.doc-section ul li {
  margin-bottom: 0.65rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* -------- Links -------- */
.doc-section a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
  font-weight: 500;
}

.doc-section a:hover {
  color: #7aaaff;
  text-decoration: underline;
}

/* -------- Action Button -------- */
.btn-secondary {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(79,140,255,0.14);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79,140,255,0.28);
}

/* -------- Highlighted Notice (optional use) -------- */
.doc-note {
  margin-top: 1.25rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-accent);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* -------- Responsive -------- */
@media (max-width: 900px) {
  body {
    font-size: 16px;
  }

  .doc-hero {
    padding: 4.5rem 1.4rem 3.5rem;
  }

  .doc-hero h1 {
    font-size: 2.2rem;
  }

  .doc-section {
    padding: 2rem 1.75rem;
  }

  .doc-section h2 {
    font-size: 1.6rem;
  }
}

/* ================================
   Modal — FULL WORKING STYLES
   ================================ */

/* -------- Modal Overlay (CRITICAL) -------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;

  /* hidden by default */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Visible state */
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* -------- Modal Card -------- */
.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;

  background: linear-gradient(
    180deg,
    rgba(79,140,255,0.06),
    var(--bg-card) 30%
  );

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  padding: 2.4rem 2.4rem 2.6rem;
}

/* -------- Modal Heading -------- */
.modal-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.2px;
  color: var(--text-main);
}

/* -------- Modal Description -------- */
.modal-description {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* -------- Modal Form -------- */
.modal-card form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

/* Form Group */
.modal-card .form-group {
  display: flex;
  flex-direction: column;
}

/* Label */
.modal-card label {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

/* Input */
.modal-card input[type="email"] {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #1b1b1f;
  color: #ffffff;
  font-size: 1rem;
  transition: border var(--transition), box-shadow var(--transition);
}

.modal-card input::placeholder {
  color: rgba(255,255,255,0.45);
}

.modal-card input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 6px rgba(79,140,255,0.6);
}

/* -------- Submit Button -------- */
.modal-card .primary-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.95rem 1.25rem;

  font-size: 1rem;
  font-weight: 600;

  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;

  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79,140,255,0.35);
  transition: var(--transition);
}

.modal-card .primary-btn:hover {
  background: #3d74d6;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(79,140,255,0.5);
}

/* -------- Close Button -------- */
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,0.06);
  border: none;

  font-size: 1.4rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* -------- Mobile -------- */
@media (max-width: 520px) {
  .modal-card {
    margin: 0 1rem;
    padding: 2rem 1.75rem 2.25rem;
  }

  .modal-card h2 {
    font-size: 1.5rem;
  }
}
