/* ─────────────────────────────────────────────────────────────────────
   AgenticQuay — shared design system for contact-us & thank-you pages
   (mirrors the locked landing page index.html)
   ───────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  --bg:          #060810;
  --bg2:         #0b0f1a;
  --bg3:         #0f1525;
  --surface:     rgba(255,255,255,0.04);
  --surface-2:   rgba(255,255,255,0.06);
  --border:      rgba(255,255,255,0.08);
  --purple:      #7c3aed;
  --purple-lt:   #a855f7;
  --cyan:        #06b6d4;
  --cyan-lt:     #22d3ee;
  --pink:        #ec4899;
  --green:       #10b981;
  --amber:       #f59e0b;
  --red:         #f87171;
  --blue:        #3b82f6;
  --text:        #f1f5f9;
  --text-muted:  #94a3b8;
  --text-dim:    #475569;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Animated background ── */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(124,58,237,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-orb {
  position: fixed; border-radius: 50%; filter: blur(100px); pointer-events: none; z-index: 0;
  animation: drift 12s ease-in-out infinite alternate;
}
.bg-orb-1 { width: 600px; height: 600px; background: rgba(124,58,237,0.12); top: -200px; left: -200px; }
.bg-orb-2 { width: 500px; height: 500px; background: rgba(6,182,212,0.08); top: 30%; right: -150px; animation-delay: -4s; }
.bg-orb-3 { width: 400px; height: 400px; background: rgba(236,72,153,0.06); bottom: 10%; left: 30%; animation-delay: -8s; }
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.1); }
}

/* ── Layout ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { position: relative; z-index: 1; }

/* ── Logo mark ── */
.nav-logo-icon, .footer-logo-icon {
  border-radius: 11px;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(124,58,237,0.35);
}
.nav-logo-icon { width: 38px; height: 38px; }
.footer-logo-icon { width: 34px; height: 34px; border-radius: 10px; }

/* ── Navbar ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  background: rgba(6,8,16,0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  text-decoration: none; color: var(--text);
  letter-spacing: -0.01em;
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.875rem;
  font-weight: 500; padding: 8px 14px; border-radius: 8px; transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  background: linear-gradient(135deg, var(--purple), var(--purple-lt)) !important;
  color: white !important; padding: 8px 20px !important; border-radius: 8px !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 20px rgba(124,58,237,0.4) !important; }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--purple), var(--purple-lt));
  color: white; text-decoration: none; padding: 14px 28px;
  border-radius: 12px; font-size: 0.95rem; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit;
  transition: all 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(124,58,237,0.5); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  text-decoration: none; padding: 13px 28px;
  border-radius: 12px; font-size: 0.95rem; font-weight: 600;
  border: 1px solid var(--border); cursor: pointer; font-family: inherit;
  transition: all 0.3s;
}
.btn-secondary:hover { background: var(--surface); border-color: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* ── Section eyebrow / titles ── */
.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-lt); margin-bottom: 12px;
}
.gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #06b6d4 50%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  animation: shimmer 4s ease infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Page badge ── */
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  border-radius: 100px; padding: 6px 16px;
  font-size: 0.8rem; font-weight: 600; color: var(--purple-lt);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 24px;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--purple-lt); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─────────────────────────────────────────────────────────────────────
   Contact / Book a Call
   ───────────────────────────────────────────────────────────────────── */
.form-section { padding: 140px 0 96px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.form-intro h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.form-intro p.lead {
  font-size: 1.12rem; color: var(--text-muted); line-height: 1.7;
  max-width: 460px; margin-bottom: 36px;
}
.intro-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; }
.intro-list li { display: flex; gap: 14px; align-items: flex-start; }
.intro-check {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.25);
  color: #34d399; display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
}
.intro-list strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.intro-list span { font-size: 0.86rem; color: var(--text-muted); line-height: 1.5; }

.intro-contact {
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 0.9rem; color: var(--text-muted);
}
.intro-contact a { color: var(--cyan-lt); text-decoration: none; font-weight: 600; }
.intro-contact a:hover { text-decoration: underline; }

/* ── Form card ── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.form-card::before {
  content: ''; position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(124,58,237,0.12); filter: blur(50px); pointer-events: none;
}
.form-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem; font-weight: 700; margin-bottom: 6px; position: relative;
}
.form-card .form-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; position: relative; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; position: relative; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 600; color: var(--text);
  margin-bottom: 7px; letter-spacing: 0.01em;
}
.field label .req { color: var(--purple-lt); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit; font-size: 0.92rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
  background: rgba(255,255,255,0.05);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.field select option { background: var(--bg2); color: var(--text); }

/* honeypot — hidden from humans */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-submit { width: 100%; justify-content: center; margin-top: 6px; padding: 15px 28px; font-size: 1rem; }

.form-error {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(248,113,113,0.1); border: 1px solid rgba(248,113,113,0.3);
  color: #fca5a5; border-radius: 11px; padding: 12px 14px;
  font-size: 0.85rem; line-height: 1.5; margin-bottom: 18px;
}
.form-error a { color: #fca5a5; font-weight: 600; }

.form-consent { font-size: 0.78rem; color: var(--text-dim); margin-top: 16px; text-align: center; line-height: 1.5; }
.form-consent a { color: var(--text-muted); }

/* spinner */
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────────────
   Thank you
   ───────────────────────────────────────────────────────────────────── */
.thanks-section {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 140px 0 96px; text-align: center;
}
.thanks-inner { max-width: 640px; margin: 0 auto; }
.thanks-check {
  width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 32px;
  background: linear-gradient(135deg, rgba(16,185,129,0.2), rgba(6,182,212,0.12));
  border: 1px solid rgba(16,185,129,0.35);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 50px rgba(16,185,129,0.25);
  animation: popin 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popin { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks-section h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 18px;
}
.thanks-section p.lead { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; max-width: 520px; margin: 0 auto 16px; }
.thanks-section p.meta { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 40px; }
.thanks-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.thanks-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 56px; text-align: left;
}
.thanks-step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px;
}
.thanks-step .step-num {
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem; font-weight: 700;
  color: var(--purple-lt); letter-spacing: 0.08em; margin-bottom: 10px;
}
.thanks-step h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 6px; }
.thanks-step p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }

/* ── Footer ── */
footer { padding: 56px 0 32px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; font-weight: 700;
  text-decoration: none; color: var(--text);
}
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 0.8rem; color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; gap: 44px; }
  .thanks-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav .nav-links a:not(.nav-cta) { display: none; }
  .form-section { padding: 120px 0 72px; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .footer-inner { justify-content: center; text-align: center; }
}
