/* Website request forms (request-form.js): short steps with a progress bar, one-tap choices,
   big boxes for phones, and the optional questions tucked away. Uses the site's colors. */
.rf { --rf-ink: var(--tl-ink, #142326); --rf-soft: var(--tl-ink-2, #4b595b); --rf-line: var(--line, #e2dacb); --rf-accent: var(--tl-bg, #1f4448); --rf-gold: var(--tl-gold, #d6ad6f); }
.rf .rf-hint { color: var(--rf-soft); margin-bottom: 14px; }
.rf .form-label { font-weight: 600; font-size: 0.92rem; color: var(--rf-ink); margin-bottom: 6px; }
.rf .rf-req { color: #b3412f; }
.rf fieldset legend.form-label { font-size: 0.92rem; float: none; margin-bottom: 8px; }
.rf .form-control, .rf .form-select { min-height: 50px; font-size: 16px; border-radius: 12px; border: 1px solid var(--rf-line); }
.rf textarea.form-control { min-height: 96px; }
.rf .rf-sub { font-family: var(--font-display); font-size: 1.02rem; font-weight: 650; margin: 22px 0 10px; color: var(--rf-ink); }

/* where they are: step 2 of 3 */
.rf-progress { margin: 2px 0 18px; }
.rf-progress-bar { height: 6px; border-radius: 6px; background: rgba(20, 35, 38, 0.1); overflow: hidden; }
.rf-progress-bar span { display: block; height: 100%; width: 33%; background: var(--rf-gold); border-radius: 6px; transition: width 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.rf-progress-text { margin-top: 8px; font-size: 0.85rem; color: var(--rf-soft); }
.rf-progress-text b { color: var(--rf-ink); }
.rf-pane { animation: rf-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes rf-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* one tap choices */
.rf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-chip { position: relative; cursor: pointer; margin: 0; }
.rf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rf-chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--rf-line); border-radius: 999px; background: #fff; font-size: 0.92rem; line-height: 1.2; transition: background 0.15s, border-color 0.15s, color 0.15s; }
.rf-chip:hover span { border-color: var(--rf-accent); }
.rf-chip input:checked + span { background: var(--rf-accent); border-color: var(--rf-accent); color: #fff; }
.rf-chip input:checked + span::before { content: "\2713"; font-weight: 800; }
.rf-chip input:focus-visible + span { outline: 3px solid var(--rf-gold); outline-offset: 2px; }
.rf-services { margin-bottom: 16px; }

/* the questions most people can skip */
.rf-more { margin-top: 16px; border: 1px dashed var(--rf-line); border-radius: 14px; padding: 0 14px; background: rgba(255, 255, 255, 0.6); }
.rf-more > summary { cursor: pointer; padding: 13px 0; font-weight: 600; color: var(--rf-accent); list-style: none; }
.rf-more > summary::-webkit-details-marker { display: none; }
.rf-more > summary::before { content: "+"; display: inline-block; width: 1.2em; font-weight: 800; }
.rf-more[open] > summary::before { content: "\2013"; }
.rf-more > summary small { color: var(--rf-soft); font-weight: 400; }
.rf-more[open] { padding-bottom: 14px; }

/* what's missing, right where it is */
.rf-invalid .form-control, .rf-invalid .form-select { border-color: #b3412f; box-shadow: 0 0 0 3px rgba(179, 65, 47, 0.12); }
.rf-invalid .rf-chip span { border-color: #d49a8f; }
.rf-msg { margin-top: 6px; font-size: 0.84rem; font-weight: 600; color: #b3412f; }

/* photos */
.rf .rf-tip { font-size: 0.9rem; color: var(--rf-soft); margin-bottom: 10px; }
.rf .rf-tip i { color: var(--rf-gold); margin-right: 4px; }
.rf-drop { display: flex; align-items: center; gap: 14px; border: 2px dashed var(--rf-line); border-radius: 16px; background: #fff; padding: 18px; cursor: pointer; margin: 0; transition: border-color 0.2s, background 0.2s; }
.rf-drop:hover { border-color: var(--rf-accent); background: #fbfaf7; }
.rf-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rf-drop i { font-size: 1.7rem; color: var(--rf-accent); }
.rf-drop span { display: flex; flex-direction: column; gap: 2px; }
.rf-drop small { color: var(--rf-soft); font-size: 0.84rem; }
.rf-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.rf-thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #f3f3f3; }
.rf-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rf-thumb button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(8, 26, 36, 0.8); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer; }

/* Back / Next — they stay in reach at the bottom of the pop-up */
.rf-nav { display: flex; flex-wrap: nowrap; gap: 10px; margin-top: 22px; }
.rf-nav .btn { flex: 1 1 auto; width: auto !important; margin: 0 !important; min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: normal; line-height: 1.2; text-align: center; }
.rf-nav .btn[hidden] { display: none !important; }
.rf-nav .rf-back { flex: 0 0 auto; padding-left: 18px !important; padding-right: 18px !important; }
.modal .rf-nav { position: sticky; bottom: -1px; z-index: 2; padding: 14px 0 6px; margin-bottom: -6px; background: linear-gradient(to top, #fff 72%, rgba(255, 255, 255, 0)); }

.rf .rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rf .rf-error { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #f6dfda; color: #a33a2c; font-weight: 600; }
.rf .rf-fine { font-size: 0.8rem; color: var(--rf-soft); text-align: center; margin: 12px 0 0; }
.rf-done { text-align: center; padding: 20px 10px; }
.rf-done i { font-size: 2.6rem; color: #2f6b3a; margin-bottom: 10px; }
.rf-done h4 { margin-bottom: 8px; }

/* the project picker folds down to the chosen type */
.rf-types.rf-picked { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.rf-types.rf-picked > legend { width: 100%; }
.rf-types.rf-picked .type-grid { display: block; }
.rf-types .type-chip[hidden] { display: none !important; }
.rf-change { border: 0; background: none; color: var(--rf-accent); font-weight: 600; text-decoration: underline; padding: 8px 4px; cursor: pointer; }

@media (max-width: 575px) {
    .rf-chip span { padding: 10px 14px; font-size: 0.9rem; }
}
@media (max-width: 420px) {
    .rf-nav .rf-back { min-width: 52px; padding-left: 14px !important; padding-right: 14px !important; }
    .rf-nav .rf-back span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .rf-pane { animation: none; } .rf-progress-bar span { transition: none; } }
