/* Contact Page Specific Styles */

/* Aurora Background Effect */
body.contact-aurora {
  background:
    radial-gradient(900px 540px at 10% -10%, rgba(231,183,95,.18), transparent 60%),
    radial-gradient(1000px 680px at 120% 0%, rgba(37,212,143,.20), transparent 60%),
    radial-gradient(800px 600px at 50% 110%, rgba(91,183,197,.18), transparent 60%),
    conic-gradient(from 210deg at 70% 20%, rgba(255,255,255,.06), rgba(255,255,255,.0) 25%, rgba(255,255,255,.06) 35%, rgba(255,255,255,.0) 60%, rgba(255,255,255,.06) 75%, rgba(255,255,255,.0)),
    linear-gradient(180deg, #0b1324 0%, #0a0f1c 55%, #081019 100%);
}

/* Animated aurora veils */
body.contact-aurora::before,
body.contact-aurora::after {
  content: "";
  position: fixed;
  inset: -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 40% at 20% 10%, rgba(231,183,95,.10), transparent 60%),
    radial-gradient(40% 35% at 80% 15%, rgba(37,212,143,.08), transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: veilShift 18s ease-in-out infinite alternate;
}

body.contact-aurora::after {
  background:
    radial-gradient(45% 35% at 70% 80%, rgba(91,183,197,.12), transparent 70%),
    radial-gradient(55% 35% at 30% 85%, rgba(231,183,95,.08), transparent 70%);
  animation: veilShift2 26s ease-in-out infinite alternate;
  opacity: 0.7;
}

@keyframes veilShift {
  0% { transform: translate3d(0,0,0) scale(1); filter: blur(0px); }
  100% { transform: translate3d(0,-2%,0) scale(1.03); filter: blur(1px); }
}

@keyframes veilShift2 {
  0% { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,2%,0) scale(1.02); }
}

/* Grid overlay for structure */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  background:
    linear-gradient(transparent 97%, rgba(255,255,255,.05) 98%),
    linear-gradient(90deg, transparent 97%, rgba(255,255,255,.05) 98%);
  background-size: 48px 48px, 48px 48px;
}

/* Bring content above aurora layers */
.contact-hero,
.section,
.quick-nav,
footer,
nav {
  position: relative;
  z-index: 1;
}

/* Hero Section */
.contact-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0;
  position: relative;
}

.hero-content {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 1.5rem 0;
  color: var(--text);
}

.gradient-text-alt {
  background: linear-gradient(135deg, var(--gold), var(--opal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Hero Actions */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.action-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--ring);
  border-radius: 50px;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.action-chip:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,.12);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.action-icon {
  font-size: 1.2rem;
}

/* Hero KPIs */
.hero-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.kpi-item {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

.kpi-item strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--emerald);
  margin-bottom: 0.3rem;
}

.kpi-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Quick Navigation */
.quick-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 30;
}

.nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-btn:hover {
  transform: translateY(-2px);
  background: var(--emerald);
  color: var(--midnight);
}

/* Offices Section */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.office-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}

.office-card:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}

.office-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.office-flag {
  font-size: 2rem;
  flex-shrink: 0;
}

.office-info h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.office-info p {
  color: var(--muted);
  margin: 0;
}

.office-details {
  display: grid;
  gap: 0.8rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
}

.detail-icon {
  font-size: 1rem;
  width: 1.5rem;
  text-align: center;
}

/* Contact Form Section */
.contact-form-section {
  padding: 6rem 0;
}

.form-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.contact-form {
  background: rgba(8,16,25,.55);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(6px);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--muted);
  margin: 0;
}

/* Form Stepper */
.form-stepper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.form-stepper::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 2px;
  background: var(--ring);
  z-index: 0;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 1;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: var(--bg-secondary);
  border: 2px solid var(--ring);
  border-radius: 50%;
  color: var(--muted);
  font-weight: 700;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: var(--emerald);
  border-color: var(--emerald);
  color: var(--midnight);
}

.step span {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.step.active span {
  color: var(--text);
}

/* Multi-step Form */
.multi-step-form {
  position: relative;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.form-step h3 {
  color: var(--text);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* File Upload */
.file-upload {
  margin-bottom: 2rem;
}

.upload-area {
  border: 2px dashed var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background: rgba(255,255,255,.02);
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
  border-color: var(--emerald);
  background: rgba(37,212,143,.05);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.upload-btn {
  background: none;
  border: none;
  color: var(--emerald);
  text-decoration: underline;
  cursor: pointer;
  font-family: inherit;
}

.file-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  border-radius: var(--radius-sm);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-remove {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 1.2rem;
}

.file-remove:hover {
  color: #ff6b6b;
}

/* Form Summary */
.form-summary {
  background: var(--bg-secondary);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.summary-section {
  margin-bottom: 1.5rem;
}

.summary-section:last-child {
  margin-bottom: 0;
}

.summary-section h4 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.summary-label {
  color: var(--muted);
  font-weight: 600;
}

.summary-value {
  color: var(--text);
}

/* Response Promise */
.response-promise {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(37,212,143,.1);
  border: 1px solid var(--emerald);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 2rem;
}

.promise-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.promise-text {
  color: var(--text);
  line-height: 1.5;
}

/* Schedule Widget */
.schedule-widget {
  background: rgba(8,16,25,.55);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(6px);
}

.schedule-widget h3 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.schedule-widget p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.schedule-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.schedule-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* FAQ Section */
.faq-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.faq-accordion {
  display: grid;
  gap: 1rem;
}

.contact-cta {
  background: var(--bg-card);
  border: 1px solid var(--ring);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(6px);
}

.contact-cta h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-cta p {
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Form Messages */
.form-message {
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  font-weight: 600;
}

.form-message.success {
  background: rgba(37,212,143,.1);
  border: 1px solid var(--emerald);
  color: var(--emerald);
}

.form-message.error {
  background: rgba(255,107,107,.1);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

/* Loading States */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .form-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .quick-nav {
    position: static;
    flex-direction: row;
    justify-content: center;
    margin: 2rem 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    padding: 6rem 0;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .offices-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-stepper {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .form-stepper::before {
    display: none;
  }
  
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  
  .schedule-actions {
    flex-direction: column;
  }
  
  .cta-actions {
    flex-direction: column;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .contact-form,
  .schedule-widget {
    padding: 1.5rem;
  }
  
  .hero-kpis {
    grid-template-columns: 1fr;
  }
  
  .office-header {
    flex-direction: column;
    text-align: center;
  }
}