/* ==========================================================================
   GURUKRUPA MOTORS — 1-TAP AI GOOGLE REVIEW GENERATOR PORTAL
   Corporate Modern Light Theme (100% Harmonized with gurukrupamotors.in)
   ========================================================================== */

:root {
  /* --- Primary & Surface Backgrounds --- */
  --bg-primary: #FFFFFF;
  --bg-surface: #F8FAFC;      /* Slate 50 */
  --bg-surface-alt: #F1F5F9;  /* Slate 100 */
  --bg-card: #FFFFFF;
  --bg-input: #F8FAFC;

  /* --- Primary Brand Accent (Automotive Crimson) --- */
  --primary: #DC2626;         /* Precision Red */
  --primary-hover: #B91C1C;   /* Deep Crimson Hover */
  --primary-light: #FEE2E2;   /* Red 100 Tint */
  --primary-border: #FECACA;  /* Red 200 Tint */
  --primary-glow: rgba(220, 38, 38, 0.2);
  --primary-subtle: rgba(220, 38, 38, 0.06);

  /* --- Typography Colors (Outdoor Sunlight High-Contrast) --- */
  --text-heading: #0F172A;    /* Slate 900 */
  --text-body: #334155;       /* Slate 700 */
  --text-muted: #64748B;      /* Slate 500 */
  --text-subtle: #94A3B8;     /* Slate 400 */

  /* --- Borders --- */
  --border-color: #E2E8F0;    /* Crisp subtle border */
  --border-focus: #CBD5E1;    /* Slate 300 */
  --border-card: #E2E8F0;

  /* --- Trust & Emerald CTA --- */
  --whatsapp-green: #16A34A;  /* Emerald 600 */
  --whatsapp-hover: #15803D;  /* Emerald 700 */
  --whatsapp-glow: rgba(22, 163, 74, 0.35);
  --whatsapp-light-bg: #F0FDF4; /* Emerald 50 */
  --whatsapp-light-border: #BBF7D0; /* Emerald 200 */
  --whatsapp-text: #166534;   /* Emerald 800 */

  /* --- Ratings & Gold --- */
  --star-gold: #F59E0B;       /* Amber 500 */
  --star-gold-dark: #D97706;  /* Amber 600 */
  --star-gold-glow: rgba(245, 158, 11, 0.35);

  /* --- Modern Card Shadows --- */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 12px 28px -5px rgba(0, 0, 0, 0.09), 0 6px 12px -4px rgba(0, 0, 0, 0.04);

  /* --- Radii --- */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* --- Typography Families --- */
  --font-devanagari: 'Mukta', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* --- Transitions --- */
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.25s var(--ease-out);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  background-color: var(--bg-surface);
  color: var(--text-body);
  font-family: var(--font-devanagari);
  line-height: 1.55;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 14px 32px 14px;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -15%, rgba(220, 38, 38, 0.05) 0%, #F8FAFC 60%, #F1F5F9 100%);
}

/* Subtle Ambient Lighting */
.ambient-glow {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 520px;
  height: 380px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.06) 0%, rgba(22, 163, 74, 0.04) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Main Container Layout */
.review-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==========================================================================
   PORTAL HEADER & BRANDING
   ========================================================================== */
.portal-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.brand-badge-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.logo-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border-color);
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-info {
  text-align: left;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-latin);
  font-weight: 600;
  margin-top: 2px;
}

/* Google Trust Pill */
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 5px 14px;
  font-size: 0.84rem;
  color: var(--text-body);
  font-family: var(--font-latin);
  font-weight: 600;
  margin-bottom: 16px;
}

.trust-pill .g-icon {
  display: flex;
  align-items: center;
}

.trust-pill .rating-num {
  color: var(--star-gold-dark);
  font-weight: 800;
}

.trust-pill .dot-sep {
  color: var(--text-subtle);
  font-size: 0.75rem;
}

.trust-pill .reviews-count {
  color: var(--text-body);
}

/* Header Headline */
.header-headline {
  margin-bottom: 14px;
}

.section-title {
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Star Rating Widget */
.star-rating-widget {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #CBD5E1;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--transition-fast), color var(--transition-fast);
  padding: 4px;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.star-btn.active {
  color: var(--star-gold);
  text-shadow: 0 0 10px var(--star-gold-glow);
}

.star-btn:hover {
  transform: scale(1.15);
}

.star-btn:active {
  transform: scale(0.95);
}

.rating-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--star-gold-dark);
  min-height: 20px;
}

/* ==========================================================================
   MICRO SECTION BARS
   ========================================================================== */
.section-micro-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px var(--primary-glow);
}

.step-num.step-accent {
  background: #F1F5F9;
  border: 1.5px solid var(--border-color);
  color: var(--text-heading);
  font-size: 0.95rem;
  box-shadow: none;
}

.bar-title-wrap {
  text-align: left;
}

.chips-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chips-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1px;
}

.badge-optional {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  font-family: var(--font-latin);
}

/* Horizontal Scroll Hint in Bar Header */
.scroll-nav-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-left: auto;
  white-space: nowrap;
  animation: pulseHint 2s infinite ease-in-out;
}

@keyframes pulseHint {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}

.hint-arrow {
  display: inline-block;
  font-size: 0.85rem;
}

/* Chips Horizontal Scroll Wrapper & Mobile Arrow */
.chips-scroll-wrapper {
  position: relative;
  width: 100%;
}

.scroll-arrow-btn {
  display: none;
}

@media (max-width: 640px) {
  .scroll-arrow-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: #FFFFFF;
    color: var(--text-heading);
    border: 1.5px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition-fast);
  }
  .scroll-arrow-btn:active {
    transform: translateY(-50%) scale(0.92);
    background: var(--bg-surface-alt);
  }
  .chips-scroll-wrapper::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 24px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85));
    pointer-events: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
  }
}

/* ==========================================================================
   CAR MODEL QUICK-CHIPS (Micro-Input)
   ========================================================================== */
.car-chips-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.car-chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .car-chips-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    gap: 10px;
  }
  .car-chips-container::-webkit-scrollbar {
    display: none;
  }
  .car-chip {
    flex-shrink: 0;
    white-space: nowrap;
  }
}

.car-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  min-height: 48px;
  color: var(--text-body);
  font-family: var(--font-latin);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.car-chip:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-focus);
  color: var(--text-heading);
  transform: translateY(-1px);
}

.car-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #991B1B;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--primary-glow);
}

.car-chip-icon {
  font-size: 1.05rem;
}

/* ==========================================================================
   SERVICE CATEGORY CHIPS
   ========================================================================== */
.chips-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.chips-scroll-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .chips-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
    gap: 10px;
  }
  .chips-scroll-container::-webkit-scrollbar {
    display: none;
  }
  .service-chip {
    flex-shrink: 0;
    white-space: nowrap;
    min-width: max-content;
  }
}

.service-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-body);
  font-family: var(--font-devanagari);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.service-chip .chip-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.service-chip .chip-text {
  line-height: 1.25;
}

.service-chip:hover {
  background: var(--bg-surface-alt);
  border-color: var(--border-focus);
  color: var(--text-heading);
}

.service-chip.active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: #991B1B;
  font-weight: 700;
  box-shadow: 0 2px 10px var(--primary-glow);
}

/* ==========================================================================
   2-PHASE INTENT GATE: PROMINENT INTENT BUTTON
   ========================================================================== */
.intent-btn-container {
  width: 100%;
  margin: 2px 0 4px 0;
}

.generate-review-btn {
  width: 100%;
  min-height: 56px;
  background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  font-family: var(--font-devanagari);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  box-shadow: 0 8px 24px var(--primary-glow), 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
  user-select: none;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.generate-review-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
  background: linear-gradient(135deg, #EF4444 0%, #991B1B 100%);
}

.generate-review-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 14px var(--primary-glow);
}

.generate-review-btn:disabled,
.generate-review-btn.is-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   DYNAMIC REVIEW BOX & AI THINKING UI
   ========================================================================== */
.review-box-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-md);
  transition: all 0.35s var(--ease-out);
}

/* Calm Initial Placeholder State (Before AI Intent Generation) */
.review-box-placeholder {
  display: none;
}

.review-box-section.is-collapsed .review-box-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg-surface);
  border: 1.5px dashed var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.25s ease-out;
}

.review-box-section.is-collapsed .review-box-placeholder .placeholder-icon {
  font-size: 1.25rem;
  color: var(--star-gold);
  flex-shrink: 0;
}

.review-box-section.is-collapsed .review-box-placeholder .placeholder-text {
  line-height: 1.45;
}

.review-box-section.is-collapsed .textarea-card {
  display: none;
}

.review-box-section.is-collapsed .shuffle-btn {
  display: none;
}

.review-box-section.is-unveiled {
  animation: revealBox 0.4s var(--ease-out);
  border-color: #CBD5E1;
  box-shadow: var(--shadow-lg);
}

@keyframes revealBox {
  from {
    opacity: 0.6;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.review-box-header .section-micro-bar {
  margin-bottom: 0;
}

.shuffle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  min-height: 48px;
  color: var(--text-body);
  font-family: var(--font-devanagari);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.shuffle-btn:hover {
  background: var(--bg-surface-alt);
  color: var(--text-heading);
  border-color: var(--border-focus);
}

.shuffle-btn:active {
  transform: scale(0.96);
}

.shuffle-icon {
  transition: transform 0.4s var(--ease-spring);
}

.shuffle-btn:hover .shuffle-icon {
  transform: rotate(180deg);
}

/* AI Thinking State Shimmer Banner */
.ai-thinking-banner {
  display: none; /* Default hidden until explicitly activated */
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #EFF6FF, #ECFDF5, #EFF6FF);
  background-size: 200% 100%;
  animation: shimmerBg 2s infinite linear;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-md);
  padding: 9px 13px;
  margin-bottom: 12px;
  color: #166534;
  font-size: 0.88rem;
  font-weight: 700;
}

.ai-thinking-banner[hidden],
[hidden] {
  display: none !important;
}

@keyframes shimmerBg {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.ai-sparkle-pulse {
  display: inline-block;
  animation: pulseSpin 1.4s infinite ease-in-out;
  font-size: 1.1rem;
}

@keyframes pulseSpin {
  0% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.3) rotate(180deg); }
  100% { transform: scale(1) rotate(360deg); }
}

.ai-thinking-text {
  line-height: 1.3;
}

/* Textarea Card */
.textarea-card {
  position: relative;
  background: var(--bg-input);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 165px;
  contain: layout;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.textarea-card:focus-within {
  background: #FFFFFF;
  border-color: var(--whatsapp-green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.textarea-card.is-thinking {
  border-color: #3B82F6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  animation: pulseBorder 1.5s infinite ease-in-out;
}

@keyframes pulseBorder {
  0%, 100% { border-color: rgba(59, 130, 246, 0.5); }
  50% { border-color: rgba(22, 163, 74, 0.8); }
}

.textarea-quote-accent {
  position: absolute;
  top: -4px;
  left: 12px;
  font-size: 3rem;
  line-height: 1;
  font-family: serif;
  color: rgba(15, 23, 42, 0.06);
  pointer-events: none;
  user-select: none;
}

.review-textarea {
  width: 100%;
  min-height: 110px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-heading);
  font-family: var(--font-devanagari);
  font-size: 1.05rem;
  line-height: 1.65;
  resize: vertical;
  position: relative;
  z-index: 1;
}

.review-textarea::placeholder {
  color: var(--text-subtle);
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.edit-hint {
  color: var(--text-muted);
}

.char-count {
  font-family: var(--font-latin);
  font-weight: 700;
  color: var(--text-subtle);
  flex-shrink: 0;
}

/* ==========================================================================
   HERO CTA BUTTON (VIBRANT EMERALD COMMAND BUTTON)
   ========================================================================== */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (max-width: 640px) {
  .action-section {
    position: sticky;
    bottom: 12px;
    z-index: 50;
    padding: 8px 4px;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 0.96) 24%, rgba(248, 250, 252, 1) 100%);
    border-radius: var(--radius-lg);
  }
}

.hero-cta-btn {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 64px;
  background: linear-gradient(135deg, #16A34A 0%, #15803D 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-lg);
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px var(--whatsapp-glow), 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.45);
}

.hero-cta-btn:active {
  transform: translateY(1px);
  box-shadow: 0 4px 14px var(--whatsapp-glow);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: shineSweep 3.2s infinite;
  pointer-events: none;
}

@keyframes shineSweep {
  0% { left: -100%; }
  25%, 100% { left: 160%; }
}

.btn-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.btn-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.btn-main-text {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.btn-sub-text {
  font-size: 0.82rem;
  opacity: 0.95;
  font-weight: 600;
  margin-top: 2px;
}

.direct-link-container {
  text-align: center;
}

.direct-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.direct-link:hover {
  color: var(--text-heading);
}

.fallback-sub-link {
  display: block;
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--text-subtle);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.fallback-sub-link:hover {
  color: var(--text-muted);
}

/* ==========================================================================
   INSTRUCTIONS SECTION (3-STEP VISUAL TIMELINE)
   ========================================================================== */
.instructions-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}

.instructions-header {
  margin-bottom: 12px;
}

.instructions-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-heading);
}

.instructions-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.instruction-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.instruction-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-xs);
  border-color: var(--border-focus);
}

.instruction-card.step-card-1 {
  border-left: 4px solid var(--primary);
}

.instruction-card.step-card-2 {
  border-left: 4px solid var(--whatsapp-green);
}

.instruction-card.step-card-3 {
  border-left: 4px solid var(--star-gold);
}

.instruction-card.step-card-4 {
  border-left: 4px solid #2563EB;
}

.inst-badge {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-card-1 .inst-badge {
  background: var(--primary);
}

.step-card-2 .inst-badge {
  background: var(--whatsapp-green);
}

.step-card-3 .inst-badge {
  background: var(--star-gold-dark);
}

.step-card-4 .inst-badge {
  background: #2563EB;
}

.inst-icon-wrap {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.inst-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

.inst-step-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
}

.inst-step-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   FOOTER SECTION (Clean Corporate Workshop Branding)
   ========================================================================== */
.portal-footer {
  margin-top: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.footer-brand .footer-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
}

.footer-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.5;
}

.footer-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.footer-line a {
  color: var(--whatsapp-green);
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-latin);
}

.footer-line a:hover {
  text-decoration: underline;
  color: var(--whatsapp-hover);
}

.footer-agency-mark {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-latin);
  letter-spacing: 0.01em;
}

.agency-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition-fast);
}

.agency-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}

/* ==========================================================================
   THE 1-SECOND VISUAL COPY GUIDE MODAL (LIGHT THEME)
   ========================================================================== */
.copy-guide-modal {
  border: none;
  background: transparent;
  padding: 16px;
  max-width: 440px;
  width: 92%;
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.copy-guide-modal::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeInBackdrop 0.25s ease-out;
}

@keyframes fadeInBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 24px 20px 22px 20px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 25px rgba(22, 163, 74, 0.15);
  animation: modalPopIn 0.3s var(--ease-spring);
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes modalPopIn {
  from {
    transform: scale(0.88) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.modal-success-badge {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #DCFCE7;
  border: 2px solid var(--whatsapp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.25);
}

.modal-check-icon {
  font-size: 2rem;
  line-height: 1;
}

.modal-title {
  font-size: 1.48rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 16px;
}

/* 3 Visual Guide Step Cards */
.guide-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 18px;
}

.guide-step-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: left;
}

.guide-step-card.step-stars {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-left: 4px solid var(--star-gold);
}

.guide-step-card.step-paste {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-left: 4px solid #2563EB;
}

.guide-step-card.step-post {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid var(--whatsapp-green);
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  font-family: var(--font-latin);
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-stars .step-badge {
  background: var(--star-gold-dark);
}

.step-paste .step-badge {
  background: #2563EB;
}

.step-post .step-badge {
  background: var(--whatsapp-green);
}

.step-text-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  color: var(--text-heading);
  flex-grow: 1;
}

.step-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-inst strong {
  color: var(--text-heading);
  font-weight: 800;
}

/* Countdown Bar */
.modal-countdown-wrap {
  width: 100%;
  margin-bottom: 14px;
}

.countdown-bar-bg {
  width: 100%;
  height: 6px;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.countdown-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563EB, var(--whatsapp-green));
  border-radius: var(--radius-full);
  transition: width 1.3s linear;
}

.countdown-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-family: var(--font-latin);
  font-weight: 600;
}

/* Instant Launch Button */
.modal-launch-btn {
  width: 100%;
  background: var(--whatsapp-green);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  color: #FFFFFF;
  font-family: var(--font-devanagari);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 11px 16px;
  cursor: pointer;
  box-shadow: 0 4px 12px var(--whatsapp-glow);
  transition: all var(--transition-fast);
}

.modal-launch-btn:hover {
  background: var(--whatsapp-hover);
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.4);
}

.modal-launch-btn:active {
  transform: scale(0.98);
}

.modal-fallback-wrap {
  margin-top: 10px;
}

.modal-fallback-link {
  color: var(--text-muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: var(--font-latin);
  transition: color var(--transition-fast);
}

.modal-fallback-link:hover {
  color: var(--text-heading);
}

/* ==========================================================================
   MOBILE SCREEN TUNING (360px - 480px Viewports)
   ========================================================================== */
@media (max-width: 480px) {
  body {
    padding: 12px 10px 24px 10px;
  }
  .portal-header {
    padding: 16px 14px;
  }
  .car-chips-section,
  .chips-section,
  .review-box-section {
    padding: 14px 12px;
  }
  .hero-cta-btn {
    padding: 10px 14px;
    min-height: 60px;
  }
  .btn-main-text {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   ACCESSIBILITY & REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
