/* ============================================
   MCA LANDING PAGE — RxPRIME STYLE CLONE
   Colors: #f0f2f5 bg, #0d2340 navy, #0e9e8e teal, #1a5fb4 blue
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f8f7f4;
  --bg2:       #fdfcfa;
  --navy:      #1a1714;
  --navy2:     #2d2925;
  --gold:      #8F6B1E;
  --gold-light:#C8A13A;
  --gold-dark: #6B5216;
  --gold-hover:#B8860B;
  --white:     #ffffff;
  --gray-text: #4a4540;
  --gray-mid:  #7a756f;
  --gray-light:#c8c4bf;
  --gray-line: #dcd8d3;
  --label-gold:#8F6B1E;
  --required:  #8F6B1E;
  --input-bg:  #f9f8f6;
  --input-border: #d4d0cb;
  --input-focus:  #8F6B1E;
  --error:     #a83618;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-serif: Georgia, serif;
  --radius:    6px;
  --shadow-card: 0 2px 16px rgba(26,23,20,0.10), 0 1px 4px rgba(26,23,20,0.06);
  --shadow-form: 0 4px 32px rgba(26,23,20,0.13), 0 1px 6px rgba(26,23,20,0.07);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============ NAVBAR ============ */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
  display: flex;
  align-items: center;
}

.navbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.navbar-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.1;
  text-decoration: none;
}
.logo-img {
  width: 72px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
}
.logo-name span { color: var(--gold); }
.logo-phone {
  font-size: 10px;
  color: var(--gray-mid);
  letter-spacing: 0.3px;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.navbar-nav a {
  color: var(--navy2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background 0.15s;
}
.navbar-nav a:hover { background: var(--bg); }
.navbar-nav a.active { color: var(--gold); font-weight: 600; }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-phone {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}
.navbar-phone:hover { color: var(--gold); }

.btn-apply-nav {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-apply-nav:hover { background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold-dark) 100%); }

/* ============ HERO ============ */
.hero {
  background: var(--bg);
  padding: 72px 28px 64px;
}
.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-text {
  min-width: 0;
}
.hero-video {
  min-width: 0;
}
.hero-video video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}
.video-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
#muteToggle {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
  z-index: 10;
}
#muteToggle:hover {
  background: rgba(0,0,0,0.8);
}
#muteToggle svg {
  width: 16px;
  height: 16px;
  color: #fff;
  stroke: #fff;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-video video {
    max-height: 240px;
    width: 100%;
  }
}

.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--label-gold);
  margin-bottom: 20px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--label-gold);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 600px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  font-size: 16px;
  color: var(--gray-text);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 28px;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 0;
}
.hero-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy2);
}
.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.check-icon svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: white;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============ HOW IT WORKS ============ */
.how-section {
  background: var(--white);
  padding: 72px 28px;
  border-top: 1px solid var(--gray-line);
  border-bottom: 1px solid var(--gray-line);
}

.how-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--label-gold);
  margin-bottom: 16px;
}
.section-title-eyebrow::before,
.section-title-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--label-gold);
  border-radius: 2px;
}

.section-title h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.section-title h2 em {
  font-style: normal;
  color: var(--gold);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg2);
  border: 1px solid var(--gray-line);
  border-radius: 10px;
  padding: 24px;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.step-card p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
}

/* ============ MAIN SPLIT SECTION ============ */
.main-section {
  background: var(--bg);
  padding: 72px 28px 80px;
}
.main-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: start;
}

/* LEFT COLUMN */
.left-col .section-eyebrow { margin-bottom: 16px; }

.left-col h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.4px;
  margin-bottom: 20px;
}
.left-col h2 em {
  font-style: normal;
  color: var(--gold);
}

.left-col .left-desc {
  font-size: 15px;
  color: var(--gray-text);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 480px;
}

.left-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.left-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--navy2);
  line-height: 1.5;
}
.bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 7px;
}

/* RIGHT COLUMN — FORM CARD */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-line);
  border-radius: 12px;
  box-shadow: var(--shadow-form);
  position: sticky;
  top: 76px;
  overflow: hidden;
}

.form-card-header {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--gray-line);
}
.form-card-header h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-card-header p {
  font-size: 13px;
  color: var(--gray-text);
  line-height: 1.6;
}

.rep-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-top: 14px;
  font-size: 12px;
}
.rep-badge-label {
  color: var(--gray-mid);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.rep-badge-code {
  color: var(--gold);
  font-weight: 700;
  font-size: 13px;
}
.rep-badge-note {
  color: var(--gray-text);
  font-size: 11px;
  margin-left: auto;
  text-align: right;
}

.form-card-body {
  padding: 24px 28px 28px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* Scrollbar styling */
.form-card-body::-webkit-scrollbar { width: 4px; }
.form-card-body::-webkit-scrollbar-track { background: transparent; }
.form-card-body::-webkit-scrollbar-thumb { background: var(--gray-light); border-radius: 2px; }

/* ============ FORM ELEMENTS ============ */
.form-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--label-gold);
  margin: 22px 0 6px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-line);
}
.form-section-label:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.form-section-desc {
  font-size: 12px;
  color: var(--gray-text);
  line-height: 1.55;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 14px;
}
.form-field label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 5px;
}
.form-field label .req-tag {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--required);
  text-transform: lowercase;
  letter-spacing: 0;
  font-style: italic;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  color: var(--navy);
  font-size: 13px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: var(--font-sans);
  -webkit-appearance: none;
  appearance: none;
}
.form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a9ab0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(26,95,180,0.10);
  background: var(--white);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--gray-mid); font-size: 12px; }
.form-field select option { background: white; color: var(--navy); }
.form-field textarea { resize: vertical; min-height: 80px; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  gap: 10px;
}

/* File upload */
.file-drop {
  border: 2px dashed var(--gray-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}
.file-drop:hover { border-color: var(--gold); background: #faf8f3; }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop-icon { font-size: 20px; margin-bottom: 6px; color: var(--gold); }
.file-drop-text { font-size: 12px; color: var(--navy2); }
.file-drop-text strong { color: var(--gold); }
.file-drop-sub { font-size: 10.5px; color: var(--gray-mid); margin-top: 4px; }

/* Checkbox */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
}
.checkbox-row label {
  font-size: 11.5px;
  color: var(--gray-text);
  line-height: 1.6;
  cursor: pointer;
}
.checkbox-row label a { color: var(--gold); }

/* Credit auth box */
.credit-auth-box {
  background: var(--bg2);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 11.5px;
  color: var(--gray-text);
  line-height: 1.7;
  margin-bottom: 14px;
}
.credit-auth-box strong { color: var(--navy); }

/* Signature area */
.signature-wrap {
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  margin-bottom: 8px;
}
.signature-canvas {
  width: 100%;
  height: 90px;
  display: block;
  cursor: crosshair;
  touch-action: none;
}
.signature-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  border-top: 1px solid var(--gray-line);
  background: var(--bg2);
}
.sig-label { font-size: 10px; color: var(--gray-mid); }
.sig-clear {
  font-size: 10.5px;
  color: var(--gold);
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.sig-clear:hover { text-decoration: underline; }
.sig-captured {
  display: none;
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  padding: 4px 0;
}

/* Submit button */
.btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 20px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}
.btn-submit:hover { background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold-dark) 100%); }
.btn-submit:disabled { background: var(--gray-light); color: var(--gray-mid); cursor: not-allowed; }

.form-footer-note {
  font-size: 10.5px;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-top: 12px;
  text-align: center;
}
.form-footer-note a { color: var(--gold); }

/* ============ SUCCESS STATE ============ */
.success-state {
  display: none;
  padding: 32px 28px;
  text-align: center;
}
.success-state.show { display: block; }
.success-check {
  width: 56px;
  height: 56px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.success-check svg { width: 26px; height: 26px; fill: none; stroke: white; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.success-state h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.success-state p { font-size: 13px; color: var(--gray-text); line-height: 1.7; margin-bottom: 10px; }
.success-steps { text-align: left; margin-top: 20px; border-top: 1px solid var(--gray-line); padding-top: 18px; }
.success-steps h4 { font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 12px; }
.success-step { display: flex; gap: 12px; margin-bottom: 12px; font-size: 12px; color: var(--gray-text); line-height: 1.5; }
.success-step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--bg2); border: 1px solid var(--gray-line); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--gold); flex-shrink: 0; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--navy);
  padding: 40px 28px 28px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}
.footer-logo {
  font-size: 16px;
  font-weight: 800;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo-img {
  width: 60px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand span { color: var(--gold); }
.footer-logo small { display: block; font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 400; margin-top: 2px; }
.footer-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,0.55); font-size: 12px; text-decoration: none; padding: 4px 10px; border-radius: 4px; transition: color 0.15s; }
.footer-nav a:hover { color: white; }
.footer-phone { color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 600; text-decoration: none; }
.footer-phone:hover { color: white; }
.footer-disclosures { font-size: 11px; color: rgba(255,255,255,0.35); line-height: 1.8; }
.footer-disclosures p { margin-bottom: 8px; }
.footer-disclosures strong { color: rgba(255,255,255,0.55); }
.footer-disclosures a { color: rgba(255,255,255,0.45); }
.footer-bottom { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.3); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .main-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-card { position: static; }
  .form-card-body { max-height: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .navbar-nav { display: none; }
}

@media (max-width: 600px) {
  .logo-img { width: 36px; height: 36px; }
  .footer-logo-img { width: 32px; height: 32px; }
  .hero { padding: 48px 20px 40px; }
  .how-section, .main-section { padding: 48px 20px; }
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .step-card { padding: 16px; }
  .form-card-header, .form-card-body { padding-left: 20px; padding-right: 20px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .form-row-3 { grid-template-columns: 1fr; }
  .hero-checks { flex-direction: column; gap: 8px; }
  .left-col video { max-height: 220px; width: 100%; border-radius: 8px; }
}

/* ============ FIELD ERROR STATE ============ */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(217,48,37,0.08);
}
.field-error-msg {
  font-size: 11px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.form-field.has-error .field-error-msg { display: block; }

/* ============ VALIDATION INLINE ============ */
.sig-required-msg {
  font-size: 11px;
  color: var(--error);
  display: none;
  margin-top: 4px;
}
.sig-required-msg.show { display: block; }