@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  --primary-navy: #0b1f3a;
  --primary-dark: #071527;
  --primary-light: #153866;
  --accent-gold: #c59b27;
  --accent-gold-light: #f3df8a;
  --accent-gold-dark: #997415;
  --gold-glow: rgba(197, 155, 39, 0.25);
  --navy-glow: rgba(11, 31, 58, 0.25);
  --card-bg: rgba(255, 255, 255, 0.98);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
              radial-gradient(circle at 90% 90%, rgba(11, 31, 58, 0.06) 0%, transparent 50%),
              #f4f6fb;
  color: #1e293b;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Ambient Floating Glow Lights */
.luxury-wave-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  background: radial-gradient(ellipse at 80% 0%, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.04) 50%, transparent 70%),
              radial-gradient(ellipse at 20% 0%, rgba(11, 31, 58, 0.12) 0%, rgba(11, 31, 58, 0.02) 60%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* Main Container Poster Wrapper */
.poster-container {
  max-width: 860px;
  margin: 1.5rem auto 2.5rem;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 28px;
  box-shadow: 0 25px 60px -12px rgba(11, 31, 58, 0.14),
              0 0 0 1px rgba(212, 175, 55, 0.35),
              0 0 35px rgba(212, 175, 55, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Progress Bar */
.form-progress-bar-container {
  width: 100%;
  height: 4px;
  background: rgba(226, 232, 240, 0.8);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 30;
  overflow: hidden;
}

.form-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c59b27, #f3df8a, #d4af37);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Curved Wave Gold Edge */
.poster-header-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

/* Logo Backdrop Mask (Interrupts background wave lines cleanly) */
.logo-backdrop {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: radial-gradient(ellipse at center, #ffffff 65%, rgba(255, 255, 255, 0.95) 82%, rgba(255, 255, 255, 0) 100%);
  border-radius: 9999px;
  z-index: 2;
}

/* Number Badges */
.step-badge {
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, #0b1f3a 0%, #153866 100%);
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 3px 8px rgba(11, 31, 58, 0.25), inset 0 0 0 1px rgba(212, 175, 55, 0.4);
  flex-shrink: 0;
}

.icon-gold-badge {
  color: #c59b27;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 3px rgba(197, 155, 39, 0.2));
}

/* Section Header */
.section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0b1f3a;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Modern Input Controls with Icon Support */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  pointer-events: none;
  transition: color 0.2s ease;
}

.custom-input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.95rem;
  font-size: 0.95rem;
  color: #1e293b;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.custom-input.has-icon {
  padding-left: 2.6rem;
}

.custom-input:focus {
  border-color: #c59b27;
  box-shadow: 0 0 0 3.5px rgba(197, 155, 39, 0.18), 0 2px 8px rgba(197, 155, 39, 0.08);
  background: #ffffff;
}

.input-wrapper:focus-within .input-icon {
  color: #c59b27;
}

.custom-input.input-error {
  border-color: #ef4444 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 3.5px rgba(239, 68, 68, 0.15) !important;
}

.custom-input::placeholder {
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 400;
}

/* Modern Interactive Option Cards (Section 2) */
.interest-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  min-height: 48px;
}

.interest-card:hover {
  border-color: #c59b27;
  background-color: #fffdf7;
  transform: translateY(-1px);
}

.interest-card.checked {
  background: linear-gradient(135deg, #fffcf2 0%, #fff8e1 100%);
  border-color: #c59b27;
  color: #0b1f3a;
  box-shadow: 0 3px 12px rgba(197, 155, 39, 0.16), inset 0 0 0 1px rgba(197, 155, 39, 0.25);
}

.interest-icon-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.interest-card.checked .interest-icon-badge {
  background: #0b1f3a;
  color: #e5c365;
}

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.8px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
  background-color: #ffffff;
  flex-shrink: 0;
  margin-left: auto;
}

.custom-checkbox:checked {
  background-color: #0b1f3a;
  border-color: #0b1f3a;
}

.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}

/* Quick Suggestion Chips */
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 32px;
  user-select: none;
}

.quick-chip:hover {
  background: #fff8e1;
  border-color: #c59b27;
  color: #0b1f3a;
}

.quick-chip:active {
  transform: scale(0.96);
}

/* Network Map Interactive Component */
.map-interactive-box {
  background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.radar-pulse {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(197, 155, 39, 0.2);
  animation: radarWave 2.5s infinite ease-out;
  pointer-events: none;
}

@keyframes radarWave {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.map-node {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Submit Button */
.btn-submit-luxury {
  background: linear-gradient(135deg, #091a30 0%, #0e2a4d 50%, #153866 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.5);
  padding: 1rem 3rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 12px 28px -5px rgba(11, 31, 58, 0.45), 0 0 20px rgba(212, 175, 55, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 50px;
}

.btn-submit-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: all 0.65s ease;
}

.btn-submit-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -5px rgba(11, 31, 58, 0.55), 0 0 25px rgba(212, 175, 55, 0.4);
  border-color: rgba(212, 175, 55, 0.9);
}

.btn-submit-luxury:hover::before {
  left: 100%;
}

.btn-submit-luxury:active {
  transform: scale(0.98);
}

/* Trust Badges Bar */
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

/* Success Notice Box */
.success-notice-box {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(11, 31, 58, 0.04);
}

/* Footer Section */
.footer-banner {
  background: linear-gradient(180deg, #09192f 0%, #061120 100%);
  color: #ffffff;
  padding: 1.8rem 1.5rem 1.5rem;
  position: relative;
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.footer-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #f1f5f9;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 52px;
}

.footer-card:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  color: #ffffff;
}

.footer-card:active {
  transform: scale(0.98);
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(11, 31, 58, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  width: 100%;
  max-width: 580px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.35);
  transform: scale(0.92) translateY(20px);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

/* Animations */
@keyframes pulseSubtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

.animate-pulse-subtle {
  animation: pulseSubtle 3s infinite ease-in-out;
}

/* =========================================================================
   MOBILE-FIRST SCREEN REFINEMENTS (Max-Width: 640px)
   ========================================================================= */
@media (max-width: 640px) {
  body {
    padding: 0.35rem 0.25rem 1.5rem !important;
    background: #f1f5f9;
  }
  
  .poster-container {
    margin: 0 auto 1.5rem !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 25px rgba(11, 31, 58, 0.1) !important;
  }
  
  .custom-input {
    font-size: 16px !important; /* Ngăn chặn iOS Safari tự động phóng to */
    padding: 0.75rem 0.85rem !important;
    border-radius: 10px !important;
    height: 48px;
  }
  
  .custom-input.has-icon {
    padding-left: 2.6rem !important;
  }
  
  textarea.custom-input {
    height: auto !important;
    min-height: 75px !important;
  }
  
  .interest-card {
    padding: 0.75rem 0.85rem !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    min-height: 48px !important;
  }
  
  .quick-chip {
    padding: 0.4rem 0.7rem !important;
    font-size: 0.75rem !important;
    min-height: 34px !important;
  }
  
  .btn-submit-luxury {
    width: 100% !important;
    padding: 1rem 1.5rem !important;
    font-size: 1.02rem !important;
    min-height: 52px !important;
    border-radius: 14px !important;
  }
  
  .section-title {
    font-size: 0.95rem !important;
  }
  
  .step-badge {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  
  .footer-banner {
    padding: 1.4rem 1rem 1.2rem !important;
  }
  
  .footer-card {
    padding: 0.8rem 0.9rem !important;
    border-radius: 12px !important;
    min-height: 50px !important;
  }
  
  .modal-card {
    border-radius: 20px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}
