/* ==========================================================================
   Edunard Luxury Design System - Global Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --color-night: #070B14;
  --color-navy: #0B1224;
  --color-navy-light: #111B35;
  --color-surface-high: #262A34;
  --color-surface-highest: #31353F;
  --color-border: #1E293B;
  --color-border-subtle: rgba(255, 255, 255, 0.08);

  /* Accents */
  --color-electric: #2F6BFF;
  --color-cyan: #22D3EE;
  --color-mint: #34D399;

  /* Text */
  --color-paper: #F7F8FB;
  --color-slate: #94A3B8;
  --color-muted: #475569;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Radii */
  --radius-sm: 0.25rem;
  --radius: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows & Glows */
  --glow-electric: 0 0 28px -4px rgba(47, 107, 255, 0.35);
  --glow-cyan: 0 0 24px -4px rgba(34, 211, 238, 0.3);
  --shadow-inner: inset 0 1px 1px rgba(255, 255, 255, 0.06);
  
  /* Layout */
  --max-width: 1440px;
  --header-height: 72px;

  /* ── Alias tokens (used in page-level styles, mapped to design tokens) ── */
  --color-primary:           #2F6BFF;
  --color-secondary:         #22D3EE;
  --color-tertiary:          #34D399;
  --color-primary-container: rgba(47, 107, 255, 0.15);
  --color-text-main:         #F7F8FB;
  --color-slate-dim:         #475569;
  --color-card-bg:           #0B1224;
  --color-bg:                #070B14;
  --color-surface:           #262A34;
  --color-on-primary:        #FFFFFF;
  --color-error:             #F87171;
  --color-secondary-fixed:   #22D3EE;
  --color-primary-fixed:     #2F6BFF;
  --color-on-primary-fixed:  #FFFFFF;

  /* ── Additional utility tokens ── */
  --shadow-sm:        0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:        0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-lg:        0 8px 24px rgba(0, 0, 0, 0.6);
  --radius-2xl:       2rem;
  --glow-mint:        0 0 24px -4px rgba(52, 211, 153, 0.3);
  --color-electric-hover: #2554CC;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-night);
  color: var(--color-paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

::selection {
  background-color: var(--color-electric);
  color: #fff;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.text-paper { color: var(--color-paper); }
.text-slate { color: var(--color-slate); }
.text-electric { color: var(--color-electric); }
.text-cyan { color: var(--color-cyan); }
.text-mint { color: var(--color-mint); }

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem; /* Mobile */
}

@media (min-width: 768px) {
  .container {
    padding: 0 3rem; /* Desktop */
  }
}

.section-py {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

/* ==========================================================================
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-electric);
  color: #fff;
  box-shadow: var(--glow-electric);
}

.btn-primary:hover {
  background-color: #2554cc;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-slate);
  border-color: var(--color-border-subtle);
}

.btn-ghost:hover {
  color: var(--color-paper);
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost.active {
  color: var(--color-cyan);
  background-color: rgba(34, 211, 238, 0.05);
  border-color: rgba(34, 211, 238, 0.4);
}

.btn-outline-cyan {
  background-color: transparent;
  color: var(--color-paper);
  border-color: rgba(255,255,255,0.2);
}

.btn-outline-cyan:hover {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  background-color: rgba(34, 211, 238, 0.05);
}

/* Luxury Card */
.luxury-card {
  background-color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-inner);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.luxury-card:hover {
  border-color: rgba(47, 107, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 20px 35px -10px rgba(7, 11, 20, 0.8);
}

/* Tag Badge */
.tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-badge.electric {
  background-color: rgba(47, 107, 255, 0.15);
  color: var(--color-electric);
  border: 1px solid rgba(47, 107, 255, 0.3);
}

.tag-badge.cyan {
  background-color: rgba(34, 211, 238, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

/* Ambient Glows */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
  transition: all 0.3s ease;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Hide header CTA on mobile */
.site-header .btn-primary { display: none; }
@media (min-width: 768px) {
  .site-header .btn-primary { display: inline-flex; }
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .site-header-inner {
    padding: 0 3rem;
  }
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

.footer-brand-col .footer-logo img {
  display: block;
  max-height: 40px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand-col .footer-bio {
  color: var(--color-slate);
  font-size: 0.9rem;
  line-height: 1.5;
}

.nav-links {
  display: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-slate);
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-cyan);
    transition: color 0.2s ease;
  }
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   Mobile Navigation Drawer
   ========================================================================== */

/* Hamburger icon bars */
.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 200;
  flex-shrink: 0;
}

.mobile-menu-btn .bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-paper);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Animated X when open */
.mobile-menu-btn.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.is-open .bar:nth-child(2) { opacity: 0; }
.mobile-menu-btn.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

/* Backdrop overlay */
.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 20, 0.7);
  z-index: 150;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.mobile-nav-backdrop.is-open { display: block; }

@media (min-width: 768px) {
  .mobile-nav-backdrop { display: none !important; }
}

/* Drawer panel */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 100%);
  max-width: 100vw;
  height: 100dvh;
  box-sizing: border-box;
  background: rgba(11, 18, 36, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 160;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

/* Prevent native scrollbar overlap when open */
html:has(.mobile-nav-drawer.is-open) {
  overflow: hidden;
}

@media (min-width: 768px) {
  .mobile-nav-drawer { display: none; }
}

/* Drawer header row */
.mobile-nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-close:hover,
.mobile-menu-close:active {
  color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.05);
}

/* Drawer nav links */
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.mobile-nav-links a::after {
  content: "→";
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.2s ease;
  color: var(--color-cyan);
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active,
.mobile-nav-links a.active {
  color: var(--color-cyan);
  transform: translateX(8px);
  outline: none;
}

.mobile-nav-links a:hover::after,
.mobile-nav-links a:active::after,
.mobile-nav-links a.active::after {
  opacity: 1;
  transform: translateX(0);
}

/* Drawer CTAs */
.mobile-nav-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-ctas .btn {
  width: 100%;
  justify-content: center;
  border-radius: 100px;
}

.mobile-nav-ctas .btn-outline-cyan {
  color: var(--color-cyan);
  border-color: rgba(34, 211, 238, 0.4);
  background-color: rgba(34, 211, 238, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer, .footer {
  background-color: var(--color-navy);
  border-top: 1px solid var(--color-border);
}

.footer-top, .footer-grid {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .footer-top, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top, .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
  }
}

.footer-col h4, .footer-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-paper);
  margin-bottom: 1rem;
}

.footer-col ul, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col a, .footer-links a {
  font-size: 0.875rem;
  color: var(--color-slate);
  transition: color 0.2s ease;
}

.footer-col a:hover, .footer-links a:hover {
  color: var(--color-cyan);
}

.footer-legal {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.footer-legal-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-legal-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    width: 100%;
  }
}

.footer-legal-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-paper);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer-legal-title {
    margin-right: 2rem;
  }
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-legal-links {
    justify-content: flex-end;
  }
}

.footer-legal-links a {
  font-size: 0.875rem;
  color: var(--color-slate);
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: var(--color-cyan);
}

.footer-middle {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  font-size: 0.875rem;
  color: var(--color-slate);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(30, 41, 59, 0.6);
  padding-top: 1.5rem;
  padding-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--color-slate);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-mint);
  font-weight: 500;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-mint);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.4); }
  70% { opacity: 0.4; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0); }
  100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-legal {
    align-items: flex-end;
  }
}
.footer-locations {
  max-width: 36rem;
  line-height: 1.6;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

/* Grid */
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Utility: visible only on tablet/desktop */
.btn-ghost--desktop {
  display: none;
}
@media (min-width: 768px) {
  .btn-ghost--desktop {
    display: inline-flex;
  }
}

/* about.html responsive flex rows */
.about-flex-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .about-flex-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.about-flex-row--lg {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .about-flex-row--lg {
    flex-direction: row;
  }
}

/* ==========================================================================
   Mobile Overflow Containment
   ========================================================================== */

/* Prevent any element from breaking the viewport */
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Pill / badge overflow protection */
.es-telemetry-pill,
.th-telemetry-pill,
.cp-badge,
.ti-badge,
.es-badge,
.mj-badge,
.pp-badge,
.ts-badge,
[class$="-pill"],
[class$="-badge"] {
  max-width: 100%;
  overflow: hidden;
}

/* On mobile, allow pill text to wrap */
@media (max-width: 767px) {
  .es-telemetry-pill,
  .th-telemetry-pill,
  .cp-badge,
  .ti-badge,
  .es-badge,
  .mj-badge,
  .pp-badge,
  .ts-badge {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
    font-size: 0.625rem;
  }
}

/* Hero action groups — stack vertically on mobile */
@media (max-width: 639px) {
  .hero-actions,
  .pro-hero-actions,
  .th-hero-actions,
  .es-hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn,
  .pro-hero-actions .btn,
  .th-hero-actions .btn,
  .es-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Glow/ambient blurs — prevent fixed px widths from causing scroll */
.hero-bg-glow-1,
.es-glow-1,
.th-glow-1,
.ti-glow-1,
[class$="-glow-1"],
[class$="-glow-2"] {
  max-width: 100vw;
  overflow: hidden;
}

/* ==========================================================================
   Contact Form 7 — Architecture & Theme Integration Resets
   ========================================================================== */

/* Structural Resets — Prevent inline span layout breakage */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  position: relative;
}

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

.wpcf7-spinner {
  display: none !important;
}

/* Submit button full width within form contexts */
.wpcf7 input[type="submit"] {
  width: 100%;
  cursor: pointer;
}

/* Form validation tips */
.wpcf7-not-valid-tip {
  color: #f87171 !important;
  font-size: 0.75rem !important;
  font-weight: 500;
  margin-top: 0.35rem;
  display: block;
}

/* Response output banner matching Edunard dark palette */
.wpcf7-response-output {
  margin: 1.25rem 0 0 0 !important;
  padding: 0.875rem 1.25rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  font-family: var(--font-body);
}

.wpcf7 form.sent .wpcf7-response-output {
  background-color: rgba(52, 211, 153, 0.1) !important;
  border: 1px solid rgba(52, 211, 153, 0.3) !important;
  color: var(--color-mint) !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  background-color: rgba(239, 68, 68, 0.1) !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
  color: #f87171 !important;
}

/* ==========================================================================
   Form Component Styles (Extracted from Contact Page)
   ========================================================================== */
.form-panel {
  position: relative;
  background-color: #111624;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

@media (min-width: 768px) {
  .form-panel {
    padding: 3rem;
  }
}

.form-glow {
  position: absolute;
  top: -5rem;
  right: -5rem;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background-color: rgba(47, 107, 255, 0.1);
  filter: blur(40px);
  pointer-events: none;
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  position: relative;
  z-index: 1;
}

.form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-paper);
}

.form-subtitle {
  font-size: 0.8125rem;
  color: var(--color-slate);
  margin-top: 0.25rem;
}

.form-icon {
  color: rgba(148, 163, 184, 0.6);
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

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

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-slate);
  margin-bottom: 0.5rem;
}

.form-label .req {
  color: var(--color-secondary);
}

.form-label .meta {
  font-size: 0.625rem;
  color: rgba(148, 163, 184, 0.5);
}

.toggle-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.25rem;
  background-color: var(--color-night);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background-color: var(--color-night);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-paper);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(148, 163, 184, 0.4);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.form-select {
  appearance: none;
  cursor: pointer;
}

.select-wrapper {
  position: relative;
}

.select-wrapper svg {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--color-slate);
  width: 1.25rem;
  height: 1.25rem;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.form-checkbox {
  margin-top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  background-color: var(--color-night);
  border: 1px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
}

.form-checkbox:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.checkbox-label {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  line-height: 1.5;
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  position: relative;
  z-index: 1;
}

.submit-btn:hover {
  background-color: var(--color-electric);
  box-shadow: 0 0 20px rgba(47, 107, 255, 0.4);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.form-footer svg {
  color: var(--color-secondary);
  width: 1rem;
  height: 1rem;
}

.form-footer p {
  font-size: 0.6875rem;
  color: rgba(148, 163, 184, 0.8);
}

.success-banner {
  display: none;
  background-color: rgba(34, 211, 153, 0.1);
  border: 1px solid rgba(34, 211, 153, 0.3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.success-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--color-mint);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.success-text {
  font-size: 0.8125rem;
  color: var(--color-paper);
}

/* CF7 Fallback Classes */
.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-email,
.wpcf7-form-control.wpcf7-tel,
.wpcf7-form-control.wpcf7-url,
.wpcf7-form-control.wpcf7-number,
.wpcf7-form-control.wpcf7-select,
.wpcf7-form-control.wpcf7-textarea {
  width: 100%;
  background-color: var(--color-night);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: var(--radius-md);
  color: var(--color-paper);
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  transition: all 0.2s ease;
}

.wpcf7-form-control.wpcf7-text:focus,
.wpcf7-form-control.wpcf7-email:focus,
.wpcf7-form-control.wpcf7-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.wpcf7-form-control.wpcf7-submit {
  width: 100%;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.wpcf7-form-control.wpcf7-submit:hover {
  background-color: var(--color-electric);
  box-shadow: 0 0 20px rgba(47, 107, 255, 0.4);
}

/* ==========================================================================
   Career Diagnostic Layout & Polish
   ========================================================================== */
.cd-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .cd-form-grid { grid-template-columns: 5fr 7fr; gap: 5rem; }
}

.cd-form-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.cd-form-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cd-form-sla {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.5rem;
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.cd-sla-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cd-sla-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cd-sla-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.cd-sla-icon.c1 { background: rgba(47, 107, 255, 0.15); color: var(--color-electric); }
.cd-sla-icon.c2 { background: rgba(52, 211, 153, 0.15); color: var(--color-mint); }

.cd-sla-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cd-sla-title {
  font-size: 1rem;
  color: var(--color-paper);
  font-weight: 600;
  line-height: 1.4;
}

.cd-sla-desc {
  font-size: 0.8125rem;
  color: var(--color-slate);
  line-height: 1.5;
}

.cd-quote-box {
  padding: 1.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.cd-quote-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 48px;
  color: rgba(255, 255, 255, 0.03);
}

.cd-quote-text {
  font-size: 0.9375rem;
  color: var(--color-paper);
  font-style: italic;
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

.cd-quote-author {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cd-author-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.cd-author-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.cd-author-name {
  font-size: 0.9375rem;
  color: var(--color-paper);
  font-weight: 600;
}

.cd-author-title {
  font-size: 0.75rem;
  color: var(--color-slate);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CF7 Checkbox & Nested Form Fixes
   ========================================================================== */
.wpcf7-checkbox .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.wpcf7-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 4px;
  background-color: var(--color-night);
  border: 1px solid rgba(148, 163, 184, 0.5);
  cursor: pointer;
  appearance: none;
  position: relative;
  flex-shrink: 0;
}

.wpcf7-checkbox input[type="checkbox"]:checked {
  background-color: var(--color-electric);
  border-color: var(--color-electric);
}

.wpcf7-checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 0.875rem;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.wpcf7-list-item-label {
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.9);
  cursor: pointer;
  line-height: 1.6;
}

/* Override the dark box issue if .form-checkbox was accidentally applied to a span */
span.form-checkbox {
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: auto !important;
}

.wpcf7-response-output {
  margin-top: 1rem !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.875rem;
}
