/* ===============================
   ARMSTRONG – LIFESTYLE STYLES
   =============================== */

:root {
  --color-bg: #fafbfe;
  --color-primary: #1a3f7a;
  --color-primary-soft: #4e7fd6;
  --color-accent: #2d8cff;
  --color-warm: #f59e42;
  --color-warm-soft: #fff4e0;
  --color-teal: #1db9a0;
  --color-teal-soft: #e3faf5;
  --color-surface: #f2f5fc;
  --color-surface-warm: #fef8f0;
  --color-border: #e2e8f4;
  --color-text-main: #1a2440;
  --color-text-soft: #5d6b8a;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 8px rgba(26, 63, 122, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 63, 122, 0.08);
  --shadow-lg: 0 8px 40px rgba(26, 63, 122, 0.10);
  --shadow-glow: 0 4px 24px rgba(45, 140, 255, 0.18);
  --transition-fast: 0.2s ease-out;
  --transition-med: 0.35s ease-out;
  --max-width: 1020px;
  --gradient-hero: linear-gradient(135deg, #f0f4ff 0%, #fef8f0 50%, #e3faf5 100%);
  --gradient-btn: linear-gradient(135deg, #1a3f7a 0%, #2d6fd6 100%);
  --gradient-warm: linear-gradient(135deg, #fff4e0 0%, #ffe8c2 100%);
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  padding: 88px 20px 64px;
}

@media (min-width: 768px) {
  main {
    padding: 108px 32px 80px;
  }
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ===============================
   TOP NAV
   =============================== */

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  backdrop-filter: blur(16px) saturate(1.4);
  background: rgba(250, 251, 254, 0.88);
  border-bottom: 1px solid rgba(226, 232, 244, 0.7);
  z-index: 40;
}

.top-nav-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--transition-fast);
}

.brand-mark:hover {
  opacity: 0.8;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(26, 63, 122, 0.15);
}

.brand-logo span {
  font-weight: 800;
  font-size: 17px;
  color: #ffffff;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
  color: var(--color-primary);
}

.page-indicator {
  font-size: 13px;
  color: var(--color-text-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-indicator > span {
  display: none;
}

@media (min-width: 640px) {
  .page-indicator > span {
    display: inline;
  }
}

.page-indicator-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 600;
}

.page-indicator-pill span {
  color: var(--color-primary);
}

/* ===============================
   BUTTONS
   =============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  border: none;
  outline: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: #ffffff;
  color: var(--color-primary);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-primary-soft);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-ghost:hover {
  border-color: var(--color-primary-soft);
  color: var(--color-primary);
  background: var(--color-surface);
}

/* ===============================
   HERO
   =============================== */

.hero {
  display: grid;
  gap: 40px;
}

@media (min-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
  }
}

.hero-heading {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  margin: 4px 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-heading span {
  background: var(--gradient-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text-soft);
  max-width: 520px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.hero-note {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 12px;
  opacity: 0.8;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-warm-soft);
  font-size: 13px;
  color: #b37318;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(245, 158, 66, 0.2);
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

/* ===============================
   DOCTOR BLOCK
   =============================== */

.doctor-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.doctor-photo {
  overflow: hidden;
  background: linear-gradient(180deg, #e8f0ff 0%, #f8f9ff 100%);
}

.doctor-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.doctor-figure {
  width: 60%;
  height: 80%;
  border-radius: 18px;
  border: 1px solid rgba(11, 60, 128, 0.12);
  background: linear-gradient(145deg, #ffffff, #e4eefc);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
}

.doctor-figure-placeholder {
  width: 60%;
  height: 58%;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 10%, #ffffff 0, #d5e4ff 40%, #9eb7ea 100%);
  margin-bottom: 12px;
}

.doctor-figure-label {
  font-size: 12px;
  color: var(--color-text-soft);
}

.doctor-info {
  padding: 20px 24px 24px;
  display: grid;
  gap: 8px;
}

.doctor-name {
  font-weight: 700;
  font-size: 17px;
}

.doctor-specialty {
  font-size: 14px;
  color: var(--color-primary-soft);
  font-weight: 500;
}

.doctor-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.doctor-pill {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 600;
}

.doctor-disclaimer {
  font-size: 12px;
  color: var(--color-text-soft);
  opacity: 0.8;
  line-height: 1.5;
}

/* ===============================
   SECTIONS
   =============================== */

.section {
  margin-top: 56px;
}

.section-header {
  margin-bottom: 24px;
}

.section-kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-warm);
  font-weight: 700;
  margin-bottom: 4px;
}

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 6px 0 10px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-soft);
  max-width: 640px;
  line-height: 1.7;
}

/* Colored section backgrounds */
.section-highlight {
  background: var(--color-surface);
  margin-left: -20px;
  margin-right: -20px;
  padding: 48px 20px;
  border-radius: 0;
}

@media (min-width: 768px) {
  .section-highlight {
    margin-left: -32px;
    margin-right: -32px;
    padding: 56px 32px;
    border-radius: var(--radius-lg);
  }
}

.section-highlight-warm {
  background: var(--color-surface-warm);
  margin-left: -20px;
  margin-right: -20px;
  padding: 48px 20px;
  border-radius: 0;
}

@media (min-width: 768px) {
  .section-highlight-warm {
    margin-left: -32px;
    margin-right: -32px;
    padding: 56px 32px;
    border-radius: var(--radius-lg);
  }
}

/* ===============================
   PHOTO-TEXT WRAP
   =============================== */

.photo-text-wrap {
  overflow: hidden;
}

.photo-text-wrap .float-photo {
  float: right;
  width: 44%;
  max-width: 400px;
  margin: 0 0 24px 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  shape-outside: margin-box;
  box-shadow: var(--shadow-md);
}

.photo-text-wrap .float-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.photo-text-wrap .section-kicker,
.photo-text-wrap .section-title,
.photo-text-wrap .section-subtitle {
  max-width: none;
}

@media (max-width: 720px) {
  .photo-text-wrap .float-photo {
    float: none;
    width: 100%;
    max-width: none;
    margin: 16px 0 24px;
  }
}

/* Image blocks */
.image-block {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  padding: 40px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 16px 0 4px;
}

.image-block--tall {
  padding: 72px 16px;
}

/* ===============================
   GRID & CARDS
   =============================== */

.grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.card {
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius);
  border: 1px solid rgba(226, 232, 244, 0.7);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-title {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}

.card-body {
  font-size: 15px;
  color: var(--color-text-soft);
  line-height: 1.65;
}

.card-tag {
  font-size: 12px;
  color: var(--color-warm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===============================
   TECHNOLOGY / INGREDIENT CARDS
   =============================== */

.ingredient-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
}

.ingredient-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(26, 63, 122, 0.15);
}

.ingredient-meta {
  font-size: 13px;
  color: var(--color-text-soft);
}

.info-hint {
  margin-top: 24px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-warm-soft);
  font-size: 13px;
  color: #8a6525;
  line-height: 1.6;
  border: 1px solid rgba(245, 158, 66, 0.15);
}

/* ===============================
   INFOGRAPHIC / STEPS
   =============================== */

.infographic-row {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

@media (min-width: 720px) {
  .infographic-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.infographic-item {
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary-soft);
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.65;
  box-shadow: var(--shadow-sm);
}

.infographic-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* ===============================
   QUESTIONNAIRE
   =============================== */

.survey-shell {
  max-width: 640px;
  margin: 0 auto;
}

.progress-bar-shell {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-inner {
  height: 100%;
  width: 0;
  background: var(--gradient-btn);
  border-radius: inherit;
  transition: width 0.4s ease-out;
}

.survey-step-label {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-bottom: 16px;
  font-weight: 600;
}

.survey-card {
  padding: 24px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 244, 0.7);
}

.survey-question {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

.survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-soft);
  cursor: pointer;
  background: #ffffff;
  transition: all var(--transition-fast);
}

.option-pill:hover {
  border-color: var(--color-primary-soft);
  background: var(--color-surface);
  color: var(--color-primary);
}

.option-pill.selected {
  background: var(--gradient-btn);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: scale(1.02);
}

.survey-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.survey-result {
  margin-top: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--color-teal-soft);
  font-size: 14px;
  color: #166b5c;
  line-height: 1.65;
  display: none;
  border: 1px solid rgba(29, 185, 160, 0.2);
}

.survey-result.visible {
  display: block;
}

.survey-message {
  margin-top: 8px;
}

/* ===============================
   OFFER / QUANTITY
   =============================== */

.offer-points {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 15px;
  color: var(--color-text-soft);
}

.offer-points li {
  display: flex;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 244, 0.5);
  transition: transform var(--transition-fast);
}

.offer-points li:hover {
  transform: translateX(4px);
}

.offer-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.quantity-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 840px) {
  .quantity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.quantity-card {
  padding: 28px 24px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.quantity-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  pointer-events: none;
}

.quantity-card:hover::before {
  border-color: var(--color-primary-soft);
}

.quantity-card.selected {
  background: linear-gradient(135deg, #f0f4ff 0%, #fef8f0 100%);
  box-shadow: var(--shadow-md);
}

.quantity-card.selected::before {
  border-color: var(--color-primary);
}

.price-main {
  font-size: 28px;
  font-weight: 800;
  margin-top: 8px;
  color: var(--color-primary);
}

.price-sub {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-top: 2px;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-warm-soft);
  font-size: 12px;
  font-weight: 700;
  color: #b37318;
  margin-top: 8px;
  border: 1px solid rgba(245, 158, 66, 0.2);
}

/* ===============================
   PRODUCT / REVIEWS / FAQ
   =============================== */

.product-layout {
  display: grid;
  gap: 32px;
}

@media (min-width: 880px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}

.product-media {
  position: sticky;
  top: 80px;
  align-self: start;
}

.product-main-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #ffffff;
}

.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-gallery {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.product-thumb {
  flex: 1;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  opacity: 0.6;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-sm);
}

.product-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.product-thumb.active {
  border-color: var(--color-primary);
  opacity: 1;
  box-shadow: var(--shadow-md);
}

.tagline {
  font-size: 13px;
  color: var(--color-warm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 8px;
}

.pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 600;
}

.reviews {
  margin-top: 32px;
}

.reviews h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.review-card {
  padding: 20px 24px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 244, 0.5);
  margin-bottom: 12px;
  position: relative;
}

.review-card::before {
  content: "❝";
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 36px;
  color: var(--color-border);
  line-height: 1;
}

.review-card p {
  font-size: 15px;
  font-style: italic;
  color: var(--color-text-main);
  line-height: 1.65;
  margin: 0 0 8px;
}

.review-stars {
  color: var(--color-warm);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-soft);
}

.review-disclaimer {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-top: 12px;
  opacity: 0.8;
  line-height: 1.6;
}

.faq {
  margin-top: 32px;
}

.faq h2 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
}

.faq-item {
  padding: 16px 20px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 244, 0.5);
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-q {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-q::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
  color: var(--color-primary-soft);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  font-size: 14px;
  color: var(--color-text-soft);
  margin-top: 8px;
  line-height: 1.65;
}

/* ===============================
   CHECKOUT
   =============================== */

.checkout-shell {
  max-width: 720px;
  margin: 0 auto;
}

.checkout-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.step-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--color-surface);
  color: var(--color-text-soft);
  transition: all var(--transition-fast);
}

.step-pill.current {
  background: var(--gradient-btn);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.checkout-card {
  padding: 28px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(226, 232, 244, 0.5);
}

.field-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .field-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
}

.field input,
.field select,
.field textarea {
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.1);
}

.field-helper {
  font-size: 12px;
  color: var(--color-text-soft);
}

.error {
  border-color: #e53e3e !important;
  background: #fff5f5;
}

.error-text {
  font-size: 12px;
  color: #c53030;
  font-weight: 500;
}

.payment-options {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .payment-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  background: #ffffff;
  transition: all var(--transition-fast);
}

.payment-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: var(--color-primary-soft);
}

.payment-option.selected {
  border-color: var(--color-primary);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.payment-label {
  font-size: 15px;
  font-weight: 600;
}

.payment-tagline {
  font-size: 12px;
  color: var(--color-text-soft);
}

.secure-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--color-text-soft);
}

.secure-icons {
  display: flex;
  gap: 8px;
}

.secure-pill {
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-weight: 600;
}

.disclaimer-text {
  font-size: 12px;
  color: var(--color-text-soft);
  margin-top: 12px;
  opacity: 0.8;
}

.success-state {
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--color-teal-soft);
  border: 1px solid rgba(29, 185, 160, 0.25);
  font-size: 14px;
  color: #166b5c;
  display: none;
  line-height: 1.65;
}

.success-state.visible {
  display: block;
}

/* ===============================
   LEGAL & CONTACT
   =============================== */

.legal-section {
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
}

.legal-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
}

.legal-section p,
.legal-section ul {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.legal-section ul {
  padding-left: 20px;
}

.anchor-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.anchor-links a {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-primary);
  transition: all var(--transition-fast);
}

.anchor-links a:hover {
  background: var(--gradient-btn);
  color: #ffffff;
}

.contact-layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 840px) {
  .contact-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.map-placeholder {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1a3f7a 0%, #2d6fd6 60%, #4e9eff 100%);
  color: #ffffff;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.map-placeholder h3 {
  font-size: 18px;
  font-weight: 700;
}

.map-placeholder p {
  font-size: 14px;
  opacity: 0.9;
}

.map-marker {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--color-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(245, 158, 66, 0.3);
}

/* ===============================
   FOOTER
   =============================== */

.footer {
  margin-top: 56px;
  padding: 24px 0;
  border-top: 1px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  position: relative;
  padding-bottom: 2px;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-btn);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.footer-links a:hover::after {
  width: 100%;
}

/* ===============================
   LOADER & REVEAL
   =============================== */

.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(250, 251, 254, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.page-loader.visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

.loader-bar-shell {
  width: 200px;
  height: 4px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface);
}

.loader-bar-inner {
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient-btn);
  animation: loaderSlide 1.1s infinite ease-in-out;
}

.loader-text {
  font-size: 14px;
  color: var(--color-text-soft);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loaderSlide {
  0% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(30%);
  }
  100% {
    transform: translateX(130%);
  }
}

/* ===============================
   UTILITY: COUNTERS / STATS
   =============================== */

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--color-primary);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 4px;
}

/* ===============================
   CHECKOUT FORM (pages 8-10)
   =============================== */

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form .form-group {
  display: grid;
  gap: 6px;
}

.checkout-form label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-main);
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  font-family: inherit;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.1);
}

.checkout-form .form-group-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkout-form .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Payment option cards */
.payment-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  background: #ffffff;
  transition: all var(--transition-fast);
  margin-bottom: 10px;
}

.payment-option-card:hover {
  border-color: var(--color-primary-soft);
  box-shadow: var(--shadow-sm);
}

.payment-option-card input[type="radio"] {
  accent-color: var(--color-primary);
}

.payment-option-card input[type="radio"]:checked ~ .payment-option-content {
  color: var(--color-primary);
}

.payment-option-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
}

.security-info {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--color-teal-soft);
  font-size: 13px;
  color: #166b5c;
  line-height: 1.6;
  border: 1px solid rgba(29, 185, 160, 0.15);
}

.security-info a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Contact grid & form */
.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 840px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.contact-form h2 {
  margin-top: 0;
  font-size: 18px;
}

.contact-form .form-group {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  border-radius: 12px;
  border: 1.5px solid var(--color-border);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  background: #ffffff;
  font-family: inherit;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 3px rgba(45, 140, 255, 0.1);
}

.footer-copyright {
  font-weight: 500;
}

/* ===============================
   ORDER SUMMARY & CHECKOUT (page 10)
   =============================== */

.checkout-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 18px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-grid--checkout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 720px) {
  .quantity-grid--checkout {
    grid-template-columns: 1fr;
  }
}

.quantity-grid--checkout .quantity-card {
  padding: 18px 16px;
}

.quantity-grid--checkout .card-title {
  font-size: 17px;
}

.quantity-grid--checkout .price-main {
  font-size: 22px;
}

/* Order summary box */
.order-summary-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  padding: 20px 22px;
  margin-bottom: 24px;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: var(--color-text-soft);
  border-bottom: 1px solid rgba(226, 232, 244, 0.5);
}

.order-summary-row:last-child {
  border-bottom: none;
}

.order-summary-row span:last-child {
  font-weight: 600;
  color: var(--color-text-main);
}

.order-summary-total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 2px solid var(--color-primary-soft) !important;
  border-bottom: none !important;
}

.order-summary-total span:first-child {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-main);
}

.order-summary-total span:last-child {
  font-weight: 800;
  font-size: 20px;
  color: var(--color-primary);
}

/* Payment fields */
.payment-fields {
  margin-top: 20px;
  padding: 20px 22px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  animation: fadeSlideIn 0.3s ease-out;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.payment-fields-note {
  font-size: 13px;
  color: var(--color-text-soft);
  margin: 0 0 16px 0;
  line-height: 1.6;
  padding: 10px 14px;
  background: var(--color-teal-soft);
  border-radius: 10px;
  border: 1px solid rgba(29, 185, 160, 0.12);
  color: #166b5c;
}

/* Multibanco reference preview */
.multibanco-ref-preview {
  background: #ffffff;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  padding: 16px 20px;
  margin-top: 4px;
}

.multibanco-ref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-soft);
}

.multibanco-ref-row:not(:last-child) {
  border-bottom: 1px solid rgba(226, 232, 244, 0.5);
}

.multibanco-ref-row strong {
  color: var(--color-text-main);
  font-weight: 700;
  font-family: 'SF Mono', 'Menlo', 'Monaco', monospace;
  letter-spacing: 0.5px;
}

/* Larger submit button */
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  font-weight: 700;
}

/* Success state redesign */
.order-summary-card .success-state {
  display: none;
  text-align: center;
  padding: 40px 24px;
  animation: fadeSlideIn 0.4s ease-out;
}

.order-summary-card .success-state.visible {
  display: block;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1db9a0, #16a085);
  color: #ffffff;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(29, 185, 160, 0.3);
}

.success-state h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 10px 0;
}

.success-state p {
  font-size: 14px;
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 420px;
  margin: 0 auto;
}

.success-details {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  font-size: 13px;
  color: var(--color-text-main);
  text-align: left;
  line-height: 1.7;
}

.success-details strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

/* Smooth hero gradient background for the body on page 1 */
body[data-page="1"]::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60vh;
  background: linear-gradient(180deg, #f0f4ff 0%, rgba(250, 251, 254, 0) 100%);
  z-index: -1;
  pointer-events: none;
}
