/* =============================================
   vDCW — van Dorst CodeWorks
   Main Stylesheet
   ============================================= */

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

/* Ensure the HTML hidden attribute always wins over display: flex/grid/etc */
[hidden] { display: none !important; }

:root {
  --bg-dark:       #080b12;
  --bg-section:    #0c1120;
  --bg-card:       #0f1628;
  --bg-card-hover: #131d35;

  --neon-blue:   #00c8ff;
  --neon-cyan:   #00ffe7;
  --neon-purple: #a855f7;
  --neon-mid:    #5b8af7;

  --text-primary:   #e8eaf6;
  --text-secondary: #7a8aaa;
  --text-mono:      #4fc3f7;

  --border:       rgba(0, 200, 255, 0.12);
  --border-hover: rgba(0, 200, 255, 0.35);
  --glow-blue:    0 0 20px rgba(0, 200, 255, 0.25);
  --glow-strong:  0 0 40px rgba(0, 200, 255, 0.4);

  --font-body:  'Exo 2', 'Segoe UI', sans-serif;
  --font-mono:  'Share Tech Mono', 'Courier New', monospace;
  --font-head:  'Rajdhani', 'Exo 2', sans-serif;

  --radius: 6px;
  --nav-h: 68px;
}

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

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: rgba(0, 200, 255, 0.25);
  color: var(--neon-cyan);
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(0,200,255,0.3); border-radius: 3px; }

/* ---------- TYPOGRAPHY ---------- */
.mono { font-family: var(--font-mono); }

.gradient-text {
  background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- REUSABLE LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-section);
}

.section-label {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--neon-blue);
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.85;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section-title.centered { text-align: center; }

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 60px;
}

.section-sub.centered { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 24px rgba(0,200,255,0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  opacity: 0;
  transition: opacity 0.3s;
  filter: blur(12px);
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(0,200,255,0.5);
}

.btn-primary:hover::after { opacity: 0.6; }

.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--neon-blue);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-ghost:hover {
  background: rgba(0,200,255,0.07);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.btn-large { padding: 18px 48px; font-size: 1.1rem; }

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- NAV ---------- */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

#navbar.scrolled {
  background: rgba(8, 11, 18, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.logo-bracket { color: var(--neon-blue); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--neon-blue); }

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border-hover) !important;
  border-radius: var(--radius);
  color: var(--neon-blue) !important;
  transition: background 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  background: rgba(0,200,255,0.08) !important;
  box-shadow: var(--glow-blue) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,200,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 40px) 24px 80px;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--neon-blue);
  text-transform: uppercase;
  opacity: 0;
  animation: fadeUp 0.8s 0.3s ease forwards;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s ease forwards;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 44px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s ease forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
  opacity: 0;
  animation: fadeUp 0.8s 0.9s ease forwards;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s ease forwards;
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--neon-blue);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  animation: fadeIn 1.5s 2s ease forwards;
  opacity: 0;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--neon-blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ---------- BLINK DOT ---------- */
.blink-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
  animation: blink 1.4s ease-in-out infinite;
}

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.about-text em { color: var(--text-primary); font-style: normal; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(0,200,255,0.07);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-mono);
  transition: border-color 0.2s, background 0.2s;
}

.tag:hover {
  border-color: var(--border-hover);
  background: rgba(0,200,255,0.12);
}

/* Terminal Card */
.terminal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5), var(--glow-blue);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red    { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green  { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 20px 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
}

.terminal-body p { margin: 0; }

.t-prompt { color: var(--neon-cyan); margin-right: 8px; }
.t-cmd    { color: var(--text-primary); }
.t-out    { color: var(--text-secondary); padding-left: 0; }
.t-key    { color: #9ec8ff; }
.t-val    { color: #ffd580; }
.t-green  { color: var(--neon-cyan); }
.t-cursor { margin-top: 8px; }

.cursor-blink {
  animation: blink 1.1s step-start infinite;
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: default;
}

.service-card--wide {
  grid-column: span 3;
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.service-card--wide .service-icon { flex-shrink: 0; }

.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), var(--glow-blue);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--neon-blue);
  opacity: 0.9;
}

.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card-glow {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  opacity: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0,200,255,0.06) 0%, transparent 70%);
  transition: opacity 0.3s;
  pointer-events: none;
}

.service-card:hover .card-glow { opacity: 1; }

/* ---------- BUILDS ---------- */
.builds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.build-card {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.build-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.build-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--neon-purple);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.build-card h3 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.build-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.build-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.build-tech span {
  padding: 3px 10px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.25);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--neon-purple);
}

.build-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.build-card:hover .build-accent { opacity: 1; }

/* ---------- WHY ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 16px;
}

.why-item {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  transition: border-color 0.3s;
  position: relative;
}

.why-item:hover { border-color: var(--border-hover); }

.why-num {
  font-size: 2.5rem;
  color: rgba(0,200,255,0.12);
  line-height: 1;
  margin-bottom: 12px;
  transition: color 0.3s;
}

.why-item:hover .why-num { color: rgba(0,200,255,0.25); }

.why-item h3 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------- CONTACT ---------- */
.contact-container { max-width: 900px; }

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,0.4);
}

.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-info {
  padding: 48px;
  border-right: 1px solid var(--border);
}

.contact-item {
  margin-bottom: 32px;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 1.05rem;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-value:hover { color: var(--neon-blue); }

.status-available {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-cyan) !important;
}

.contact-cta {
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  background: linear-gradient(135deg, rgba(0,200,255,0.03), rgba(168,85,247,0.03));
}

.cta-hint {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ---------- FOOTER ---------- */
#footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.2); }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card--wide { grid-column: span 2; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(8,11,18,0.97);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open li { padding: 10px 0; border-bottom: 1px solid var(--border); }
  .nav-links.open li:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card--wide { grid-column: span 1; flex-direction: column; }
  .builds-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-row { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); padding: 32px; }
  .contact-cta { padding: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .stat-divider { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .section { padding: 72px 0; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}

/* =============================================
   CONTACT MODAL & FORM
   ============================================= */

/* ---------- OVERLAY ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ---------- BOX ---------- */
.modal-box {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: 10px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 60px rgba(0,200,255,0.08);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,200,255,0.2) transparent;
}

.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

/* ---------- HEADER ---------- */
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 32px 32px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
}

.modal-close {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 1.4rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex-shrink: 0;
  margin-top: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(0,200,255,0.06);
}

/* ---------- FORM ---------- */
#contact-form {
  padding: 28px 32px 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.req { color: var(--neon-blue); }

.form-input {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: rgba(122,138,170,0.5); }

.form-input:focus {
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(0,200,255,0.1);
}

.form-input.invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248,113,113,0.1);
}

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

/* remove number arrows on captcha */
.captcha-input::-webkit-inner-spin-button,
.captcha-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.captcha-input { -moz-appearance: textfield; width: 140px; }

.captcha-group { margin-bottom: 28px; }

.captcha-q {
  color: var(--neon-cyan);
  font-size: 0.9rem;
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 5px;
  min-height: 18px;
}

.form-error--global {
  text-align: center;
  margin-top: 12px;
  font-size: 0.85rem;
}

/* ---------- ACTIONS ---------- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.form-privacy {
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
}

/* ---------- SPINNER ---------- */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- SUCCESS ---------- */
.form-success {
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.success-icon {
  color: var(--neon-cyan);
  filter: drop-shadow(0 0 12px var(--neon-cyan));
}

.form-success h3 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
}

.form-success p {
  color: var(--text-secondary);
  max-width: 340px;
  line-height: 1.65;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 540px) {
  .modal-header { padding: 24px 20px 20px; }
  #contact-form { padding: 20px 20px 28px; }
  .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .btn-primary { text-align: center; }
}
