/* ── Quote Request Intake — contractor's carbon-copy estimate pad ───
   White top sheet over an offset goldenrod carbon copy, navy slab
   workwear headline with EST. NO. stamp, dotted estimate-form rules,
   ballpoint-blue focus, steel toolbox band, perforated bottom edge. */

:root {
  --concrete: #d9d7d2;
  --concrete-deep: #c7c4be;
  --steel: #8b929a;
  --steel-deep: #6c737b;
  --sheet: #fefefc;
  --carbon: #e8b53a;
  --navy: #1d3a5f;
  --navy-deep: #142b48;
  --ballpoint: #2456c4;
  --ink: #2c2e31;
  --ink-soft: #7c8087;
  --dotted: #c9c5bc;
  --err: #c2392a;
  --slab: 'Zilla Slab', serif;
  --sans: 'Barlow', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.hidden { display: none !important; }

body {
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background:
    repeating-linear-gradient(90deg, transparent 0 90px, rgba(44, 46, 49, 0.03) 90px 92px),
    linear-gradient(180deg, var(--concrete), var(--concrete-deep));
  background-attachment: fixed;
  min-height: 100vh;
}

.shop { min-height: 100vh; display: flex; flex-direction: column; }

/* ── Toolbox band ─────────────────────────────────────────────────── */
.toolbox {
  position: relative;
  height: 54px;
  background: linear-gradient(180deg, var(--steel), var(--steel-deep));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 2px 0 rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.rivet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c8cdd3, #5d646c);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.handle {
  width: 120px;
  height: 16px;
  border: 4px solid #4e555d;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  margin-top: 16px;
}

/* ── Pad ──────────────────────────────────────────────────────────── */
.pad-wrap {
  position: relative;
  max-width: 640px;
  width: calc(100% - 32px);
  margin: 38px auto 0;
  flex: 1 0 auto;
}

.carbon {
  position: absolute;
  inset: 14px -10px -12px 10px;
  background: var(--carbon);
  border-radius: 4px;
  transform: rotate(0.8deg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.sheet {
  position: relative;
  background: var(--sheet);
  border-radius: 4px;
  padding: 34px 34px 0;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

/* ── Header ───────────────────────────────────────────────────────── */
.head { border-bottom: 3px solid var(--navy); padding-bottom: 18px; margin-bottom: 24px; }

.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.head h1 {
  font-family: var(--slab);
  font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.tagline { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; }

.est-stamp {
  flex: 0 0 auto;
  text-align: center;
  border: 2px solid var(--err);
  border-radius: 4px;
  padding: 6px 12px;
  transform: rotate(3deg);
  color: var(--err);
  opacity: 0.85;
}

.est-label { display: block; font-weight: 700; font-size: 0.58rem; letter-spacing: 0.2em; }

.est-no { font-family: var(--slab); font-weight: 700; font-size: 1.2rem; }

.form-title {
  font-family: var(--slab);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 18px;
}

.turnaround { color: var(--ink-soft); font-size: 0.9rem; margin-top: 4px; }

/* ── Fields ───────────────────────────────────────────────────────── */
.field { margin-bottom: 18px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }

.field-grid .field { margin-bottom: 0; }

label {
  display: block;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--navy);
}

.opt { font-weight: 500; font-size: 0.64rem; text-transform: none; letter-spacing: 0.02em; color: var(--ink-soft); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 2px dotted var(--dotted);
  border-radius: 0;
  transition: border-color 0.15s ease;
}

textarea {
  border: 2px dotted var(--dotted);
  border-radius: 4px;
  resize: vertical;
  min-height: 100px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231d3a5f' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ballpoint);
  border-style: solid;
}

input.error, textarea.error { border-color: var(--err); }
input::placeholder, textarea::placeholder { color: #b6b3ac; }

.field .field { margin-bottom: 18px; }

.field:not(.field-grid .field) { margin-bottom: 18px; }

/* photo slot */
.photo-slot {
  position: relative;
  border: 2px dotted var(--dotted);
  border-radius: 4px;
  padding: 11px 13px;
  transition: border-color 0.15s ease;
}

.photo-slot:hover { border-color: var(--ballpoint); }

.photo-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-label { font-weight: 600; font-size: 0.92rem; color: var(--ink-soft); }

.photo-label.has-file { color: var(--ballpoint); }

/* ── Button ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(180deg, var(--navy), var(--navy-deep));
  border: none;
  border-radius: 4px;
  padding: 16px 30px;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.12s ease;
  box-shadow: 0 4px 0 rgba(14, 30, 51, 0.6);
}

.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn:focus-visible { outline: 3px solid var(--carbon); outline-offset: 2px; }

.btn-block { width: 100%; }

.form-error { color: var(--err); font-weight: 700; text-align: center; margin-top: 14px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── Confirmation ─────────────────────────────────────────────────── */
.confirmed { text-align: center; padding: 34px 0 14px; }

.stamp-ok {
  display: inline-block;
  font-family: var(--slab);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.26em;
  color: var(--ballpoint);
  border: 3px double var(--ballpoint);
  border-radius: 4px;
  padding: 6px 16px 6px 20px;
  transform: rotate(-4deg);
  margin-bottom: 16px;
  opacity: 0.85;
}

.confirmed h2 { font-family: var(--slab); font-weight: 700; font-size: 1.7rem; color: var(--navy); }

.confirmed p { color: var(--ink-soft); margin-top: 10px; max-width: 430px; margin-left: auto; margin-right: auto; }

/* ── Perforation ──────────────────────────────────────────────────── */
.perforation {
  height: 26px;
  margin: 26px -34px 0;
  background-image: radial-gradient(circle at 10px 0, transparent 7px, var(--sheet) 7.5px);
  background-size: 24px 26px;
  background-position: 0 14px;
  background-repeat: repeat-x;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.foot {
  text-align: center;
  padding: 30px 20px;
  color: rgba(44, 46, 49, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
}

#wbx-powered-by-slot { margin-top: 12px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .sheet { padding: 26px 22px 0; }
  .perforation { margin: 22px -22px 0; }
  .head-row { flex-direction: column; }
}
