/* ==========================================================================
   UNOUROL - Interactive Multi-Tab Layout Styles
   THEME: Deep Burgundy / Wine with Fullscreen Semi-Transparent Photo Background
   GEO: Finland (Suomi)
   ========================================================================== */

:root {
  --bg-burgundy-dark: #1a020a;
  --bg-burgundy-main: #2f0412;
  --bg-burgundy-light: #48071e;
  --bg-burgundy-accent: #650c2c;
  --brand-wine: #831843;
  --brand-rose: #be185d;
  --brand-rose-light: #fdf2f8;
  --brand-rose-glow: rgba(190, 24, 93, 0.35);
  
  --accent-gold: #f59e0b;
  --accent-gold-dark: #d97706;
  --accent-gold-glow: rgba(245, 158, 11, 0.4);
  
  --surface-card: #ffffff;
  --surface-subtle: #fdf4f7;
  --surface-border: #f3d7e2;
  
  --text-main: #1f2937;
  --text-muted: #5b677a;
  --text-light: #9ca3af;
  --text-white: #ffffff;
  
  --error-red: #ef4444;
  --error-red-bg: #fef2f2;
  --error-red-glow: rgba(239, 68, 68, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(35, 4, 14, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(35, 4, 14, 0.15), 0 8px 10px -6px rgba(35, 4, 14, 0.08);
  --shadow-lg: 0 20px 45px -10px rgba(25, 2, 9, 0.35);
  
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-body);
}

/* Reset & Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.burgundy-theme {
  font-family: var(--font-body);
  background-color: var(--bg-burgundy-dark);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* Fullscreen Semi-transparent Photo Overlay */
.bg-fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, rgba(26, 2, 10, 0.93) 0%, rgba(47, 4, 18, 0.88) 50%, rgba(26, 2, 10, 0.95) 100%), url('trainer-eating.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: #111827;
  line-height: 1.25;
  font-weight: 700;
}

/* Top Announcement Bar */
.top-bar {
  background: rgba(18, 2, 7, 0.95);
  color: #fce7f3;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(251, 113, 133, 0.2);
  backdrop-filter: blur(8px);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-weight: 600;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-gold);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(245, 158, 11, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.top-bar-features {
  display: flex;
  gap: 20px;
  font-size: 0.8rem;
  color: #fbcfe8;
}

/* Main Navigation Header */
.main-nav {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(244, 114, 182, 0.25);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--bg-burgundy-main), var(--brand-rose));
  color: var(--accent-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(131, 24, 67, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--bg-burgundy-main);
  line-height: 1;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--brand-rose);
}

.nav-btn-cta {
  background: linear-gradient(135deg, #be185d 0%, #831843 100%);
  color: white;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.35);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.5);
}

/* ==========================================================================
   HERO HEADER INTRO BLOCK (Burgundy Card)
   ========================================================================== */
.hero-header-block {
  padding: 36px 0 20px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 242, 248, 0.12);
  border: 1px solid rgba(251, 113, 133, 0.35);
  color: #fbcfe8;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #fce7f3;
  max-width: 860px;
  margin-bottom: 24px;
}

/* Trainer Pill Bar */
.trainer-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 20px 8px 8px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.t-pill-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.t-pill-info {
  display: flex;
  flex-direction: column;
}

.t-pill-info strong {
  color: #ffffff;
  font-size: 0.95rem;
}

.t-pill-info span {
  color: #fbcfe8;
  font-size: 0.78rem;
}

.t-pill-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TABS NAVIGATION BAR (STICKY & HIGHLIGHTED)
   ========================================================================== */
.tabs-nav-section {
  position: sticky;
  top: 64px;
  z-index: 95;
  padding: 12px 0 16px;
}

.tabs-nav-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  background: rgba(20, 2, 8, 0.88);
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px);
}

.tab-nav-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #fce7f3;
  user-select: none;
}

.t-icon {
  font-size: 1.3rem;
}

.t-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

.tab-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(251, 113, 133, 0.3);
}

.tab-nav-btn.active {
  background: linear-gradient(135deg, var(--brand-rose), var(--bg-burgundy-main));
  color: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 4px 16px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.tab-nav-btn.active .t-label {
  color: #fef08a;
}

.tab-nav-btn.highlight-tab {
  border-color: rgba(245, 158, 11, 0.4);
}

.tab-nav-btn.highlight-tab:not(.active) {
  background: rgba(245, 158, 11, 0.12);
}

/* ==========================================================================
   TAB PANES (CARDS & ANIMATION)
   ========================================================================== */
.tabs-content-area {
  padding-bottom: 60px;
}

.tab-pane {
  display: none;
  animation: tabFadeIn 0.35s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

.tab-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.tab-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #fce7f3;
}

.tab-chapter-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-rose), var(--bg-burgundy-main));
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}

.tab-header h2 {
  font-size: 1.85rem;
  color: var(--bg-burgundy-dark);
}

.lead-text {
  font-size: 1.15rem;
  color: #374151;
  margin-bottom: 24px;
}

.section-subheading {
  font-size: 1.35rem;
  color: var(--bg-burgundy-dark);
  margin: 28px 0 16px;
}

/* 2-Column Grid inside Tab 1 */
.tab-grid-2col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 36px;
  align-items: start;
}

.story-image-block {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--surface-border);
  background: #ffffff;
  margin-bottom: 20px;
}

.story-img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  display: block;
}

.img-caption {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: #fff5f8;
  border-top: 1px solid #fce7f3;
}

.mini-points-card {
  background: #fff5f8;
  border: 1px solid #fce7f3;
  border-radius: var(--radius-md);
  padding: 20px;
}

.mini-points-card h4 {
  font-size: 1.05rem;
  color: var(--bg-burgundy-dark);
  margin-bottom: 12px;
}

.mini-points-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.92rem;
}

.quote-box {
  background: linear-gradient(135deg, #fdf2f8, #fff1f2);
  border-left: 4px solid var(--brand-rose);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 24px 0;
}

.quote-box p {
  font-style: italic;
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 8px;
}

.quote-author {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-wine);
}

/* Tab 2 Factors & Callout */
.factors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.factor-item {
  background: #fff5f8;
  border: 1px solid #fce7f3;
  border-radius: var(--radius-md);
  padding: 18px;
}

.factor-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.factor-item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--bg-burgundy-dark);
}

.factor-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.info-callout-box {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  padding: 24px;
  margin-top: 24px;
}

.info-callout-box h3 {
  font-size: 1.25rem;
  color: var(--bg-burgundy-dark);
  margin-bottom: 12px;
}

.info-callout-box p {
  font-size: 0.98rem;
  color: #374151;
  margin-bottom: 12px;
}

.info-callout-box p:last-child {
  margin-bottom: 0;
}

/* Tab 3 Unourol Showcase */
.unourol-showcase {
  background: linear-gradient(135deg, #2b0411 0%, #4a071e 50%, #1f030c 100%);
  border-radius: var(--radius-lg);
  color: white;
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin: 20px 0 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(251, 113, 133, 0.3);
}

.unourol-showcase-badge {
  display: inline-block;
  background: var(--accent-gold);
  color: #451a03;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.unourol-showcase-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
}

.unourol-showcase-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.unourol-box-img {
  width: 100%;
  max-width: 210px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  border-radius: 8px;
}

.unourol-showcase-text h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

.benefit-list {
  list-style: none;
}

.benefit-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.96rem;
  color: #fce7f3;
}

.benefit-list li strong {
  color: #fcd34d;
}

.check-icon {
  width: 22px;
  height: 22px;
  background: rgba(245, 158, 11, 0.25);
  color: var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Ingredients Grid */
.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 16px 0;
}

.ingredient-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.ingredient-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-rose);
  box-shadow: var(--shadow-md);
}

.ing-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-rose);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.ingredient-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--bg-burgundy-dark);
}

.ingredient-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tab 4 Certificates */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 24px 0 32px;
}

.cert-card-modern {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.cert-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-rose);
}

.highlighted-cert {
  border: 2px solid var(--accent-gold);
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.25);
}

.cert-popular-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--accent-gold);
  color: #451a03;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cert-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff5f8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-seal svg {
  width: 36px;
  height: 36px;
}

.cert-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-wine);
  background: #fce7f3;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.cert-body h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
  color: var(--bg-burgundy-dark);
}

.cert-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cert-meta {
  background: #fff5f8;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
  border-left: 3px solid var(--brand-rose);
}

.cert-meta span {
  color: var(--text-muted);
}

.cert-meta strong {
  color: var(--bg-burgundy-dark);
}

.cert-view-btn {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: var(--brand-wine);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.cert-view-btn:hover {
  background: var(--brand-rose);
  color: white;
  border-color: var(--brand-rose);
}

.trust-strip {
  display: flex;
  justify-content: space-around;
  background: #fff5f8;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-full);
  padding: 16px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #374151;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}

/* Tab 5 Order Section */
.order-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 10px;
}

.order-product-card {
  background: linear-gradient(145deg, #2b0411 0%, #4a071e 100%);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  color: white;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(251, 113, 133, 0.3);
  position: relative;
  overflow: hidden;
}

.product-badge-top {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--accent-gold);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.product-photo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0 24px;
}

.unourol-form-image {
  width: 100%;
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
  border-radius: 8px;
}

.product-keypoints {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
}

.pk-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pk-icon {
  font-size: 1.4rem;
}

.pk-item strong {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
}

.pk-item small {
  font-size: 0.78rem;
  color: #fbcfe8;
}

.order-form-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.form-header h3 {
  font-size: 1.45rem;
  margin-bottom: 6px;
  color: var(--bg-burgundy-dark);
}

.form-header p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.price-notice-box {
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.pnb-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.pnb-text strong {
  display: block;
  font-size: 0.88rem;
  color: var(--brand-wine);
  margin-bottom: 4px;
}

.pnb-text p {
  font-size: 0.82rem;
  color: #831843;
  margin: 0;
  line-height: 1.45;
}

.consultation-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bg-burgundy-dark);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  background: #f9fafb;
  transition: all 0.25s ease;
}

.input-icon {
  padding-left: 14px;
  font-size: 1.1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 14px 14px 10px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  outline: none;
}

.input-wrapper input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

.input-wrapper:focus-within {
  border-color: var(--brand-rose);
  background: #ffffff;
  box-shadow: 0 0 0 4px var(--brand-rose-glow);
}

.input-wrapper.is-valid {
  border-color: #10b981 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3) !important;
}

.input-wrapper.is-invalid {
  border-color: var(--error-red) !important;
  background: var(--error-red-bg) !important;
  box-shadow: 0 0 0 4px var(--error-red-glow) !important;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.phone-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--error-red);
  margin-top: 2px;
}

.phone-error-msg.visible {
  display: flex;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-light);
}

.form-checkbox-group {
  margin: 4px 0;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--text-muted);
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  background: white;
  transition: all 0.2s;
}

.custom-checkbox input:checked + .checkmark {
  background: var(--brand-rose);
  border-color: var(--brand-rose);
}

.custom-checkbox input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
}

.btn-submit-order {
  background: linear-gradient(135deg, #be185d 0%, #831843 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(190, 24, 93, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-submit-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(190, 24, 93, 0.6);
  background: linear-gradient(135deg, #db2777 0%, #9d174d 100%);
}

.btn-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-subtext {
  font-size: 0.78rem;
  opacity: 0.9;
}

.form-security-footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 10px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.sec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sec-icon {
  width: 14px;
  height: 14px;
  color: var(--brand-rose);
}

.form-success-box {
  background: #fdf2f8;
  border: 2px solid var(--brand-rose);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.form-success-box h3 {
  font-size: 1.5rem;
  color: var(--brand-wine);
  margin-bottom: 8px;
}

.form-success-box p {
  font-size: 0.95rem;
  color: #9d174d;
  margin-bottom: 18px;
}

.success-callout {
  background: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--bg-burgundy-dark);
  font-size: 0.9rem;
  display: inline-block;
  box-shadow: var(--shadow-sm);
}

/* Tab 6 Accordion FAQ */
.tabs-grid-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 28px;
}

.mini-accordion-card {
  background: #fff5f8;
  border: 1px solid #fce7f3;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: background 0.25s, border-color 0.25s;
}

.mini-accordion-card:hover {
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.mini-accordion-card.active {
  background: #ffffff;
  border-color: var(--brand-rose);
  box-shadow: var(--shadow-sm);
}

.mini-tab-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: transparent;
  border: none;
  color: var(--bg-burgundy-dark);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.tab-badge {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 800;
  background: #fce7f3;
  color: var(--brand-wine);
  padding: 3px 8px;
  border-radius: 6px;
}

.mini-accordion-card.active .tab-badge {
  background: var(--brand-rose);
  color: #ffffff;
}

.tab-title {
  flex-grow: 1;
}

.tab-chevron {
  font-size: 0.75rem;
  color: var(--brand-rose);
  transition: transform 0.25s ease;
}

.mini-accordion-card.active .tab-chevron {
  transform: rotate(180deg);
}

.mini-tab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 20px;
  background: #ffffff;
}

.mini-accordion-card.active .mini-tab-content {
  max-height: 250px;
  padding: 16px 20px 20px;
  border-top: 1px solid #fce7f3;
}

.mini-tab-content p {
  color: #4b5563;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

.mini-tab-content strong {
  color: var(--brand-wine);
}

.bottom-quick-bar {
  background: #fff5f8;
  border: 1px solid #fce7f3;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.bqb-text {
  font-size: 0.95rem;
  color: var(--bg-burgundy-dark);
}

.bqb-text strong {
  color: var(--brand-rose);
}

.bqb-btn {
  background: linear-gradient(135deg, var(--brand-rose), var(--bg-burgundy-main));
  color: white;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.bqb-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.4);
}

/* ==========================================================================
   TAB PANE FOOTER (STEP-BY-STEP CHAPTER PROGRESSION)
   ========================================================================== */
.tab-pane-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #fce7f3;
  flex-wrap: wrap;
  gap: 16px;
}

.tpf-status {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.btn-next-tab, .btn-prev-tab {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-next-tab {
  background: linear-gradient(135deg, var(--brand-rose), var(--bg-burgundy-main));
  color: white;
  border: none;
  box-shadow: 0 4px 14px rgba(190, 24, 93, 0.35);
  margin-left: auto;
}

.btn-next-tab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(190, 24, 93, 0.5);
}

.btn-next-tab.highlight-btn {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
  color: #451a03;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-next-tab.highlight-btn:hover {
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.6);
}

.btn-prev-tab {
  background: #fdf2f8;
  color: var(--brand-wine);
  border: 1px solid #fbcfe8;
}

.btn-prev-tab:hover {
  background: #fce7f3;
}

/* Modal Popup */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 2, 8, 0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  animation: modalPop 0.3s ease;
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #fdf2f8;
  border: none;
  font-size: 1.2rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: #fce7f3;
  color: var(--bg-burgundy-dark);
}

.cert-modal-view {
  text-align: center;
}

.modal-cert-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.cert-modal-view h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: var(--bg-burgundy-dark);
}

.modal-badge-status {
  display: inline-block;
  background: #fdf2f8;
  color: var(--brand-wine);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  border: 1px solid #fbcfe8;
}

.modal-cert-details {
  background: #fff5f8;
  border: 1px solid #fce7f3;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.mcd-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #fbcfe8;
  padding-bottom: 6px;
}

.mcd-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.mcd-row span {
  color: var(--text-muted);
}

.mcd-row strong {
  color: var(--bg-burgundy-dark);
}

/* Footer */
.site-footer {
  background: #0f0105;
  color: #9ca3af;
  padding: 40px 0;
  border-top: 1px solid rgba(251, 113, 133, 0.1);
  font-size: 0.82rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-brand strong {
  color: #fce7f3;
  font-size: 1.1rem;
}

.footer-legal p {
  line-height: 1.6;
  margin-bottom: 10px;
}

.copyright {
  color: #6b7280;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .tabs-nav-bar {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .tab-grid-2col {
    grid-template-columns: 1fr;
  }
  
  .order-grid {
    grid-template-columns: 1fr;
  }
  
  .cert-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
  
  .top-bar-features {
    display: none;
  }
  
  .tabs-nav-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .tab-card {
    padding: 24px 18px;
  }
  
  .factors-grid, .ingredients-grid {
    grid-template-columns: 1fr;
  }
  
  .unourol-showcase-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .unourol-showcase-visual {
    margin-bottom: 10px;
  }
  
  .benefit-list li {
    text-align: left;
  }
  
  .order-form-card {
    padding: 20px 16px;
  }
  
  .trust-strip {
    flex-direction: column;
    border-radius: var(--radius-md);
  }
  
  .tab-pane-footer {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-next-tab, .btn-prev-tab {
    width: 100%;
    justify-content: center;
  }
}
