/* Three-step contact form (layouts/contact/list.html). Same purple and option style as the quiz. */
.cf { --cf-purple: var(--purple, #7a15c7); --cf-muted: var(--muted, #7e7e8a); --cf-line: var(--field-line, #dcd7e6); --cf-bad: var(--danger, #b42318);
  max-width: 560px; margin: .5rem; scroll-margin-top: 90px; }
.cf [hidden] { display: none !important; }

/* progress bar + steps-left counter */
.cf-progress { margin: 0 0 1.4rem; }
.cf-progress-text { display: flex; justify-content: space-between; font-size: .95rem; color: var(--cf-muted); margin-bottom: .4rem; }
.cf-progress-text [data-out="left"] { color: var(--cf-purple); font-weight: 600; }
.cf-track { height: 8px; border-radius: 99px; background: var(--cf-line); overflow: hidden; }
.cf-fill { display: block; height: 100%; width: 33.333%; background: var(--cf-purple); border-radius: 99px; transition: width .35s ease; }

/* one question per step */
.cf-step { border: 0; padding: 0; margin: 0; min-width: 0; animation: cf-in .25s ease; }
.cf-title { float: none; width: 100%; font-family: "IBM Plex Serif", serif; font-weight: 700; font-size: clamp(1.4rem, 4vw, 1.8rem); color: var(--text, #282f49); margin: 0 0 1rem; outline: none; }
.cf-options { display: grid; gap: .6rem; }
.cf-option { display: block; width: 100%; text-align: left; padding: .85rem 1.1rem; border: 1px solid var(--cf-line); border-radius: 10px; background: var(--field, #fff); font-size: 1.1rem; color: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.cf-option:hover { border-color: var(--cf-purple); }
.cf-option:active { transform: scale(.99); }
.cf-option:focus-visible { outline: 2px solid #b893dc; outline-offset: 2px; }
.cf-option[aria-pressed="true"] { border-color: var(--cf-purple); background: var(--tint, #f4ecfb); box-shadow: 0 0 0 1px var(--cf-purple); }

.cf-field { display: block; font-weight: 600; font-size: 1.05rem; margin: 0 0 1rem; }
.cf-field .form-control { margin-top: .35rem; font-size: 1.05rem; }
.cf-step textarea.form-control { font-size: 1.05rem; }
.cf-check { margin: 0 0 1rem; }
.cf-check .form-check-input:checked { background-color: var(--cf-purple); border-color: var(--cf-purple); }
.cf-turnstile { margin-bottom: 1rem; }
.cf-nav { display: flex; gap: .8rem; margin-top: 1.2rem; flex-wrap: wrap; }
.cf-error { color: var(--cf-bad); font-weight: 500; margin: .8rem 0 0; }
.cf-error:empty { display: none; }

@keyframes cf-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cf-step { animation: none; } .cf-fill { transition: none; } }
