/* =========================================
   1. HERO SECTION (Matches Index/Global)
   ========================================= */

/* Combined wrapper for Hero + Form to share background */
.contact-combined-hero {
  position: relative;
  background: var(--bg-primary); /* Fallback */
  
  /* Beautiful gradient background - DARK MODE (from hero.css) */
  background: 
    radial-gradient(ellipse at top left, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(6, 6, 23, 1) 0%,
      rgba(15, 20, 45, 1) 50%,
      rgba(6, 6, 23, 1) 100%
    );
  
  padding-bottom: 5rem;
  overflow: hidden;
}

body.light-mode .contact-combined-hero {
  /* Beautiful gradient background - LIGHT MODE (from hero.css) */
  background: 
    radial-gradient(ellipse at top left, rgba(245, 158, 11, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, 
      rgba(248, 250, 252, 1) 0%,
      rgba(241, 245, 249, 1) 50%,
      rgba(248, 250, 252, 1) 100%
    );
}

.contact-hero {
  position: relative;
  padding: 180px 0 60px; /* Reduced bottom padding since form follows */
  text-align: center;
  /* background removed as parent handles it */
}

/* Geometric Overlay matching index.html */
.geometric-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  filter: blur(50px);
  opacity: 0.4;
  animation: floatShape 20s infinite alternate;
}

.shape-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  animation-duration: 25s;
}

.shape-2 {
  bottom: -10%;
  right: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #2563eb 0%, transparent 70%); /* Blue accent */
  animation-duration: 30s;
}

.shape-3 {
  top: 40%;
  left: 40%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation-duration: 20s;
}

@keyframes floatShape {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(10deg); }
}

/* Extra optimized shapes for desktop */
.shape-4 {
  top: 20%;
  right: 15%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  animation: floatShape 18s infinite alternate-reverse;
}

.shape-5 {
  bottom: 15%;
  left: 25%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 60%);
  animation: floatShape 22s infinite alternate;
}

.contact-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  background: rgba(212, 175, 55, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.contact-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================
   2. MAIN FORM SECTION
   ========================================= */
.contact-section-wrapper {
  position: relative;
  z-index: 10;
  margin-top: 0;
  /* padding-bottom handled by parent wrapper */
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glass Card Container - Refined */
.contact-card-glass {
  background: rgba(30, 30, 35, 0.65); /* More transparent for glass effect */
  backdrop-filter: blur(25px); /* Stronger blur */
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); /* Deep shadow */
  overflow: hidden; /* For inner border-radius */
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .contact-grid {
    display: grid;
    grid-template-columns: 4fr 5fr; /* 40% Info, 60% Form */
  }
}

/* Left Column: Info */
.contact-info-col {
  background: linear-gradient(135deg, rgba(20, 20, 20, 1) 0%, rgba(40, 40, 45, 1) 100%);
  padding: 3rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08); /* Divider */
}

/* Enhancing Left Column Elements */
.contact-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.contact-header p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 3rem;
  font-size: 1rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.icon-box {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15); /* Slightly stronger bg */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.info-item:hover .icon-box {
  transform: scale(1.1);
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.info-item p, 
.info-item a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.3s;
}

.info-item a:hover {
  color: var(--accent-primary);
}

.social-connect {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05); /* Separator */
}

.social-connect h3 {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

.contact-info-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

/* Right Column: Form */
.contact-form-col {
  padding: 3rem;
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================
   3. PROCESS SECTION ("How it Works")
   ========================================= */
.process-section {
  padding: 5rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-secondary);
}

.section-title-center {
  text-align: center;
  margin-bottom: 4rem;
  padding: 0 1.5rem;
}

.section-title-center h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-title-center p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.process-card {
  text-align: center;
  padding: 2rem;
  position: relative;
}

.process-step-number {
  font-size: 4rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.03);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  line-height: 1;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.8rem;
  color: var(--accent-primary);
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.process-card:hover .process-icon {
  transform: translateY(-5px) scale(1.1);
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.process-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.process-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* =========================================
   4. QUICK LINKS SECTION ("Find Your Path")
   ========================================= */
.quick-links-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.quick-link-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.quick-link-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.card-icon-small {
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.quick-link-card h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.quick-link-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
  flex-grow: 1;
}

.link-arrow {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s;
}

.quick-link-card:hover .link-arrow {
  gap: 1rem;
}

/* =========================================
   5. FAQ SECTION
   ========================================= */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-secondary);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-item {
  border-bottom: 1px solid var(--border-secondary);
  margin-bottom: 1rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-toggle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.5rem;
}

/* Map adjustment */
.map-section-minimal {
  margin-top: 0;
  border-top: none;
}

.minimal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

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

.form-group label {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  transition: all 0.3s;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 0;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  border-radius: 0; /* Remove rounded corners for underline style */
}

/* Focus effects */
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--accent-primary);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
  color: var(--accent-primary);
}

.btn-submit-minimal {
  margin-top: 1rem;
  padding: 1rem 2rem;
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-submit-minimal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
  background: var(--accent-hover, #cfaa37);
}

.btn-submit-minimal:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-submit-minimal.success {
  background: #10B981;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

/* Map Section */
.map-section-minimal {
  width: 100%;
  filter: grayscale(1) invert(1) brightness(0.8); /* Dark Map Style */
  border-top: 1px solid var(--border-secondary);
}

.map-section-minimal iframe {
  display: block;
}

/* Responsive Tweaks */
@media (max-width: 768px) {
  .contact-combined-hero {
    padding-bottom: 3rem; /* Less space on mobile */
  }
  
  .contact-hero {
    padding-top: 120px; /* Adjust top padding */
  }
  
  .contact-info-col,
  .contact-form-col {
    padding: 2rem;
  }
  
  .contact-header h2 {
    font-size: 1.8rem;
  }
}
