/*
 * Online Facilities request forms — /facilities-services/{form}.
 *
 * Loaded only on those pages. Matches the Request Forms list (.facility-forms
 * in FSRE.css): Jost via var(--jost), hairline rules, black buttons.
 * Spacing uses logical properties (inline-start/end), so the Arabic page
 * mirrors from dir="rtl" alone; the few physical overrides are at the end.
 */

.request-form { background: #fff; padding: 4.5rem 0 6rem; font-family: var(--jost), 'Jost', sans-serif; }
.request-form .rf-inner { max-width: 960px; }

.rf-back { display: inline-block; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: #6e6e6e; text-decoration: none; margin-bottom: 2.25rem; }
.rf-back:hover { color: #101010; }

.rf-head { margin-bottom: 2.5rem; }
.rf-eyebrow { display: block; font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase; color: #9a9a9a; margin-bottom: 0.9rem; }
.rf-lede { font-size: 1.05rem; line-height: 1.7; color: #4a4a4a; margin: 0 0 0.75rem; max-width: 680px; }
.rf-required-note { font-size: 0.85rem; color: #6e6e6e; margin: 0; }
.rf-star { color: #b3261e; }

.rf-alert { border-radius: 0; margin-bottom: 2.5rem; }

/* Sections */
.rf-section { border: 0; border-top: 1px solid rgba(16, 16, 16, 0.14); padding: 2rem 0 0.5rem; margin: 0 0 1.5rem; min-width: 0; }
.rf-section-title { float: none; width: auto; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: #101010; margin: 0 0 1.5rem; padding: 0; }

.rf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.75rem; }
.rf-field { min-width: 0; margin-bottom: 1.35rem; }
.rf-field--wide { grid-column: 1 / -1; }

.rf-label { display: block; font-size: 0.9rem; font-weight: 500; color: #101010; margin-bottom: 0.45rem; line-height: 1.4; }
.request-form .form-control { margin-bottom: 0; padding: 12px 14px; font-size: 0.98rem; }
.request-form textarea.form-control { min-height: 96px; }
.rf-field--invalid .form-control { border-color: #b3261e; }
.rf-hint { display: block; font-size: 0.82rem; line-height: 1.55; color: #6e6e6e; margin-top: 0.45rem; }
.rf-error { display: block; font-size: 0.82rem; color: #b3261e; margin-top: 0.4rem; }

/* Radios, as the paper form's tick-boxes */
.rf-choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.rf-choice { display: inline-flex; align-items: center; gap: 0.55rem; border: 1px solid #ddd; padding: 0.65rem 1.1rem; cursor: pointer; font-size: 0.95rem; transition: border-color 0.2s ease, background 0.2s ease; }
.rf-choice:hover { border-color: #101010; }
.rf-choice input { accent-color: #101010; margin: 0; }
.rf-choice:has(input:checked) { border-color: #101010; background: #f6f6f6; }

/* Declarations */
.rf-declaration { background: #f9f9f9; padding: 1.5rem 1.6rem; margin-bottom: 1.25rem; }
.rf-declaration h3 { font-size: 0.95rem; font-weight: 600; color: #101010; margin: 0 0 0.6rem; }
.rf-declaration p { font-size: 0.93rem; line-height: 1.7; color: #4a4a4a; margin: 0 0 1rem; }
.rf-check { display: flex; align-items: flex-start; gap: 0.7rem; cursor: pointer; font-size: 0.95rem; font-weight: 500; color: #101010; }
.rf-check input { width: 18px; height: 18px; margin-top: 0.15rem; flex-shrink: 0; accent-color: #101010; }

.rf-rules { margin: 0; padding-inline-start: 1.25rem; }
.rf-rules li { font-size: 0.93rem; line-height: 1.65; color: #4a4a4a; margin-bottom: 0.6rem; padding-inline-start: 0.35rem; }

/* Captcha + submit */
.rf-captcha { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 15px; border-top: 1px solid rgba(16, 16, 16, 0.14); padding-top: 2rem; }
.rf-captcha-input { flex: 1; min-width: 200px; }
/* The captcha image is 345px wide; with its reload button beside it the
   box overflowed a phone and scrolled the whole page sideways. */
.rf-captcha .captcha-box { max-width: 100%; flex-wrap: wrap; }
.rf-captcha .captcha-box img { max-width: 100%; height: auto; }
.rf-captcha .cf-turnstile { width: 100%; max-width: 400px; }
.rf-submit .rf-total-error { margin-bottom: 0.75rem; text-align: start; }
.rf-submit .submit-btn:disabled { opacity: 0.6; cursor: progress; }
.rf-submit { margin-top: 2rem; text-align: end; }
.rf-submit .submit-btn { font-family: inherit; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; font-weight: 500; }

/* Pet Care: weekly feeding schedule */
.rf-feeding-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.rf-feeding-head .rf-label { margin: 0; }
.rf-copy { background: #fff; border: 1px solid #101010; color: #101010; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.55rem 1rem; transition: background 0.2s ease, color 0.2s ease; }
.rf-copy:hover { background: #101010; color: #fff; }
.rf-feeding > .rf-hint { margin-bottom: 1rem; }
.rf-day { border: 1px solid #e5e5e5; padding: 1rem 1.1rem; margin-bottom: 0.75rem; }
.rf-day-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rf-day-head h3 { font-size: 1rem; font-weight: 600; margin: 0; color: #101010; }
.rf-day-head label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: #6e6e6e; margin: 0; }
.rf-day-head .form-control { width: auto; min-width: 72px; padding: 6px 10px; }
.rf-meals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.rf-meal { margin-top: 0.9rem; }
.rf-meal[hidden] { display: none; }
.rf-meal h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #9a9a9a; margin: 0 0 0.5rem; }
.rf-meal label { display: block; margin-bottom: 0.45rem; }
.rf-meal label > span { display: block; font-size: 0.78rem; color: #6e6e6e; margin-bottom: 0.2rem; }
.rf-meal .form-control { padding: 7px 10px; font-size: 0.9rem; }

@media (max-width: 767px) {
    .request-form { padding: 3rem 0 4rem; }
    .rf-grid { grid-template-columns: 1fr; }
    .rf-meals { grid-template-columns: 1fr; }
    .rf-submit { text-align: center; }
    .rf-submit .submit-btn { width: 100%; }
    .rf-declaration { padding: 1.25rem; }
}

/* Arabic: a joined script, so no tracking (see FSRE-ar.css for why). */
body.lang-ar .rf-back,
body.lang-ar .rf-eyebrow,
body.lang-ar .rf-section-title,
body.lang-ar .rf-copy,
body.lang-ar .rf-meal h4,
body.lang-ar .rf-submit .submit-btn { letter-spacing: 0; text-transform: none; }
body.lang-ar .rf-section-title { font-size: 1rem; }
