/* ============================================
   THE DESIR AGENCY — Dynamic Quote Form
   ============================================ */

/* .btn sets an explicit display, which beats the [hidden] attribute in the
   cascade — without this the "Back" button shows on step 1. */
[hidden] { display: none !important; }

.quote-intro { max-width: 620px; }

/* ---- Product picker ---- */
.picker-label {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--yellow); font-weight: 700; margin-bottom: 18px;
}
.product-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 56px;
}
.product-card {
  display: flex; flex-direction: column; gap: 6px;
  text-align: left; cursor: pointer;
  padding: 22px 20px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  color: var(--white);
  font-family: var(--font);
  transition: border-color .2s, background .2s, transform .2s;
}
.product-card:hover { background: rgba(255,255,255,.06); border-color: rgba(246,193,28,.5); transform: translateY(-2px); }
.product-card:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.product-card.selected { border-color: var(--yellow); background: rgba(246,193,28,.10); }
.product-card-icon { font-size: 26px; line-height: 1; }
.product-card-label { font-size: 15px; font-weight: 700; }
.product-card-tagline { font-size: 12px; color: var(--gray); line-height: 1.5; }

/* ---- Form shell ---- */
.quote-shell {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 34px;
  scroll-margin-top: 110px;
}
@media (max-width: 600px) { .quote-shell { padding: 22px 18px; border-radius: 16px; } }

.quote-shell-head { margin-bottom: 26px; }
.quote-shell-head h2 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 700; line-height: 1.2; }
.quote-shell-head p { font-size: 14px; color: var(--gray); margin-top: 6px; }

.progress { margin-bottom: 30px; }
.progress-track { height: 4px; background: rgba(255,255,255,.10); border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; width: 0; background: var(--yellow); border-radius: 4px; transition: width .35s ease; }
.progress-count { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gray); margin-top: 10px; font-weight: 600; }

.step-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.step-intro { font-size: 14px; color: var(--gray); line-height: 1.7; margin-bottom: 24px; }

/* ---- Fields ---- */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field-full { grid-column: 1 / -1; }
.field[hidden] { display: none; }

.field label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 8px; line-height: 1.5;
}
.field .req { color: var(--yellow); }
.field .help { font-size: 12px; color: var(--gray); line-height: 1.6; margin: -4px 0 8px; }

.field input[type=text], .field input[type=tel], .field input[type=email],
.field input[type=date], .field input[type=number], .field select, .field textarea, .other-input {
  width: 100%;
  padding: 13px 15px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 10px;
  color: var(--white);
  font-family: var(--font);
  font-size: 15px; /* 15px+ stops iOS Safari zooming on focus */
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #6d6d6d; }
.field input:focus, .field select:focus, .field textarea:focus, .other-input:focus {
  outline: none; border-color: var(--yellow); background: rgba(255,255,255,.07);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23F6C11C' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; padding-right: 40px; }
.field select option { background: var(--bg-dark); color: var(--white); }
.field input[type=date] { color-scheme: dark; }
.field input[type=file] { font-size: 13px; color: var(--light-gray); }
.field input[type=file]::file-selector-button {
  margin-right: 12px; padding: 9px 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--yellow); background: transparent; color: var(--yellow);
  font-family: var(--font); font-weight: 600; font-size: 12px;
}
.file-name { font-size: 12px; color: var(--yellow); margin-top: 8px; }

/* ---- Radio options ---- */
.opts { display: flex; flex-wrap: wrap; gap: 10px; }
.opt {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; min-height: 44px; /* comfortable tap target */
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  margin-bottom: 0; transition: border-color .2s, background .2s;
}
.opt:hover { border-color: rgba(246,193,28,.5); }
.opt input { accent-color: var(--yellow); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--yellow); background: rgba(246,193,28,.10); }
.opt:has(input:focus-visible) { outline: 2px solid var(--yellow); outline-offset: 2px; }
.other-input { margin-top: 10px; }
.other-input[hidden] { display: none; }

/* ---- Notice + errors ---- */
.field-notice p {
  font-size: 13px; line-height: 1.7; color: var(--light-gray);
  padding: 16px 18px; border-radius: 12px;
  background: rgba(246,193,28,.07); border: 1px solid rgba(246,193,28,.22);
}
.field .err { font-size: 12px; color: #ff8b7d; margin-top: 7px; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #ff8b7d; }
.field.has-error .opts .opt { border-color: rgba(255,139,125,.45); }

.quote-error {
  margin-top: 20px; padding: 16px 18px; border-radius: 12px; font-size: 14px; line-height: 1.7;
  background: rgba(255,139,125,.09); border: 1px solid rgba(255,139,125,.35); color: #ffb5ab;
}
.quote-error a { color: var(--yellow); text-decoration: underline; }

/* ---- Nav ---- */
.quote-nav { display: flex; gap: 12px; margin-top: 32px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.08); }
.quote-nav .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; }
.quote-nav #btn-next { flex: 1; }
.quote-nav .btn[disabled] { opacity: .55; cursor: not-allowed; }
.quote-footnote { font-size: 12.5px; color: var(--gray); line-height: 1.7; margin-top: 22px; }

/* ---- Done ---- */
.quote-done { text-align: center; padding: 30px 10px; }
.quote-done .tick {
  width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  background: rgba(246,193,28,.14); border: 1px solid var(--yellow); color: var(--yellow);
}
.quote-done h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.quote-done h3:focus { outline: none; }
.quote-done p { font-size: 14.5px; color: var(--light-gray); line-height: 1.8; max-width: 420px; margin: 0 auto 10px; }
.quote-done .phone-btn { display: inline-flex; margin-top: 22px; }

/* ---- Sidebar ---- */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
@media (max-width: 980px) { .quote-layout { grid-template-columns: 1fr; gap: 44px; } }

/* The "Get a Quote" buttons deep-link to #product-picker; keep it clear of the header. */
#product-picker { scroll-margin-top: 120px; }
