/* ==========================================================================
   Sauna Specialist — multi-step quote request
   ========================================================================== */

body.quote-page {
  background: var(--cream);
  color: var(--ink-quote);
}

body.quote-page input::placeholder,
body.quote-page textarea::placeholder { color: var(--grey-light); }

.q-wrap {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  min-height: 100dvh;
}

/* ---- Image side -------------------------------------------------------- */

.q-media {
  min-height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.q-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.q-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 20, 19, .5) 0%, rgba(20, 20, 19, .12) 42%, rgba(20, 20, 19, .85) 100%);
}
.q-media-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 3.2vw, 48px);
}

.q-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  font-size: 14.5px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 20px;
}
.q-back:hover { color: var(--tan); }

.q-stars { color: var(--tan); letter-spacing: 3px; font-size: 14px; margin-bottom: 16px; }
.q-quote {
  font-size: clamp(19px, 1.9vw, 26px);
  line-height: 1.35;
  color: var(--cream-soft);
  font-weight: 400;
  margin: 0 0 18px;
  max-width: 34ch;
  text-wrap: pretty;
}
.q-attrib { font-size: 14px; font-weight: 600; color: rgba(242, 236, 226, .7); }

/* ---- Form side --------------------------------------------------------- */

.q-form-side {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 56px) clamp(22px, 4vw, 64px);
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(28px, 3.4vw, 44px);
}
.q-header img { height: 30px; width: auto; }
.q-header span { font-size: 13px; font-weight: 600; color: var(--grey); }

/* Progress --------------------------------------------------------------- */

.q-progress { margin-bottom: clamp(28px, 3.4vw, 42px); }
.q-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.q-step-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brown);
}
.q-step-count { font-size: 13px; font-weight: 600; color: var(--grey-light); }

.q-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(25, 21, 18, .1);
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--olive);
  width: 20%;
  transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

/* Steps ------------------------------------------------------------------ */

.q-form { flex: 1; display: flex; flex-direction: column; }
.q-steps { flex: 1; }

.q-step { animation: stepIn .4s ease both; }
.q-step[hidden] { display: none; }

.q-step h1 {
  font-size: clamp(26px, 2.9vw, 38px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.q-step > p { color: var(--muted); margin: 0 0 32px; font-size: 16px; }

.q-fieldset { display: flex; flex-direction: column; gap: 32px; }
.q-fields { display: flex; flex-direction: column; gap: 20px; }

.q-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-quote);
  margin-bottom: 14px;
}

.q-chips { display: flex; flex-wrap: wrap; gap: 12px; }

.q-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(25, 21, 18, .16);
  background: #fff;
  color: var(--ink-quote);
  transition: border-color .18s, transform .18s, background .18s, color .18s;
}
.q-chip:hover { border-color: var(--olive); transform: translateY(-1px); }
.q-chip svg { flex: none; stroke: currentColor; }
.q-chip.is-selected {
  border-color: var(--olive);
  background: var(--olive);
  color: var(--cream);
}

/* Wood picker ------------------------------------------------------------ */

.q-woods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}

.q-wood {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1.5px solid rgba(25, 21, 18, .16);
  background: #fff;
  transition: border-color .18s, transform .18s, box-shadow .18s, background .18s;
}
.q-wood:hover {
  border-color: var(--olive);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(25, 21, 18, .1);
}
.q-wood.is-selected {
  border-color: var(--olive);
  background: rgba(69, 79, 55, .08);
}

.q-wood-photo { display: block; height: 90px; background-size: cover; background-position: center; }
.q-wood-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 90px;
  background: #eee6da;
  color: var(--grey-light);
  font-size: 22px;
  font-weight: 500;
}
.q-wood-name {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-quote);
  line-height: 1.25;
}
.q-wood-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-wood-check[hidden] { display: none; }

/* Inputs ----------------------------------------------------------------- */

.q-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.q-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
}

.q-field input,
.q-field textarea {
  border: 1.5px solid rgba(25, 21, 18, .16);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--ink-quote);
  font-size: 16px;
  outline: none;
  background: #fff;
  transition: border-color .18s;
}
.q-field textarea {
  border-radius: 14px;
  resize: vertical;
  min-height: 120px;
}
.q-field input:focus,
.q-field textarea:focus { border-color: var(--olive); }

/* Selects match the text inputs, with a custom chevron */
.q-field select {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid rgba(25, 21, 18, .16);
  border-radius: 12px;
  padding: 14px 40px 14px 16px;
  color: var(--ink-quote);
  font-size: 16px;
  outline: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238a8079' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: border-color .18s;
  cursor: pointer;
  width: 100%;
}
.q-field select:focus { border-color: var(--olive); }
.q-field select:invalid { color: var(--grey-light); }

/* Language radios */
.q-radio-set { border: none; margin: 0; padding: 0; min-width: 0; }
.q-radio-set .q-label { padding: 0; }

.q-radios { display: flex; flex-wrap: wrap; gap: 12px; }

.q-radio {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(25, 21, 18, .16);
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-quote);
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.q-radio:hover { border-color: var(--olive); }
.q-radio input { accent-color: var(--olive); margin: 0; cursor: pointer; }
.q-radio:has(input:checked) {
  border-color: var(--olive);
  background: rgba(69, 79, 55, .08);
}

.q-phone-wrap { position: relative; }
.q-phone-flag {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.q-phone-wrap input { width: 100%; padding-left: 42px; }

/* Honeypot: off-screen rather than display:none, which some bots skip */
.q-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Submission error ------------------------------------------------------- */

.q-error {
  margin: 24px 0 0;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(197, 74, 52, .08);
  border: 1.5px solid rgba(197, 74, 52, .3);
  color: #8f3b26;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}
.q-error[hidden] { display: none; }

/* Nav buttons ------------------------------------------------------------ */

.q-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(25, 21, 18, .1);
}
.q-nav-spacer { flex: 1; }

.q-btn-back {
  padding: 15px 26px;
  border-radius: 999px;
  border: 1.5px solid rgba(25, 21, 18, .2);
  background: transparent;
  color: var(--ink-quote);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .18s;
}
.q-btn-back:hover { border-color: var(--ink-quote); }
.q-btn-back[hidden] { display: none; }

.q-btn-next {
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--ink-quote);
  color: var(--cream);
  border: none;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, transform .18s, opacity .18s;
}
.q-btn-next:hover:not(:disabled) { transform: translateY(-1px); }
.q-btn-next:disabled { background: #a8a49c; opacity: .6; cursor: not-allowed; }
.q-btn-next[hidden] { display: none; }

.q-btn-submit {
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--olive);
  color: var(--cream);
  border: none;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(69, 79, 55, .28);
  transition: background .18s, transform .18s;
}
.q-btn-submit:hover:not(:disabled) { background: #38402c; transform: translateY(-1px); }
.q-btn-submit:disabled { opacity: .65; cursor: progress; transform: none; }
.q-btn-submit[hidden] { display: none; }

/* Success ---------------------------------------------------------------- */

.q-success {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  animation: stepIn .5s ease both;
}
.q-success[hidden] { display: none; }

.q-success-mark {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 26px;
}
.q-success h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  margin: 0 0 16px;
  letter-spacing: -.025em;
  line-height: 1.1;
}
.q-success p {
  color: var(--muted);
  font-size: 17px;
  max-width: 420px;
  margin: 0 auto 30px;
  text-wrap: pretty;
}
.q-success a {
  align-self: center;
  padding: 15px 30px;
  border-radius: 999px;
  background: var(--ink-quote);
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
}
.q-success a:hover { background: #38332c; color: var(--cream); }

.q-panel[hidden] { display: none; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 900px) {
  .q-wrap { grid-template-columns: 1fr; }
  .q-media { height: 46vh; min-height: 46vh; }
}

@media (max-width: 520px) {
  .q-two { grid-template-columns: 1fr; }
}
