/* quote.css — styles used only on the Contact / Quote page */

:root {
  --orange-soft: #ff8a38;
  --input: #0d0d0d;
  --border: #2a2a2a;
  --error: #ff7b72;
  --ok: #54d18b;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(110px + var(--nav-h)) 0 170px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 78% 0, rgba(255, 106, 0, .30), transparent 70%), radial-gradient(45% 55% at 5% 85%, rgba(255, 106, 0, .14), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(#000 20%, transparent);
  mask-image: linear-gradient(#000 20%, transparent);
}
.hero .eyebrow, .done .eyebrow { justify-content: center; color: var(--orange-soft); font-size: .74rem; letter-spacing: .08em; margin-bottom: 22px; }
.hero h1 { max-width: 900px; margin: 0 auto 24px; font-size: clamp(2.8rem, 6vw, 5rem); }
.hero h1 span { background: linear-gradient(90deg, var(--orange), #ffb27a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 680px; margin: 0 auto; color: #bdbdbd; font-size: 1.08rem; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 26px 0 0; padding: 0; list-style: none; color: #8d8d8d; font-size: .9rem; }
.trust li::before { content: "✓"; margin-right: 8px; color: var(--orange); }

/* ---------- Form container ---------- */
.formbox { position: relative; z-index: 2; margin: -90px auto 110px; }

.head {
  position: relative; overflow: hidden;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  padding: 30px 38px;
  background: #0b0b0b; border: 1px solid var(--line-soft); border-bottom: 0; border-radius: 20px 20px 0 0;
}
.head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--orange), transparent 70%); }
.head .eyebrow { margin-bottom: 10px; color: var(--orange-soft); font-size: .74rem; letter-spacing: .08em; }
.head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.prog { width: min(260px, 100%); color: var(--muted); font-size: .82rem; }
.bar { height: 5px; margin-top: 8px; overflow: hidden; background: #262626; border-radius: 9px; }
.bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-soft)); transition: .3s; }

form { overflow: hidden; background: var(--card); border: 1px solid var(--line-soft); border-radius: 0 0 20px 20px; }
.sec { padding: 46px 38px; border-bottom: 1px solid var(--line-soft); }
.st { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font: 600 1.3rem var(--font-head); }
.num { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid rgba(255, 106, 0, .45); border-radius: 50%; color: var(--orange); font-size: .74rem; }

/* ---------- Choice chips (services, budget, timeline) ---------- */
.grp { margin: 26px 0 12px; color: #777; font: 600 .78rem var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.grp:first-of-type { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.cc {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 62px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px; background: #1a1a1a;
  color: #d8d8d8; font-size: .94rem; font-weight: 500; cursor: pointer; transition: .2s;
}
.cc:hover { border-color: #555; }
.cc input { position: absolute; opacity: 0; pointer-events: none; }
.cc:has(input:checked) { border-color: var(--orange); background: linear-gradient(135deg, rgba(255, 106, 0, .16), rgba(255, 106, 0, .03)); color: #fff; }
.cc:has(input:focus-visible) { outline: 3px solid rgba(255, 106, 0, .45); outline-offset: 2px; }
.ck { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid #555; border-radius: 6px; color: transparent; font-size: .75rem; }
.cc:has(input:checked) .ck { background: var(--orange); border-color: var(--orange); color: #fff; }
.rd .ck { border-radius: 50%; }
.cnt { margin: -14px 0 18px; text-align: right; color: var(--orange-soft); font-size: .88rem; }

/* ---------- Service detail panels ---------- */
.panel { display: none; margin-top: 22px; padding: 24px; border: 1px solid var(--border); border-left: 3px solid var(--orange); border-radius: 12px; background: linear-gradient(90deg, rgba(255, 106, 0, .07), transparent 60%); }
.panel.on { display: block; animation: reveal .25s; }
.panel h4 { margin-bottom: 16px; font-size: 1.05rem; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Fields ---------- */
.fg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fld { min-width: 0; }
.fld.w { grid-column: 1 / -1; }
label.l, legend { display: block; margin-bottom: 8px; color: #e7e7e7; font-size: .9rem; font-weight: 600; }
fieldset { margin: 30px 0 0; padding: 0; border: 0; }

input[type=text], input[type=email], input[type=tel], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: 13px 14px;
  border: 1px solid #333; border-radius: 10px; background: var(--input);
  color: #fff; font: inherit; outline: none; transition: .2s;
}
select { color-scheme: dark; }
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 106, 0, .13); }
.ph { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }

.err { min-height: 1.2em; margin-top: 6px; color: var(--error); font-size: .82rem; }
.note { margin-top: 6px; color: #777; font-size: .82rem; }
.opt { color: #777; font-size: .78rem; font-weight: 400; }

/* ---------- Consent + submit ---------- */
.sub { padding: 40px 38px; background: #0b0b0b; }
.con { display: flex; align-items: flex-start; gap: 12px; max-width: 760px; cursor: pointer; }
.con input { position: absolute; opacity: 0; }
.cb { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid #555; border-radius: 6px; color: transparent; }
.con:has(input:checked) .cb { background: var(--orange); border-color: var(--orange); color: #fff; }
.con small { display: block; color: #888; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 26px; }
.sub .btn, .done .btn { min-height: 54px; padding: 0 30px; font-size: .95rem; }
#go { min-width: 250px; }
#go:disabled { opacity: .55; transform: none; cursor: not-allowed; }
.lnk { border: 0; background: none; color: #888; font: inherit; cursor: pointer; }
.lnk:hover { color: #fff; }
.stat { min-height: 24px; margin-top: 14px; color: var(--error); }

/* ---------- Thank-you state ---------- */
.done { display: none; padding: 76px 28px; text-align: center; background: var(--card); border: 1px solid var(--line-soft); border-radius: 20px; }
.done.on { display: block; }
.done h2 { margin: 6px 0 16px; font-size: clamp(2rem, 4vw, 3rem); }
.done p { margin-top: 8px; color: #aaa; }
.done strong { color: #fff; }
.tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 20px; border: 1px solid var(--ok); border-radius: 50%; background: rgba(84, 209, 139, .1); color: var(--ok); font-size: 1.5rem; }
.acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Anti-spam field, hidden off-screen */
.hp { position: absolute !important; left: -9999px !important; }
.bad { outline: 1px solid var(--error); border-radius: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .hero { padding: calc(80px + var(--nav-h)) 0 150px; }
  .grid, .fg { grid-template-columns: 1fr; }
  .sec, .head, .sub { padding: 32px 20px; }
  .ph { grid-template-columns: 100px 1fr; }
  .row { flex-direction: column-reverse; align-items: stretch; }
  #go { width: 100%; }
}
