/* ==========================================================================
   1. PAGE BASE LAYOUT TOKENS & INTERSECTION OBSERVER ANIMATION STATES
   Ordered to match: <main class="ed-h6-contact-main"> — the outermost wrapper
   ========================================================================== */

.ed-h6-contact-main {
  padding-top: 140px;
  background-color: var(--ed-h1-bg-dark);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Ambient atmospheric glow — absolute-positioned inside .ed-h6-contact-main */
.ed-h6-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(20, 184, 166, 0.02) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 1;
}

/* Section wrapper — constrains all inner content */
.ed-h6-section-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 24px 100px 24px;
  position: relative;
  z-index: 2;
}

/* Intersection Observer scroll-reveal states */
.ed-h6-reveal-el {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.ed-h6-reveal-el.ed-h6-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   2. HERO PORTAL COMPONENT
   Ordered to match: <section class="ed-h6-hero-portal"> — first child of wrapper
   ========================================================================== */

.ed-h6-hero-portal {
  background:
    linear-gradient(
      rgba(0, 0, 0, 0.525),
      rgba(0, 0, 0, 0.796),
      rgba(0, 0, 0, 0.602)
    ),
    url(https://i.pinimg.com/736x/43/ed/51/43ed51fb08e8f29445a4c2c3f84b072a.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
  width: 100%;
  min-height: 55vh; /* Perfectly balanced height for a subpage hero */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px 24px;
  z-index: 2;
}

.ed-h6-hero-wrapper {
  max-width: 850px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.ed-h6-hero-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--ed-h1-teal-primary);
  display: inline-block;
  margin-bottom: 20px;
}

.ed-h6-hero-title {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2.5rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  color: var(--ed-h1-text-light);
}

.ed-h6-gradient {
  background: linear-gradient(to right, #ffffff, var(--ed-h1-gold-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ed-h6-hero-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ed-h1-text-muted);
  max-width: 720px;
  margin: 0 auto 32px auto;
  font-weight: 300;
}

/* Subtle pulsing arrow indicator */
.ed-h6-hero-arrow {
  color: var(--ed-h1-gold-accent);
  animation: edH6Bounce 2s infinite;
  opacity: 0.7;
  display: inline-flex;
  justify-content: center;
}

@keyframes edH6Bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

/* ==========================================================================
   3. DUAL CONSOLE SPLIT — Section header + grid container
   Ordered to match: <div class="ed-h6-console-split"> — second child of wrapper
   ========================================================================== */

.ed-h6-main-heading {
  font-family: var(--ed-h1-font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 18px;
  line-height: 1.2;
}

.ed-h6-console-split {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

/* ==========================================================================
   4. LEFT COLUMN: INSTITUTIONAL ACCESS DIRECTORY CARD
   Ordered to match: <div class="ed-h6-directory-card"> — left child of split
   ========================================================================== */

.ed-h6-directory-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 24px;
  padding: 44px;
}

.ed-h6-directory-card h3 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--ed-h1-text-light);
}

.ed-h6-directory-lead {
  font-size: 0.95rem;
  color: var(--ed-h1-text-muted);
  margin-bottom: 36px;
  font-weight: 300;
}

.ed-h6-directory-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.ed-h6-directory-item {
  border-left: 2px solid rgba(20, 184, 166, 0.15);
  padding-left: 20px;
  transition: border-color 0.3s ease;
}

.ed-h6-directory-item:hover {
  border-color: var(--ed-h1-teal-primary);
}

.ed-h6-item-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--ed-h1-gold-accent);
  display: block;
  margin-bottom: 6px;
}

.ed-h6-directory-item h4 {
  font-family: var(--ed-h1-font-title);
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--ed-h1-text-light);
}

.ed-h6-directory-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--ed-h1-text-muted);
  font-weight: 300;
}

/* ==========================================================================
   5. RIGHT COLUMN: PREMIUM GLASSMORPHIC INQUIRY FORM CARD
   Ordered to match: <div class="ed-h6-form-card"> — right child of split
   ========================================================================== */

.ed-h6-form-card {
  background: var(--ed-h1-glass-bg);
  border: 1px solid var(--ed-h1-glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 44px;
}

.ed-h6-inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ed-h6-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ed-h6-form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ed-h1-text-muted);
  letter-spacing: 0.5px;
}

/* Customized high-end hover form field tokens */
.ed-h6-form-group input,
.ed-h6-form-group select,
.ed-h6-form-group textarea {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ed-h1-glass-border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--ed-h1-text-light);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.ed-h6-form-group input:focus,
.ed-h6-form-group select:focus,
.ed-h6-form-group textarea:focus {
  border-color: var(--ed-h1-teal-primary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(20, 184, 166, 0.1);
}

/* Clean formatting overwrite for standard dropdown arrows */
.ed-h6-form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 48px;
}

.ed-h6-form-group select option {
  background: var(--ed-h1-bg-dark);
  color: var(--ed-h1-text-light);
}

/* Submit button element runtime transitions */
.ed-h6-submit-btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--ed-h1-text-light);
  color: var(--ed-h1-bg-dark);
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h6-submit-btn svg {
  transition: transform 0.3s ease;
}

.ed-h6-submit-btn:hover {
  background: var(--ed-h1-teal-primary);
  color: var(--ed-h1-text-light);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.25);
  transform: translateY(-2px);
}

.ed-h6-submit-btn:hover svg {
  transform: translateX(
    4px
  ); /* Animates vector arrow dynamically rightwards on submit pass */
}

/* ==========================================================================
   6. GLASSMORPHIC SUCCESS MODAL + VOICE SYNTHESIS FEEDBACK UI
   Injected by JavaScript on valid form submission — layered above all content
   ========================================================================== */

.ed-h6-success-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 13, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h6-success-modal.is-active {
  opacity: 1;
  pointer-events: all;
}

.ed-h6-success-card {
  background: rgba(20, 184, 166, 0.03);
  border: 1px solid rgba(20, 184, 166, 0.18);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-radius: 28px;
  padding: 60px 52px;
  max-width: 520px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow:
    0 0 80px rgba(20, 184, 166, 0.06),
    0 25px 60px rgba(0, 0, 0, 0.5);
  transform: scale(0.93);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ed-h6-success-modal.is-active .ed-h6-success-card {
  transform: scale(1);
}

/* Circular icon badge */
.ed-h6-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(20, 184, 166, 0.08);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-h1-teal-primary);
}

.ed-h6-success-title {
  font-family: var(--ed-h1-font-title);
  font-size: 1.65rem;
  color: var(--ed-h1-text-light);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.ed-h6-success-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--ed-h1-text-muted);
  font-weight: 300;
  max-width: 380px;
}

/* Live voice synthesis indicator bar — shown while speech is speaking */
.ed-h6-voice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ed-h1-teal-primary);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ed-h6-voice-bar.is-speaking {
  opacity: 1;
}

.ed-h6-voice-pulse {
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Three animated bars simulating audio waveform */
.ed-h6-voice-pulse span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--ed-h1-teal-primary);
  animation: ed-h6-wave 1.2s ease-in-out infinite;
}

.ed-h6-voice-pulse span:nth-child(1) {
  height: 8px;
  animation-delay: 0s;
}
.ed-h6-voice-pulse span:nth-child(2) {
  height: 14px;
  animation-delay: 0.15s;
}
.ed-h6-voice-pulse span:nth-child(3) {
  height: 10px;
  animation-delay: 0.3s;
}
.ed-h6-voice-pulse span:nth-child(4) {
  height: 16px;
  animation-delay: 0.1s;
}
.ed-h6-voice-pulse span:nth-child(5) {
  height: 7px;
  animation-delay: 0.25s;
}

@keyframes ed-h6-wave {
  0%,
  100% {
    transform: scaleY(0.5);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Dismiss button */
.ed-h6-success-close {
  margin-top: 8px;
  background: var(--ed-h1-teal-primary);
  color: var(--ed-h1-bg-dark);
  border: none;
  padding: 13px 36px;
  border-radius: 50px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.3px;
}

.ed-h6-success-close:hover {
  background: var(--ed-h1-text-light);
  color: var(--ed-h1-bg-dark);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ==========================================================================
   7. RESPONSIVE MEDIA QUERIES — Grouped at absolute bottom
   ========================================================================== */

@media (max-width: 960px) {
  .ed-h6-console-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ed-h6-directory-card,
  .ed-h6-form-card {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .ed-h6-hero-portal {
    min-height: auto;
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .ed-h6-hero-lead {
    font-size: 1rem;
  }

  .ed-h6-success-card {
    padding: 40px 28px;
  }
}