@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&display=swap');

/*
 * Medmastery partner claim page
 * Late-loading visual layer. Behaviour, visibility and inline display values
 * intentionally remain owned by the page template.
 */
:root {
  --mm-navy: #203854;
  --mm-navy-deep: #182d47;
  --mm-blue: #1599d1;
  --mm-blue-dark: #087db7;
  --mm-sky: #eaf7fc;
  --mm-sky-strong: #d5effa;
  --mm-ink: #29415e;
  --mm-muted: #64758a;
  --mm-line: #d8e3ec;
  --mm-bg: #f5f9fc;
  --mm-yellow: #f7ca3c;
  --mm-yellow-hover: #efbc22;
  --mm-green: #168c68;
  --mm-shadow: 0 14px 42px rgba(29, 67, 102, .10);
  --mm-radius: 20px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--mm-bg);
  color: var(--mm-ink);
  font-family: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
::selection { background: #b9e7f7; color: var(--mm-navy); }

/* Loading and invalid states */
#loading-state {
  min-height: 100dvh;
  background: var(--mm-sky);
}
.page-spinner {
  border-color: #c8e9f5;
  border-top-color: var(--mm-blue);
}
#invalid-state { background: var(--mm-bg); }
.invalid-card {
  max-width: 456px;
  border: 1px solid var(--mm-line);
  border-radius: 24px;
  box-shadow: var(--mm-shadow);
  padding: 44px 36px;
}

/* Header: restrained partner lockup */
.page-header {
  height: 74px;
  padding: 0 28px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #e4edf3;
  box-shadow: 0 1px 12px rgba(22, 57, 89, .04);
}
.header-inner {
  max-width: 1120px;
  gap: 15px;
}
.header-mm-logo { height: 48px; width: auto; }
.header-divider {
  color: #b9c8d4;
  font-size: 22px;
  font-weight: 400;
}
.header-partner-wrap { gap: 11px; }
.header-partner-logo { height: 38px; max-width: 190px; }
.header-partner-name {
  color: var(--mm-muted);
  font-size: 13px;
  font-weight: 600;
}

/* Hero / sale treatment */
.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 32px 66px;
  color: var(--mm-navy);
  background:
    radial-gradient(circle at 84% 10%, rgba(255,255,255,.84), transparent 29%),
    linear-gradient(135deg, #f2fbfe 0%, #dff4fc 49%, #c6eaf8 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -170px;
  bottom: -250px;
  border: 1px solid rgba(21,153,209,.12);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 44px;
}
.hero-col-text { align-items: flex-start; }
.hero-col-image {
  min-height: 300px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: #e3f3f8;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.hero-eyebrow,
.section-eyebrow {
  margin-bottom: 17px;
  color: var(--mm-blue-dark);
  background: transparent;
  border: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}
.hero-headline {
  max-width: 590px;
  margin-bottom: 20px;
  color: var(--mm-navy-deep);
  font-size: clamp(33px, 4.2vw, 48px);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.hero-paragraph {
  max-width: 530px;
  margin-bottom: 13px;
  color: var(--mm-ink);
  font-size: 18px;
  line-height: 1.55;
}
.hero-price-intro {
  max-width: 480px;
  margin-bottom: 12px;
  color: var(--mm-muted);
  font-size: 15px;
}
.hero-price { gap: 5px; }
.hero-price-row { gap: 9px; }
.hero-price-amount {
  color: var(--mm-navy);
  font-size: 48px;
  letter-spacing: -.045em;
}
.hero-price-per, .hero-price-orig { color: var(--mm-muted); }
.hero-price-orig { opacity: .7; }
.hero-save-badge {
  color: var(--mm-blue-dark);
  background: #fff;
  border: 1px solid #c2e6f3;
  padding: 5px 13px;
}
.hero-cta-btn, .cta-btn, .btn-submit {
  background: var(--mm-yellow);
  color: var(--mm-navy-deep);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(168, 121, 12, .16);
  font-weight: 800;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.hero-cta-btn {
  margin-top: 0;
  padding: 15px 34px;
}
.hero-cta-btn:hover, .cta-btn:hover, .btn-submit:hover {
  background: var(--mm-yellow-hover);
  box-shadow: 0 11px 24px rgba(168, 121, 12, .22);
  transform: translateY(-2px);
}
.sale-banner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: -40px auto 42px;
  padding: 0;
  background: transparent;
}
.sale-banner-inner {
  min-height: 62px;
  padding: 13px 18px;
  border: 1px solid rgba(21,153,209,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 8px 26px rgba(21, 104, 145, .06);
}
.sale-pill {
  padding: 7px 13px;
  color: var(--mm-navy);
  background: var(--mm-yellow);
  font-size: 11px;
  letter-spacing: .06em;
}
.sale-line1 { color: var(--mm-navy); font-size: 15px; }
.sale-line2 { color: var(--mm-muted); font-size: 13px; }

/* Claim split */
.claim-section {
  max-width: 1120px;
  padding: 56px 24px 20px;
  gap: 28px;
}
.benefits-col {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--mm-line);
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(36,59,83,.06);
}
.benefits-col h2, .form-col-title {
  color: var(--mm-navy);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.benefits-col h2 { max-width: 440px; margin-bottom: 27px; }
.benefits-list { gap: 18px; }
.benefits-list li {
  color: var(--mm-ink);
  font-size: 16px;
  line-height: 1.5;
}
.benefit-check {
  width: 23px;
  height: 23px;
  min-width: 23px;
  margin-top: 0;
  background: #5dbd78;
  box-shadow: 0 3px 8px rgba(93,189,120,.24);
}
.form-col-card {
  padding: 32px;
  border: 2px solid #b3e5f4;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(49,174,216,.18);
}
.form-col-title { margin-bottom: 8px; font-size: 22px; }
.form-col-sub { margin-bottom: 24px; color: var(--mm-muted); font-size: 15px; }
label {
  color: var(--mm-navy);
  font-size: 11px;
  letter-spacing: .07em;
}
input, select {
  height: 49px;
  border: 1px solid #cad9e4;
  border-radius: 10px;
  color: var(--mm-navy);
  background: #fbfdfe;
}
input::placeholder { color: #9aaaba; }
input:focus, select:focus {
  border-color: var(--mm-blue);
  box-shadow: 0 0 0 3px rgba(21,153,209,.13);
}
.btn-submit {
  height: 52px;
  margin-top: 8px;
  font-size: 16px;
}
.error-text { color: #c53b43; }

/* Success state */
.success-card { padding-top: 2px; }
.success-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 19px;
  background: #e1f6ed;
}
.success-icon svg { color: var(--mm-green); }
.success-title { color: var(--mm-navy); font-size: 25px; }
.welcome-back-notice {
  color: #176a85;
  background: #e9f8fc;
  border-color: #b8e2ef;
}
#cross-partner-warning {
  color: #8b5a12;
  background: #fff8df;
  border-color: #efd184;
}
.discount-box {
  background: var(--mm-sky);
  border: 1px solid #b8e3f1;
}
.discount-value { color: var(--mm-blue-dark); }
.code-box {
  border: 1px dashed #b6cbd9;
  background: #f7fafc;
}
.code-value { color: var(--mm-navy); }
.btn-copy { border-color: #c8d8e4; color: var(--mm-navy); }
.btn-copy:hover { border-color: var(--mm-blue); color: var(--mm-blue-dark); }
.btn-copy-checkout {
  background: var(--mm-blue);
  border-radius: 11px;
}
.btn-copy-checkout:hover { background: var(--mm-blue-dark); }
.step-number { background: var(--mm-blue); }

/* Shared content cards */
.platform-section, .faq-section { background: var(--mm-bg); }
.platform-section, .courses-section, .faq-section, .cta-section {
  padding-top: 88px;
  padding-bottom: 88px;
}
.platform-inner, .courses-inner, .testimonial-inner { max-width: 1120px; }
.section-title {
  color: var(--mm-navy);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.035em;
}
.platform-desc, .section-sub { color: var(--mm-muted); }
.stat-cards, .benefits-grid { gap: 18px; }
.stat-card, .benefit-card {
  border: 1px solid var(--mm-line);
  border-radius: 16px;
  box-shadow: none;
}
.stat-card { padding: 25px; }
.stat-card-title { color: var(--mm-blue-dark); }
.stat-card-body, .benefit-card p { color: var(--mm-muted); }
.benefit-card h3 { color: var(--mm-navy); }
.benefit-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.benefit-card .benefit-icon {
  width: 104px;
  height: 104px;
  margin: 0 auto 16px;
}
.benefit-card .benefit-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.courses-section { background: var(--mm-bg); }
.courses-grid { gap: 22px; margin-top: 38px; }
.course-card {
  border: 1px solid var(--mm-line);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(28,67,102,.08);
  background: #fff;
  color: var(--mm-navy);
  min-width: 0;
}
.course-card:has(.course-caption) > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.6;
  object-fit: cover;
  object-position: top center;
}
.course-caption { display: grid; gap: 2px; padding: 2px 16px 18px; }
.course-caption strong { font-size: 15px; line-height: 1.3; }
.course-caption small { color: var(--mm-blue-dark); text-transform: uppercase; font-size: 11px; letter-spacing: .07em; font-weight: 800; }
.course-card:hover {
  box-shadow: 0 14px 30px rgba(28,67,102,.14);
}
.explore-link { color: var(--mm-blue-dark); }

.testimonial-section {
  padding-top: 76px;
  padding-bottom: 76px;
  background: var(--mm-sky);
}
.testimonial-grid { gap: 16px; margin-top: 28px; }
.testimonial-card {
  align-items: flex-start;
  text-align: left;
  padding: 26px 30px 24px;
  border: 1px solid #d6eaf3;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(28,67,102,.07);
}
.testimonial-stars { color: #e4a33a; font-size: 18px; letter-spacing: 2px; line-height: 1.2; margin-bottom: 12px; }
.testimonial-title { font-size: 16px; line-height: 1.35; margin-bottom: 7px; }
.testimonial-title, .testimonial-author { color: var(--mm-navy); }
.testimonial-body { flex: 0 1 auto; }
.testimonial-body p { color: var(--mm-ink); font-size: 15px; line-height: 1.5; }
.testimonial-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; text-align: left; }
.testimonial-author, .testimonial-source { color: #7b91a3; font-size: 12px; font-weight: 700; line-height: 1.4; }
.testimonial-source { margin-top: 0; }
.testimonial-source::before { content: "·"; margin-right: 9px; }

.trustpilot-strip {
  max-width: 1120px;
  margin: 40px auto;
  padding: 30px 32px;
  border: 1px solid #dcebea;
  border-radius: 14px;
  background: linear-gradient(105deg, #edf9fd 0%, #ecfcf5 100%);
  text-align: left;
}
.trustpilot-strip-inner {
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}
.trustpilot-brand { display: flex; align-items: center; gap: 12px; color: var(--mm-navy-deep); font-size: 16px; }
.trustpilot-stars { color: #00a979; font-size: 21px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.trustpilot-score { margin: 8px 0 0; color: var(--mm-ink); font-size: 15px; font-weight: 600; }
.trustpilot-text { max-width: 490px; margin: 0; color: var(--mm-ink); font-size: 16px; line-height: 1.55; }

.faq-inner { max-width: 760px; }
.faq-item {
  border: 1px solid var(--mm-line);
  border-radius: 13px;
  box-shadow: none;
}
.faq-question { padding: 19px 21px; color: var(--mm-navy); }
.faq-question:hover { color: var(--mm-blue-dark); }
.faq-answer-inner { color: var(--mm-muted); border-top-color: #e7eef3; }

.cta-section {
  padding: 84px 24px;
  background: var(--mm-navy);
  border-top: 4px solid var(--mm-blue);
}
.cta-inner {
  max-width: 1120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.cta-headline {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -.035em;
  white-space: nowrap;
}
.cta-sub { opacity: .9; }
.cta-btn { align-self: center; flex-shrink: 0; white-space: nowrap; padding: 15px 36px; }
.page-footer { border-top-color: #e1ebf1; background: #fff; }
.page-footer a { color: #8293a3; }
.page-footer a:hover { color: var(--mm-blue-dark); }

/* Modal remains fully usable while adopting the new surface language. */
.modal-overlay { background: rgba(24,45,71,.42); }
.modal {
  border: 1px solid var(--mm-line);
  box-shadow: 0 20px 60px rgba(17,48,78,.2);
}
.modal-header { border-bottom-color: var(--mm-line); }
.modal-search { border-color: #cad9e4; border-radius: 10px; }
.modal-item:hover { background: var(--mm-sky); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .claim-section { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .benefits-col { padding-right: 0; }
  .trustpilot-strip { margin: 32px 20px; }
}

@media (max-width: 700px) {
  .cta-headline { white-space: normal; font-size: clamp(26px, 6vw, 31px); }
}

@media (max-width: 600px) {
  .page-header { height: 64px; padding: 0 17px; }
  .header-mm-logo { height: 40px; }
  .header-divider { font-size: 18px; }
  .header-partner-logo { height: 30px; max-width: 135px; }
  .header-partner-name { display: none; }
  .hero { padding: 50px 20px 66px; }
  .hero-inner { gap: 28px; }
  .hero-col-image { min-height: 200px; order: 2; width: 100%; max-width: 420px; }
  .hero-col-text { order: 1; }
  .hero-img { max-width: none; max-height: none; }
  .hero-headline { font-size: clamp(33px, 9vw, 44px); }
  .hero-paragraph { font-size: 17px; }
  .sale-banner { margin: -28px auto 30px; }
  .sale-banner-inner { align-items: flex-start; flex-direction: column; gap: 9px; }
  .claim-section { padding: 56px 20px 66px; }
  .benefits-col { padding: 26px 20px; }
  .form-col { order: initial; }
  .benefits-col h2 { font-size: 25px; }
  .form-col-card { padding: 27px 20px 24px; }
  .platform-section, .courses-section, .faq-section, .cta-section {
    padding: 62px 20px;
  }
  .testimonial-section { padding: 62px 20px; }
  .testimonial-card { padding: 24px 22px; }
  .trustpilot-strip { padding: 24px 20px; margin: 24px 16px; }
  .trustpilot-strip-inner { grid-template-columns: 1fr; gap: 16px; }
  .trustpilot-brand { font-size: 15px; }
  .trustpilot-stars { font-size: 18px; }
  .trustpilot-score { font-size: 14px; }
  .trustpilot-text { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}