/* ==========================================================================
   SevenConti Luxury Travel - Ethereal Horizon Design System
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  /* Color Palette - Logo Matched */
  --color-logo-blue: #0f3c6d;
  --color-logo-teal: #008f7a;
  
  --color-primary: #001b3d;            /* Deep Midnight Blue */
  --color-on-primary: #ffffff;
  
  --color-secondary: #735c00;          /* Luxury Gold */
  --color-on-secondary: #ffffff;
  --color-secondary-container: #fed65b; /* Accent Gold */
  --color-on-secondary-container: #745c00;
  
  /* Accent-specific */
  --color-gold-glow: rgba(115, 92, 0, 0.2);
  --color-sand-beige: #fcf9f2;
  
  /* Fonts */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Montserrat', sans-serif;
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* Border Radii */
  --rounded-sm: 0.25rem;
  --rounded-default: 0.5rem;
  --rounded-md: 0.75rem;
  --rounded-lg: 1rem;
  --rounded-xl: 1.5rem;
  --rounded-full: 9999px;

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fade: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Base Styles & Reset (No-Scroll Viewport Lock)
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: #050a12;
  color: var(--color-primary);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Background Visuals
   ========================================================================== */
.background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.background-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: var(--transition-fade), transform 12s ease-out;
  transform: scale(1.06);
}

.background-slide.active {
  opacity: 1;
  transform: scale(1.0);
  z-index: -1;
}

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 27, 61, 0.45) 0%,
    rgba(0, 27, 61, 0.75) 100%
  );
  z-index: 0;
}

/* ==========================================================================
   Minimal Floating Header (Left logo only, no call signs)
   ========================================================================== */
.minimal-header {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 100;
}

.brand-logo-link {
  display: inline-block;
  text-decoration: none;
}

.header-logo {
  height: 120px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: var(--transition-smooth);
}

.header-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
}

/* ==========================================================================
   Centered Viewport Layout
   ========================================================================== */
.page-viewport {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  z-index: 5;
}

.viewport-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

/* ==========================================================================
   Milk-Glass Card Container (Light Mode Contrast)
   ========================================================================== */
.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--rounded-xl);
  padding: 28px 32px;
  box-shadow: 0 30px 70px rgba(0, 5, 20, 0.5);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  transition: var(--transition-smooth);
}

.glass-card:hover {
  box-shadow: 0 35px 80px rgba(0, 5, 20, 0.6);
}

.card-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.card-title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  color: var(--color-logo-blue);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Brand logo-matched font-colors */
.brand-title {
  font-family: var(--font-body);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: lowercase; /* Matches logo typeface format */
  margin-top: 2px;
}

.brand-seven {
  color: var(--color-logo-blue);
}

.brand-conti {
  color: var(--color-logo-teal);
}

/* Countdown Clock */
.countdown-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 60, 109, 0.05);
  border: 1px solid rgba(15, 60, 109, 0.1);
  border-radius: var(--rounded-lg);
  padding: 12px var(--spacing-md);
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.countdown-number {
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 700;
  color: var(--color-logo-blue);
  line-height: 1;
  margin-bottom: 4px;
}

.countdown-label {
  color: rgba(15, 60, 109, 0.6);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.countdown-divider {
  font-size: 18px;
  font-weight: 700;
  color: rgba(15, 60, 109, 0.3);
  margin-bottom: 6px;
}

/* Form Styling */
.subscription-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Coming Soon - Standalone Below Card */
.coming-soon-standalone {
  text-align: center;
  padding: 4px 0;
}

.coming-soon-glow {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow:
    0 0 12px rgba(255, 255, 255, 0.3),
    0 0 24px rgba(254, 214, 91, 0.15);
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.8; text-shadow: 0 0 12px rgba(255,255,255,0.3), 0 0 24px rgba(254,214,91,0.15); }
  50% { opacity: 1; text-shadow: 0 0 18px rgba(255,255,255,0.5), 0 0 36px rgba(254,214,91,0.25); }
}

.input-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Minimalist Warm Tray Input Fields */
.input-field {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-primary);
  background-color: var(--color-sand-beige);
  border: 1px solid rgba(15, 60, 109, 0.2);
  border-radius: var(--rounded-default);
  padding: 20px 16px 8px;
  outline: none;
  transition: var(--transition-smooth);
}

.input-field:focus {
  border-color: var(--color-logo-teal);
  box-shadow: 0 0 10px rgba(0, 143, 122, 0.08);
}

/* Floating Labels */
.floating-label {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(15, 60, 109, 0.5);
  pointer-events: none;
  transition: var(--transition-smooth);
  transform-origin: left top;
}

.input-field:focus ~ .floating-label,
.input-field:not(:placeholder-shown) ~ .floating-label {
  transform: translateY(-90%) scale(0.8);
  color: var(--color-logo-teal);
}

.error-message {
  font-size: 10px;
  color: #d93838;
  margin-top: 4px;
  display: none;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Primary Form Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: var(--rounded-default);
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-primary {
  background-color: var(--color-logo-blue);
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  font-size: 11px;
  box-shadow: 0 4px 15px rgba(15, 60, 109, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 60, 109, 0.35);
  background-color: #0b2d52;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: var(--color-logo-teal);
  color: #ffffff;
  border: none;
  padding: 16px 24px;
  font-size: 11px;
}

.btn-secondary:hover {
  background-color: #007362;
  box-shadow: 0 8px 20px rgba(0, 143, 122, 0.25);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  margin-left: var(--spacing-sm);
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   WhatsApp Floating Bubble (Bottom Right, Small, Clean)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25d366;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  z-index: 1000;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.06) translateY(-2px);
  background-color: #20ba5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
  width: 26px;
  height: 26px;
}

/* ==========================================================================
   Success Modal Dialog
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 27, 61, 0.7);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(255, 255, 255, 0.98);
  color: var(--color-primary);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--rounded-xl);
  max-width: 440px;
  width: 90%;
  padding: 36px;
  position: relative;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  background: transparent;
  border: none;
  color: rgba(15, 60, 109, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
  line-height: 1;
}

.modal-close:hover {
  color: var(--color-logo-blue);
  transform: rotate(90deg);
}

.modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
}

.success-icon-wrapper {
  margin-bottom: var(--spacing-xs);
  animation: pulseGold 2s infinite ease-in-out;
}

@keyframes pulseGold {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(0, 143, 122, 0.2)); }
  100% { transform: scale(1); }
}

/* Error state outline and adjustments */
.modal-overlay.error-state .modal-content {
  border-color: rgba(186, 26, 26, 0.4);
}

.modal-overlay.error-state .btn-secondary {
  background-color: #ba1a1a;
}

.modal-overlay.error-state .btn-secondary:hover {
  background-color: #93000a;
  box-shadow: 0 8px 20px rgba(186, 26, 26, 0.25);
}

.pulse-error {
  animation: pulseRed 2s infinite ease-in-out;
}

@keyframes pulseRed {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 10px rgba(186, 26, 26, 0.3)); }
  100% { transform: scale(1); }
}

/* Dynamic spinner inside CTA button */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal-body h3 {
  color: var(--color-logo-blue);
  font-size: 22px;
}

.modal-body p {
  color: rgba(15, 60, 109, 0.8);
  line-height: 1.6;
  font-size: 14px;
}

.modal-body p strong {
  color: var(--color-logo-blue);
}

/* ==========================================================================
   Responsive / Short Viewport Compatibility (Strict No-Scroll Rules)
   ========================================================================== */

/* Mobile Portrait Layout (Max 480px Width) */
@media (max-width: 480px) {
  .minimal-header {
    top: 12px;
    left: 12px;
    transform: none;
    width: auto;
    display: block;
  }

  .header-logo {
    height: 44px;
  }

  .page-viewport {
    padding: 12px;
    align-items: center;
    padding-top: 64px;
    padding-bottom: 12px;
  }

  .viewport-stack {
    gap: 10px;
  }

  .glass-card {
    padding: 20px;
    gap: 12px;
  }

  .brand-title {
    font-size: 30px;
  }

  .countdown-number {
    font-size: 20px;
  }

  .countdown-container {
    padding: 8px var(--spacing-sm);
  }

  .subscription-form {
    gap: 10px;
  }

  .input-field {
    padding: 16px 12px 6px;
    font-size: 13px;
  }

  .floating-label {
    font-size: 9px;
    left: 12px;
  }

  .btn-primary {
    padding: 12px 20px;
    font-size: 10px;
  }

  .coming-soon-glow {
    font-size: 13px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }
}

/* Height-based adjustments for short viewport compatibility */
@media (max-height: 680px) {
  .minimal-header {
    top: 10px;
    left: 10px;
  }

  .header-logo {
    height: 40px;
  }

  .page-viewport {
    padding-top: 56px;
    padding-bottom: 10px;
  }

  .viewport-stack {
    gap: 8px;
  }

  .glass-card {
    padding: 16px 20px;
    gap: 10px;
  }

  .brand-title {
    font-size: 26px;
  }

  .card-title {
    font-size: 10px;
  }

  .countdown-container {
    padding: 6px 10px;
    margin-bottom: 0;
  }

  .countdown-number {
    font-size: 18px;
  }

  .countdown-divider {
    font-size: 14px;
  }

  .subscription-form {
    gap: 8px;
  }

  .input-field {
    padding: 14px 12px 5px;
    font-size: 12px;
  }

  .floating-label {
    font-size: 8px;
  }

  .btn-primary {
    padding: 11px 20px;
    font-size: 10px;
  }

  .coming-soon-glow {
    font-size: 12px;
  }
}
