/* MAIN STYLES - Variables, Base, Theme */

/* CSS Custom Properties */
:root {
  /* Colors - Warm Professional */
  --primary-teal: #1e4a52;
  --secondary-teal: #2c6975;
  --tertiary-teal: #3a7f8c;
  --accent-copper: #c05621;
  --accent-gold: #d69e2e;
  --charcoal: #2d3748;
  --cream-white: #faf6f0;
  
  /* Text Colors */
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-light: #faf6f0;
  --text-muted: #718096;
  
  /* Glass Effects */
  --glass-bg: rgba(250, 246, 240, 0.15);
  --glass-border: rgba(192, 86, 33, 0.2);
  --glass-shadow: rgba(30, 74, 82, 0.4);
  --glass-blur: blur(20px);
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(30, 74, 82, 0.1);
  --shadow-md: 0 4px 16px rgba(30, 74, 82, 0.2);
  --shadow-lg: 0 8px 32px rgba(30, 74, 82, 0.3);
  --shadow-xl: 0 12px 40px rgba(30, 74, 82, 0.4);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', serif;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: var(--font-primary);
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--secondary-teal) 50%, var(--tertiary-teal) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background Elements */
.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.construction-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(90deg, rgba(192, 86, 33, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(192, 86, 33, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.float-element {
  position: absolute;
  font-size: 2rem;
  opacity: 0.08;
  color: var(--accent-copper);
  animation: float 15s ease-in-out infinite;
}

.float-element:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 12s;
}

.float-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 4s;
  animation-duration: 18s;
}

.float-element:nth-child(3) {
  top: 30%;
  right: 25%;
  animation-delay: 8s;
  animation-duration: 14s;
}

@keyframes float {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
    opacity: 0.08;
  }
  50% { 
    transform: translateY(-20px) rotate(5deg);
    opacity: 0.15;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

.logo {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 2px;
  background: linear-gradient(45deg, var(--accent-copper), var(--accent-gold), var(--cream-white), var(--accent-copper));
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease-in-out infinite;
  margin-bottom: var(--space-sm);
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.subheader {
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--cream-white);
  opacity: 0.9;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-xl);
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-copper), var(--accent-gold));
  color: var(--cream-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-copper));
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-light);
  border: 2px solid var(--glass-border);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: rgba(250, 246, 240, 0.25);
  border-color: var(--accent-copper);
}

.stop-button {
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: white;
  padding: var(--space-md) var(--space-xl);
  min-width: 160px;
}

.stop-button:hover {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(220, 38, 38, 0.4);
}

.register-btn {
  position: fixed;
  bottom: var(--space-lg);
  right: calc(var(--space-lg) + 180px);
  background: linear-gradient(135deg, var(--accent-copper), var(--accent-gold));
  color: var(--cream-white);
  border: none;
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: all var(--transition-normal);
}

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

/* Developer Credit */
.developer-credit {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  font-size: 0.75rem;
  color: #d69e2e;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  transition: all var(--transition-normal);
  z-index: 90;
  text-decoration: none;
}

.developer-credit:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--accent-copper);
  border-radius: var(--radius-sm);
  background: rgba(250, 246, 240, 0.9);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

label {
  display: block;
  color: var(--accent-gold);
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

/* Utilities */
.hidden {
  display: none !important;
}

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

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

/* High Contrast */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(0, 0, 0, 0.8);
  }
}

/* Registration form button fix */
.registration-form .btn-secondary,
.registration-form .btn-primary {
  padding: 12px 24px;
  font-size: 0.95rem;
  min-width: 120px;
  border-radius: 8px;
}

/* Ultra Small Mobile - iPhone SE/S24 - FINAL VERSION */
@media (max-width: 400px) {
  .register-btn {
    bottom: var(--space-xs);
    
    left: var(--space-sm);
   
    font-size: 0.75rem;
    padding: 8px var(--space-md);
  }
  
  .developer-credit {
    bottom: var(--space-xs);
    right: var(--space-sm);
    font-size: 0.65rem;
  }
  
  .registration-form {
    width: 98%;
    padding: var(--space-lg);
  }
  
  .form-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }
}

/* Floor Plan Modal */
.floor-plan-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.floor-plan-overlay.show {
  opacity: 1;
  visibility: visible;
}

.floor-plan-container {
  background: linear-gradient(135deg, rgba(30, 74, 82, 0.95) 0%, rgba(44, 105, 117, 0.95) 100%);
  border: 3px solid var(--accent-copper);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  transform: scale(0.8);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.floor-plan-overlay.show .floor-plan-container {
  transform: scale(1);
}

.floor-plan-container .close-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  background: #dc2626;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
}

.floor-plan-container .close-btn:hover {
  background: #b91c1c;
  transform: scale(1.1);
}

.floor-plan-image {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  display: block;
}

.floor-plan-button {
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #1e4a52, #2c6975);
  color: white;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
}

.floor-plan-button:hover {
  background: linear-gradient(135deg, #2c6975, #3a7f8c);
  transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floor-plan-container {
    max-width: 98vw;
    max-height: 98vh;
  }
  
  .floor-plan-header {
    padding: var(--space-md);
  }
  
  .floor-plan-header h3 {
    font-size: 1rem;
  }
  
  .floor-plan-content {
    padding: var(--space-md);
  }
  
  .floor-plan-image {
    max-height: 60vh;
  }
}

.iti {
  width: 100%;
  display: block;
}

.iti__flag-container {
  border-right: 2px solid var(--accent-copper);
}

.iti__selected-flag {
  background: rgba(250, 246, 240, 0.95);
  border: none;
  padding: 0 12px;
  height: 100%;
}

.iti__selected-flag:hover {
  background: rgba(250, 246, 240, 1);
}

.iti__country-list {
  background: rgba(250, 246, 240, 0.98);
  border: 2px solid var(--accent-copper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  max-height: 250px;
}

.iti__country {
  padding: 8px 12px;
  color: var(--text-primary);
}

.iti__country:hover {
  background: rgba(214, 158, 46, 0.1);
}

.iti__country.iti__highlight {
  background: rgba(214, 158, 46, 0.2);
}

.iti__dial-code {
  color: var(--accent-gold);
  font-weight: 500;
}
.iti__selected-dial-code{
  color: var(--accent-gold);
  font-weight: 500;
}

#visitorMobile {
  padding-left: 60px;
}

/**
 * OTP VERIFICATION STYLES - CLEAN & PROFESSIONAL
 * Add these styles to the END of your frontend/css/layout.css file
 */

/* Email Verification Group */
.email-verification-group {
  margin-bottom: 20px;
}

.email-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.email-input-wrapper input[type="email"] {
  flex: 1;
  padding: 12px 45px 12px 15px; /* Extra padding on right for tick */
}

/* Green Tick Icon in Email Field */
.email-verified-tick {
  position: absolute;
  right: 125px; /* Position before button */
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #27ae60;
  animation: tickAppear 0.4s ease;
  z-index: 10;
  pointer-events: none;
  background: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid #27ae60;
  font-weight: bold;
  display: none; /* Hidden by default */
}
.email-verified-tick.show {
  display: flex;
}

@keyframes tickAppear {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}
/* Verify Email Button - Always Visible */
.verify-email-btn {
  background: linear-gradient(135deg, #2c6975 0%, #1e4a52 100%);
  color: #d4af37;
  border: 2px solid #d4af37;
  padding: 11px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
  font-size: 13px;
  min-width: 130px;
  position: relative;
  display: inline-block;
  /* ⭐ ALWAYS VISIBLE NOW */
}

.verify-email-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #1e4a52 0%, #2c6975 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

/* ⭐ IMPROVED DISABLED STATE - More obvious */
.verify-email-btn:disabled {
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
  border-color: #7f8c8d;
  color: #ecf0f1;
  cursor: not-allowed;
  transform: none;
  opacity: 0.5;
  box-shadow: none;
}

.verify-email-btn.loading {
  color: transparent;
}

.verify-email-btn.loading::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  top: 50%;
  left: 50%;
  margin-left: -7px;
  margin-top: -7px;
  border: 2px solid #d4af37;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
}

.verify-email-btn.verified {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  border-color: #27ae60;
  color: white;
  cursor: default;
}

.verify-email-btn.verified:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

/* Email Input Wrapper */
.email-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.email-input-wrapper input[type="email"] {
  flex: 1;
  padding: 12px 45px 12px 15px;
}

/* Green Tick - Only shows after verification */
.email-verified-tick {
  position: absolute;
  right: 145px; /* Adjusted for always-visible button */
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #27ae60;
  animation: tickAppear 0.4s ease;
  z-index: 10;
  pointer-events: none;
  background: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  border: 2px solid #27ae60;
  font-weight: bold;
  display: none;
}

.email-verified-tick.show {
  display: flex;
}

@keyframes tickAppear {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .email-input-wrapper {
    flex-direction: column;
    align-items: stretch;
  }

  .verify-email-btn {
    width: 100%;
    min-width: unset;
  }

  .email-verified-tick {
    right: 12px;
    top: 12px;
    transform: translateY(0);
  }

  .email-verified-tick.show {
    transform: translateY(0);
  }
}

@media (max-width: 400px) {
  .verify-email-btn {
    font-size: 12px;
    padding: 10px 16px;
    min-width: 110px;
  }
}

/* OTP Section */
.otp-section {
  background: linear-gradient(135deg, rgba(30, 74, 82, 0.08) 0%, rgba(44, 105, 117, 0.08) 100%);
  border: 2px solid #d4af37;
  border-radius: 10px;
  padding: 20px;
  margin-top: 15px;
  animation: slideDown 0.3s ease;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
  display: none;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.otp-input-container {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  align-items: stretch;
}

.otp-input-container input {
  flex: 1;
  font-size: 18px;
  letter-spacing: 8px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  padding: 13px 10px;
  background: white;
  border: 2px solid #2c6975;
  border-radius: 6px;
  color: #1e4a52;
  transition: all 0.3s ease;
}

.otp-input-container input:focus {
  outline: none;
  border: 2px solid #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.otp-input-container input::placeholder {
  color: #bdc3c7;
  letter-spacing: 8px;
}

/* Verify OTP Button */
.verify-otp-btn {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
  border: none;
  padding: 13px 24px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 13px;
  min-width: 100px;
  box-shadow: 0 2px 6px rgba(39, 174, 96, 0.25);
}

.verify-otp-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(39, 174, 96, 0.35);
}

.verify-otp-btn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  opacity: 0.7;
}

/* Timer Container */
.otp-timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid rgba(44, 105, 117, 0.15);
}

.timer-icon {
  font-size: 18px;
}

.otp-countdown {
  font-size: 18px;
  font-weight: bold;
  color: #2c6975;
  font-family: 'Courier New', monospace;
  min-width: 55px;
  text-align: center;
}

.otp-countdown.warning {
  color: #e74c3c;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

/* Resend Button */
.resend-otp-btn {
  background: transparent;
  color: #2c6975;
  border: 2px solid #2c6975;
  padding: 6px 14px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 12px;
}

.resend-otp-btn:hover:not(:disabled) {
  background: #2c6975;
  color: #d4af37;
  transform: translateY(-1px);
}

.resend-otp-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #636363;
  color: #636363;
}

.otp-help-text {
  font-size: 12px;
  color: #ffffff;
  text-align: center;
  margin: 0;
  font-style: italic;
  opacity: 0.85;
}

/* Hide old verification status if exists */
.verification-status {
  display: none !important;
}

/* Register Button Disabled State */
.btn-primary:disabled {
  background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  transform: none !important;
  border-color: #95a5a6 !important;
}

.btn-primary:disabled:hover {
  box-shadow: none !important;
  transform: none !important;
}

/* Loading animation */
@keyframes spin {
  to { 
    transform: rotate(360deg); 
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .email-input-wrapper {
    flex-direction: column;
  }

  .verify-email-btn {
    width: 100%;
  }

  .email-verified-tick {
    right: 12px;
    top: 12px;
    transform: translateY(0);
  }

  .email-verified-tick.show {
    transform: translateY(0);
  }

  .otp-input-container {
    flex-direction: column;
  }

  .verify-otp-btn {
    width: 100%;
  }

  .otp-timer-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .otp-countdown {
    font-size: 16px;
  }

  .resend-otp-btn {
    width: 100%;
  }
}

/* Tablet responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .email-verified-tick {
    right: 120px;
  }
}

/* Radio Button Group Styling */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #faf6f0e6;
  border: 2px solid var(--accent-copper);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.radio-label:hover {
  background: rgba(250, 246, 240, 0.8);
  border-color: var(--accent-gold);
  transform: translateX(4px);
}

.radio-label input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
  accent-color: var(--accent-copper);
}

.radio-label span {
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 500;
}

.radio-label input[type="radio"]:checked + span {
  color: var(--accent-copper);
  font-weight: 600;
}

/* Title Dropdown Styling */
/* Title & Type Dropdown Styling - match Choices.js look/size */


#visitorTitle,
#registrationType,
#visitorIndustry {
  font-weight: 500;
  height: 48px; /* match .choices__inner min-height */
  padding: 10px 14px;
  background: rgba(250, 246, 240, 0.95);
  border: 2px solid var(--accent-copper);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  line-height: 1.2;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Custom SVG dropdown arrow (data URI) */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='%23c05621' d='M7 8L0 0h14z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 8px;
  padding-right: 44px; /* leave room for the custom arrow */
  box-sizing: border-box;
}

/* Provide consistent focus look like Choices.js */
#visitorTitle:focus,
#registrationType:focus,
#visitorIndustry:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
  /* Flip the custom arrow to point upwards when the dropdown is opened/focused */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path fill='%23c05621' d='M7 0L14 8H0z'/></svg>");
}

/* Country Dropdown Styling */
#visitorCountry {
  font-weight: 500;
}


/* Form Grid Enhancements */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* Full Width Fields */
.form-group.full-width {
  grid-column: 1 / -1;
}

/* New: Horizontal row for title / first / last
   We use a flex row inside the grid so the three fields align on one line
   and wrap responsively. */
.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

/* Title smaller, name fields larger */
.form-title {
  flex: 0 0 22%;
  min-width: 100px;
}

.form-firstname,
.form-lastname {
  flex: 1;
  min-width: 0;
}
.form-grid > .form-row {
  grid-column: 1 / -1;
}

/* Ensure inputs/selects inside flex children can shrink properly and fill space */
.form-group.form-firstname input,
.form-group.form-lastname input,
.form-group.form-title select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Country and Mobile should share a row when space allows. Put them
   in grid columns by default (they live outside .form-row) so we force
   them to be side-by-side using grid placement. */
.form-grid > .form-group.col-country { /* country (left column) */
  grid-column: 1 / 2;
}
.form-grid > .form-group.col-mobile { /* mobile (right column) */
  grid-column: 2 / 3;
}

/* Make country and mobile columns behave equally: ensure their children fill and can shrink */
.form-group.col-country,
.form-group.col-mobile {
  display: block;
}
.form-group.col-country select,
.form-group.col-mobile input,
.form-group.col-mobile select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Responsive: on small screens stack everything */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }

  .form-group.form-title,
  .form-group.form-firstname,
  .form-group.form-lastname {
    flex: 1 1 auto;
    max-width: none;
    width: 100%;
  }


  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* Ensure country/mobile become full width */
  .form-grid > .form-group.col-country,
  .form-grid > .form-group.col-mobile {
    grid-column: 1 / -1 !important;
  }
}



/* Ensure consistent input heights */
.form-group input,
.form-group select {
  height: 48px;
}

/* Add visual hierarchy to required fields */
.form-group label::after {
  content: '';
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 4px;
}


/* Success Message Enhancement */
.success-message {
  background: rgba(34, 197, 94, 0.9);
  color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-sm);
  margin-top: var(--space-lg);
  text-align: center;
  display: none;
  animation: slideIn 0.3s ease;
}

.success-message.show {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
  .form-grid {
    gap: var(--space-md);
  }

  .radio-group {
    gap: 10px;
  }

  .radio-label {
    padding: 10px 14px;
  }
}

/* Mobile Responsive (below 768px) */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  /* All fields become full width on mobile */
  .form-group {
    grid-column: 1 / -1 !important;
  }

  .radio-group {
    gap: 8px;
  }

  .radio-label {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  /* Adjust form modal on mobile */
  .registration-form {
    padding: var(--space-xl);
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
  }

  .form-header h3 {
    font-size: 1.2rem;
  }

  .form-header p {
    font-size: 0.85rem;
  }
}

/* Small Mobile (below 480px) */
@media (max-width: 480px) {
  .registration-form {
    padding: var(--space-lg);
    width: 98%;
  }

  .form-grid {
    gap: var(--space-sm);
  }

  .form-group input,
  .form-group select {
    height: 44px;
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .radio-label {
    padding: 8px 10px;
  }

  .radio-label span {
    font-size: 0.85rem;
  }
}

/* Ultra Small Mobile - iPhone SE/S24 (below 400px) */
@media (max-width: 400px) {
  .registration-form {
    padding: var(--space-md);
    width: 98%;
  }

  .form-header {
    margin-bottom: var(--space-md);
  }

  .form-header h3 {
    font-size: 1.1rem;
  }

  .form-header p {
    font-size: 0.75rem;
  }

  .form-group input,
  .form-group select {
    height: 42px;
    font-size: 0.85rem;
    padding: 10px 12px;
  }

  .form-actions {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
}

/* Focus States for Accessibility */
.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

.radio-label:focus-within {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  .radio-label {
    border-width: 3px;
  }

  .form-group input,
  .form-group select {
    border-width: 3px;
  }
}

/* Reduce Motion Support */
@media (prefers-reduced-motion: reduce) {
  .radio-label,
  .success-message {
    animation: none;
    transition: none;
  }

  .radio-label:hover {
    transform: none;
  }
}


/**
 * ========================================
 * CHOICES.JS SEARCHABLE DROPDOWN STYLING
 * Matches Expo Theme (Teal/Copper/Gold)
 * ========================================
 */

/* Container */
.choices {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.choices__inner {
  background: rgba(250, 246, 240, 0.9);
  border: 2px solid var(--accent-copper);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  min-height: 48px;
  transition: all 0.3s ease;
}

.choices__inner:focus,
.choices.is-focused .choices__inner {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(214, 158, 46, 0.1);
}

/* Selected Item */
.choices__list--single .choices__item {
  color: var(--text-primary);
  font-weight: 500;
}

/* Dropdown */
.choices__list--dropdown {
  background: rgba(250, 246, 240, 0.98);
  border: 2px solid var(--accent-copper);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}

.choices__list--dropdown .choices__item {
  color: var(--text-primary);
  padding: 12px 16px;
  transition: all 0.2s ease;
}

.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(214, 158, 46, 0.15);
  color: var(--accent-copper);
}

.choices__list--dropdown .choices__item--selectable:hover {
  background: rgba(192, 86, 33, 0.1);
}

/* Search Input */
.choices__input {
  background: white;
  border: 1px solid var(--accent-copper);
  border-radius: 4px;
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.choices__input:focus {
  outline: none;
  border-color: var(--accent-gold);
}

.choices__input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

/* Placeholder */
.choices__placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

/* Disabled State */
.choices.is-disabled .choices__inner {
  background: #faf6f0e6;
  border-color: #95a5a6;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Dropdown Arrow */
.choices[data-type*="select-one"]::after {
  border-color: var(--accent-copper) transparent transparent;
  margin-top: -2px;
  transition: all 0.2s ease;
}

.choices.is-open[data-type*="select-one"]::after {
  border-color: transparent transparent var(--accent-copper);
  margin-top: -7px;
}

/* No Results Message */
.choices__item--choice.has-no-results {
  color: var(--text-muted);
  font-style: italic;
  padding: 16px;
  text-align: center;
}

/* Scrollbar for Dropdown */
.choices__list--dropdown::-webkit-scrollbar {
  width: 8px;
}

.choices__list--dropdown::-webkit-scrollbar-track {
  background: rgba(192, 86, 33, 0.1);
  border-radius: 4px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb {
  background: var(--accent-copper);
  border-radius: 4px;
}

.choices__list--dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .choices__list--dropdown {
    max-height: 250px;
  }
  
  .choices__inner {
    min-height: 44px;
    padding: 8px 10px;
  }
  
  .choices__list--dropdown .choices__item {
    padding: 10px 14px;
    font-size: 0.9rem;
  }
}

/* Ultra Small Mobile */
@media (max-width: 400px) {
  .choices__list--dropdown {
    max-height: 200px;
  }
  
  .choices__inner {
    min-height: 42px;
    padding: 7px 10px;
  }
  
  .choices__list--dropdown .choices__item {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  /* Smaller arrow for compact screens */
  #visitorTitle,
  #registrationType {
    background-position: right 10px center;
    background-size: 12px 7px;
    padding-right: 38px;
    height: 52px;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .choices__inner {
    border-width: 3px;
    border-color: var(--charcoal);
  }
  
  .choices__list--dropdown {
    border-width: 3px;
  }
}

/* Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  .choices__inner,
  .choices[data-type*="select-one"]::after,
  .choices__list--dropdown .choices__item {
    transition: none;
  }
}

.form-helper-text {
  background: linear-gradient(135deg, rgba(30, 74, 82, 0.1), rgba(44, 105, 117, 0.1));
  border-left: 4px solid var(--accent-gold);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--cream-white);
}

/* Inline error visuals */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error .choices__inner {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.06) !important;
}

.error-text {
  color: #ffd6d6;
  background: rgba(231, 76, 60, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 0.9rem;
}

.helper-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.required-asterisk {
  color: #ff6b6b;
  font-weight: 700;
  margin-left: 2px;
}

.optional-badge {
  background: rgba(214, 158, 46, 0.2);
  color: var(--accent-gold);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tooltip */
.tooltip-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background: rgba(214, 158, 46, 0.3);
  border-radius: 50%;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
  cursor: help;
  margin-left: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.tooltip-icon:hover {
  background: var(--accent-gold);
  transform: scale(1.1);
}

.tooltip-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: var(--charcoal);
  color: var(--cream-white);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}

.tooltip-icon:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

/* Field Hints */
.field-hint {
  display: block;
  font-size: 0.75rem;
  color: rgba(250, 246, 240, 0.7);
  margin-top: 4px;
  font-style: italic;
}

.hint-icon,
.help-icon {
  margin-right: 4px;
}

/* Enhanced Verify Email Button with Pulse */
.verify-email-btn.pulse-button {
  position: relative;
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(44, 105, 117, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(44, 105, 117, 0);
  }
}

.verify-email-btn.pulse-button::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: linear-gradient(45deg, var(--accent-copper), var(--accent-gold), var(--primary-teal));
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
  z-index: -1;
  opacity: 0.6;
}

.verify-email-btn .btn-icon {
  display: inline-block;
  margin-right: 6px;
  animation: wiggle 1s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

/**
 * PHONE VALIDATION STYLES
 */

/* Validation icon positioning */
.form-group {
  position: relative;
}

.validation-icon {
  position: absolute;
  right: 15px;
  top: 38px;
  font-size: 20px;
  font-weight: bold;
  pointer-events: none;
  z-index: 10;
  animation: iconAppear 0.3s ease;
}

@keyframes iconAppear {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Phone input validation states */
.form-group.field-valid #visitorMobile {
  border-color: #27ae60;

}

.form-group.field-invalid #visitorMobile {
  border-color: #e74c3c;

}

.form-group.field-warning #visitorMobile {
  border-color: #f39c12;
 
}

/* Phone error message */
.phone-error-message {
  display: none;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #e74c3c;
  font-weight: 500;
}

/* Adjust for intl-tel-input container */
.form-group.field-valid .iti,
.form-group.field-invalid .iti,
.form-group.field-warning .iti {
  display: block;
}

/* Validation icon adjustment for phone field */
.form-group .validation-icon {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 10px; /* Adjust for label height */
}