/* ================================================================
   True To Life 3D — contact.css
   Quotation / Contact Us Page
   Brand: Dark Navy · White · Modern Gray · Premium Accent Blue
   ================================================================ */

:root {
  --n9:  #060D1A;
  --n8:  #0B1B33;
  --n7:  #122548;
  --b6:  #1A4FBE;
  --b5:  #2F6FED;
  --b4:  #3E7BFA;
  --b3:  #9DBBFF;
  --b2:  #C8DAFF;
  --g50: #F6F7F9;
  --g100:#EEF1F5;
  --g200:#E3E6EB;
  --g300:#CBD0DA;
  --g400:#9AA3B2;
  --g600:#5B6472;
  --g700:#3D4452;
  --white:#fff;
  --err: #DC2626;
  --ok:  #16A34A;
  --warn:#D97706;

  --fd: "Fraunces","Georgia",serif;
  --fb: "Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --max: 1240px;
  --hh:  72px;
  --rm:  10px;
  --rl:  18px;
  --sh:  0 4px 24px -8px rgba(11,27,51,.14);
  --sh2: 0 16px 48px -16px rgba(11,27,51,.2);
}

/* ─── Reset ─────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body,h1,h2,h3,h4,p,ul,ol { margin: 0; }
ul { list-style: none; padding: 0; }
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input,select,textarea { font: inherit; }

body {
  font-family: var(--fb);
  color: var(--n8);
  background: var(--g50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--b5); color: var(--white);
  padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 2000;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--b4); outline-offset: 2px; }

.container {
  width: 100%; max-width: var(--max);
  margin: 0 auto; padding: 0 24px;
}
h2 { font-family: var(--fd); font-weight: 700; font-size: clamp(1.7rem,2.8vw,2.4rem); letter-spacing: -.01em; }
h3 { font-family: var(--fd); font-weight: 600; font-size: 1.2rem; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--b4); margin-bottom: 8px; }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--g200);
  height: var(--hh);
  display: flex; align-items: center;
  box-shadow: 0 2px 16px -8px rgba(11,27,51,.1);
}
.hdr-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; color: var(--n9); }
.logo-mark { width: 34px; height: 34px; color: var(--b5); flex-shrink: 0; }
.logo-text { font-family: var(--fd); font-weight: 700; font-size: 1.15rem; }
.logo-text em { font-style: normal; color: var(--b5); }
.hdr-nav { display: flex; align-items: center; gap: 28px; }
.hdr-nav a { font-size: .92rem; font-weight: 500; color: var(--g700); transition: color .2s; position: relative; padding: 4px 0; }
.hdr-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--b5); transition: width .2s; }
.hdr-nav a:hover { color: var(--b5); }
.hdr-nav a:hover::after, .hdr-nav a.active::after { width: 100%; }
.hdr-nav a.active { color: var(--b5); }

/* ─── Page Hero ─────────────────────────────────────────── */
.page-hero {
  position: relative;
  background: var(--n9);
  min-height: 380px;
  display: flex; align-items: center;
  padding: 80px 0 72px;
  overflow: hidden;
  color: var(--white);
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(110deg, rgba(6,13,26,.88) 0%, rgba(6,13,26,.6) 55%, rgba(6,13,26,.2) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 640px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--b3);
  background: rgba(62,123,250,.15);
  border: 1px solid rgba(157,187,255,.25);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero-badge svg { width: 14px; height: 14px; color: var(--b3); }
.page-hero h1 {
  font-family: var(--fd); font-weight: 700;
  font-size: clamp(2.2rem,5vw,3.5rem);
  color: var(--white); line-height: 1.1;
  margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--b2), var(--b4) 55%, var(--b2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  color: rgba(255,255,255,.8); font-size: 1.05rem;
  max-width: 520px; margin-bottom: 24px;
}
.hero-sub strong { color: var(--b3); }
.hero-chips {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.hero-chips span {
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  color: rgba(255,255,255,.75);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  padding: 5px 13px; border-radius: 999px;
}
/* Floating mesh decoration */
.hero-mesh {
  position: absolute; right: 5%; top: 50%; z-index: 1;
  transform: translateY(-50%);
  width: 260px; opacity: .45;
  animation: meshFloat 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes meshFloat {
  0%,100% { transform: translateY(-50%) rotate(0deg); }
  50%      { transform: translateY(calc(-50% - 14px)) rotate(2deg); }
}

/* ─── Form Section ───────────────────────────────────────── */
.form-section { padding: 72px 0 96px; }
.form-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Info Panel ── */
.info-panel { position: sticky; top: calc(var(--hh) + 24px); }
.info-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  padding: 36px 30px;
  box-shadow: var(--sh);
}
.info-card h2 { font-size: 1.65rem; color: var(--n9); margin-bottom: 14px; }
.info-card h2 em { font-style: italic; color: var(--b5); }
.info-card > p { color: var(--g600); margin-bottom: 28px; }

.info-steps { display: flex; flex-direction: column; gap: 22px; margin-bottom: 30px; }
.info-steps li { display: flex; gap: 14px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--n8), var(--b6));
  color: var(--white); font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.info-steps li div strong { display: block; font-weight: 600; color: var(--n9); margin-bottom: 2px; }
.info-steps li div p { color: var(--g600); font-size: .88rem; }

.contact-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; padding-top: 20px; border-top: 1px solid var(--g100); }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--rm); transition: background .2s; }
.contact-row:hover { background: var(--g50); }
.contact-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--g50); border: 1px solid var(--g200);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--b5);
}
.contact-icon svg { width: 18px; height: 18px; }
.contact-label { display: block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--g400); }
.contact-val { display: block; font-size: .9rem; font-weight: 600; color: var(--n8); }

.trust-row {
  display: flex; gap: 0; border-top: 1px solid var(--g100); padding-top: 22px;
}
.trust-item { flex: 1; text-align: center; padding: 0 8px; }
.trust-item:not(:last-child) { border-right: 1px solid var(--g200); }
.trust-item strong { display: block; font-family: var(--fd); font-size: 1.5rem; color: var(--b5); line-height: 1; }
.trust-item span { font-size: .75rem; color: var(--g600); }

/* ── Form Card ── */
.form-card {
  background: var(--white);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  box-shadow: var(--sh2);
  overflow: hidden;
}
.form-header {
  background: linear-gradient(135deg, var(--n9), var(--n7));
  padding: 28px 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.form-header h3 { color: var(--white); font-size: 1.25rem; margin-bottom: 4px; }
.form-header p  { color: rgba(255,255,255,.6); font-size: .85rem; }
.req-star { color: var(--err); font-weight: 700; }

.quote-form { padding: 32px 36px; }

/* rows */
.form-row { margin-bottom: 22px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* field group */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label { font-size: .84rem; font-weight: 600; color: var(--n8); }
.field-group label .req-star { margin-left: 2px; }

/* input wrapper */
.input-wrap {
  position: relative; display: flex; align-items: center;
}
.field-icon {
  position: absolute; left: 13px;
  width: 17px; height: 17px; color: var(--g400); flex-shrink: 0;
  pointer-events: none; transition: color .2s;
  z-index: 1;
}
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1.5px solid var(--g200);
  border-radius: var(--rm);
  background: var(--g50);
  font-size: .94rem;
  color: var(--n8);
  transition: border-color .2s, background .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: var(--g400); }
.input-wrap input:hover,
.input-wrap select:hover,
.input-wrap textarea:hover { border-color: var(--g300); }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: var(--b4);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(62,123,250,.12);
}
.input-wrap:focus-within .field-icon { color: var(--b5); }

/* select */
.select-wrap select { cursor: pointer; }
.select-arrow {
  position: absolute; right: 13px;
  width: 17px; height: 17px; color: var(--g400);
  pointer-events: none; flex-shrink: 0;
}

/* textarea */
.textarea-wrap textarea { padding: 12px 14px; resize: vertical; min-height: 130px; padding-left: 14px; }
.textarea-wrap .field-icon { top: 13px; align-self: flex-start; }

/* char count */
.char-count { text-align: right; font-size: .76rem; color: var(--g400); margin-top: 3px; }

/* validation states */
.field-group.valid .input-wrap input,
.field-group.valid .input-wrap select,
.field-group.valid .input-wrap textarea {
  border-color: var(--ok);
}
.field-group.invalid .input-wrap input,
.field-group.invalid .input-wrap select,
.field-group.invalid .input-wrap textarea {
  border-color: var(--err);
  background: #FFF5F5;
}
.field-error {
  font-size: .8rem; color: var(--err); font-weight: 500;
  display: none; align-items: center; gap: 4px;
}
.field-group.invalid .field-error { display: flex; }

/* service info chips */
.service-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.service-chip {
  font-size: .75rem; font-weight: 600;
  color: var(--b5); background: rgba(62,123,250,.08);
  border: 1px solid rgba(62,123,250,.2);
  padding: 4px 11px; border-radius: 999px;
  transition: background .2s, color .2s;
}

/* ── CAPTCHA ── */
.captcha-box {
  background: linear-gradient(135deg, var(--g50), rgba(62,123,250,.04));
  border: 1.5px solid var(--g200);
  border-radius: var(--rm);
  padding: 20px 22px;
}
.captcha-label {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--g700); margin-bottom: 14px;
}
.captcha-label svg { width: 16px; height: 16px; color: var(--b5); }
.captcha-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.captcha-question-wrap { display: flex; align-items: center; gap: 8px; }
.captcha-q {
  display: inline-block;
  font-family: var(--fd); font-size: 1.6rem; font-weight: 700;
  color: var(--n9); letter-spacing: .04em;
  background: var(--white); border: 1px solid var(--g200);
  padding: 8px 18px; border-radius: var(--rm);
  min-width: 140px; text-align: center;
}
.captcha-refresh {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--g100); color: var(--g600);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .3s;
}
.captcha-refresh:hover { background: var(--b5); color: var(--white); transform: rotate(180deg); }
.captcha-refresh svg { width: 16px; height: 16px; }
.captcha-input-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.captcha-input-wrap input {
  width: 110px; padding: 10px 14px;
  border: 1.5px solid var(--g200); border-radius: var(--rm);
  background: var(--white); font-size: .95rem;
  text-align: center; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.captcha-input-wrap input:focus {
  outline: none; border-color: var(--b4);
  box-shadow: 0 0 0 3px rgba(62,123,250,.12);
}
/* remove spin buttons */
.captcha-input-wrap input[type=number] { -moz-appearance: textfield; }
.captcha-input-wrap input[type=number]::-webkit-inner-spin-button,
.captcha-input-wrap input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.captcha-status { font-size: .83rem; font-weight: 600; }
.captcha-status.correct { color: var(--ok); }
.captcha-status.wrong   { color: var(--err); }

/* ── Privacy note ── */
.privacy-note {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: var(--g600);
  background: var(--g50); border-radius: var(--rm);
  padding: 12px 16px; margin-bottom: 22px; margin-top: 4px;
}
.privacy-note svg { width: 15px; height: 15px; color: var(--g400); flex-shrink: 0; }

/* ── Submit button ── */
.form-submit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn-submit {
  width: 100%; padding: 16px 32px;
  background: linear-gradient(135deg, var(--b6), var(--b4));
  color: var(--white); border-radius: 999px;
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 12px 32px -12px rgba(47,111,237,.6);
  transition: transform .18s, box-shadow .18s, opacity .18s;
  position: relative; overflow: hidden;
}
.btn-submit::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
}
.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(47,111,237,.75);
}
.btn-submit:disabled { opacity: .7; cursor: not-allowed; }
.btn-text, .btn-loading { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-text svg { width: 18px; height: 18px; }

/* spinner */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: var(--white);
  animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.submit-note { font-size: .8rem; color: var(--g600); text-align: center; }
.submit-note strong { color: var(--n8); }

/* form error msg */
.form-error-msg {
  display: flex; align-items: flex-start; gap: 10px;
  background: #FFF5F5; border: 1px solid #FECACA;
  border-radius: var(--rm); padding: 14px 16px; margin-top: 16px;
  color: var(--err); font-size: .88rem; font-weight: 500;
}
.form-error-msg svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

/* ── Success State ── */
.form-success {
  padding: 52px 36px;
  text-align: center;
}
.success-icon {
  width: 80px; height: 80px; margin: 0 auto 24px;
  animation: successPop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes successPop {
  from { transform: scale(.5); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.form-success h3 { font-size: 1.6rem; color: var(--n9); margin-bottom: 10px; }
.form-success p  { color: var(--g600); max-width: 400px; margin: 0 auto 10px; }
.success-email   { font-size: .88rem; }
.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 24px; padding: 12px 28px; border-radius: 999px;
  border: 1.5px solid var(--b5); color: var(--b5);
  font-weight: 600; font-size: .95rem;
  transition: background .2s, color .2s;
}
.btn-outline:hover { background: var(--b5); color: var(--white); }

/* ─── Services Overview ──────────────────────────────────── */
.services-overview { padding: 80px 0 96px; background: var(--white); border-top: 1px solid var(--g200); }
.sov-head { text-align: center; margin-bottom: 48px; }
.sov-head h2 { color: var(--n9); }
.sov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sov-card {
  padding: 28px 24px;
  background: var(--g50);
  border: 1px solid var(--g200);
  border-radius: var(--rl);
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s, background .22s;
}
.sov-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px -16px rgba(47,111,237,.28);
  border-color: var(--b3);
  background: var(--white);
}
.sov-icon {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--n9); color: var(--b3);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: background .22s, transform .22s;
}
.sov-icon svg { width: 26px; height: 26px; }
.sov-card:hover .sov-icon { background: var(--b5); transform: rotate(-4deg) scale(1.08); }
.sov-card h3 { margin-bottom: 6px; color: var(--n9); }
.sov-card p  { font-size: .88rem; color: var(--g600); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--n9); color: rgba(255,255,255,.65); padding: 28px 0; }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.foot-logo { color: var(--white); }
.foot-copy { font-size: .82rem; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: .85rem; transition: color .2s; }
.foot-links a:hover { color: var(--white); }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .form-layout { grid-template-columns: 360px 1fr; gap: 28px; }
}
@media (max-width: 960px) {
  .form-layout { grid-template-columns: 1fr; }
  .info-panel   { position: static; }
  .sov-grid     { grid-template-columns: repeat(2,1fr); }
  .hero-mesh    { display: none; }
}
@media (max-width: 640px) {
  .page-hero    { min-height: auto; padding: 60px 0 52px; }
  .page-hero h1 { font-size: 2rem; }
  .hero-chips   { display: none; }
  .form-section { padding: 40px 0 60px; }
  .quote-form   { padding: 24px 20px; }
  .form-header  { padding: 22px 20px; }
  .two-col      { grid-template-columns: 1fr; }
  .sov-grid     { grid-template-columns: 1fr; }
  .captcha-inner { flex-direction: column; align-items: flex-start; }
  .hdr-nav      { display: none; }
  .trust-row    { gap: 0; }
  .foot-inner   { flex-direction: column; text-align: center; }
  .foot-links   { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
