/* ==========================================================================
   Requirement form.
   ========================================================================== */

.requirement { padding-block: clamp(80px, 10vw, 150px); }
.requirement__lead { margin: 0 0 20px; font-size: 18px; line-height: 1.5; }
.requirement__layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.requirement__aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 8px; justify-items: start; }
.requirement__avatar { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--black); color: var(--white); }
.requirement__avatar svg { width: 24px; height: 24px; }
.requirement__aside-title { margin: 0; font-weight: 700; }
.requirement__aside-text { margin: 0; color: var(--muted); font-size: 14px; }
.requirement__contact { display: grid; gap: 4px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; font-weight: 700; }
.requirement__contact a { border-bottom: 1px solid var(--line); }
.requirement__contact a:hover { border-color: currentColor; }
.requirement__card { padding: clamp(24px, 3.4vw, 48px); border-radius: var(--radius); background: var(--gray); }

.rq-form { display: grid; gap: 34px; }
.rq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.rq-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.rq-form legend { display: block; margin-bottom: 14px; padding: 0; font-weight: 700; font-size: 16px; line-height: 1.45; }
.rq-form legend b { margin-right: 8px; font-weight: 400; color: var(--muted); }
.rq-form legend b::before { content: "["; }
.rq-form legend b::after { content: "]"; }
.rq-form legend span { font-weight: 400; color: var(--muted); }

/* Floating-label fields */
.field { position: relative; }
.field input, .field textarea { width: 100%; padding: 26px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; color: var(--black); font: 400 17px/1.5 var(--font); outline: none; transition: border-color .3s; }
.field textarea { resize: vertical; min-height: 96px; }
.field label { position: absolute; left: 0; right: 0; top: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-weight: 700; pointer-events: none; transform-origin: 0 0; transition: transform .45s var(--ease), color .3s; }
.field label span { font-weight: 400; }
.field input:focus, .field textarea:focus { border-color: var(--black); }
.field input:focus + label, .field input:not(:placeholder-shown) + label, .field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-22px) scale(.8); color: var(--black); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input, .option input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); font-size: 14px; font-weight: 700; line-height: 1.3; transition: background .3s, color .3s, border-color .3s; }
.chip:hover span { border-color: var(--black); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: var(--white); }
.chip input:focus-visible + span, .option input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 3px; }
.chips--sm .chip span { padding: 8px 13px; font-size: 13px; }

/* Objective options */
.options { display: grid; gap: 8px; }
.option { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--white); font-size: 15px; cursor: pointer; transition: border-color .3s; }
.option:hover { border-color: var(--black); }
.option span { flex: none; width: 18px; height: 18px; border: 1px solid var(--muted); border-radius: 50%; transition: border .3s; }
.option:has(input:checked) { border-color: var(--blue); }
.option input:checked + span { border: 6px solid var(--blue); }

.rq-submit { justify-self: start; }
.form-notice { margin-bottom: 28px; padding: 14px 18px; font-weight: 700; }
.form-notice--success { background: #e3f6ec; color: #13603f; }
.form-notice--error { background: #fff0f3; color: #b0223f; }

@media (max-width: 960px) {
	.requirement { padding-block: clamp(80px, 10vw, 150px); }
.requirement__lead { margin: 0 0 20px; font-size: 18px; line-height: 1.5; }
.requirement__layout { grid-template-columns: minmax(0, 1fr); }
	.requirement__aside { position: static; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
	.requirement__avatar { grid-row: span 2; margin: 0; }
	.requirement__contact { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	.rq-split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
