/* form.css — shared across page1–3/consent/thankyou. Builds on intro.css's
   .hero/.wrap/.lang-switch/.cta (both files are loaded together on every
   form page) rather than duplicating them. Mobile-first, same palette. */

.hero { align-items: flex-start; padding-top: 32px; }
.wrap { max-width: 480px; }

.progress {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}
.progress .step {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: #e6dde8;
}
.progress .step.done,
.progress .step.current {
    background-color: #6C3D77;
}

.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-family: inherit;
}
.field input:focus,
.field select:focus {
    outline: none;
    border-color: #6C3D77;
}
.field .hint {
    font-size: 0.8rem;
    color: #777;
    margin-top: 4px;
}
.field .error {
    font-size: 0.85rem;
    color: #b3261e;
    margin-top: 6px;
    display: none;
}
.field.has-error input,
.field.has-error select {
    border-color: #b3261e;
}
.field.has-error .error {
    display: block;
}

.form-errors {
    background-color: #fdecea;
    border: 1px solid #f3c2bd;
    color: #7a1f18;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.9rem;
}

.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
}
.checkbox-field input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.checkbox-field label {
    font-size: 0.95rem;
    color: #333;
}

.consent-text p {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #333;
}
.consent-text h2 {
    font-size: 1.1rem;
    color: #6C3D77;
    margin: 0 0 14px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}
.btn-row .cta {
    margin-top: 0;
}
.btn-secondary {
    display: block;
    width: 100%;
    text-align: center;
    background-color: transparent;
    color: #6C3D77;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 14px 20px;
    border-radius: 8px;
    border: 1px solid #6C3D77;
    box-sizing: border-box;
}

/* Honeypot — off-canvas, not display:none (some bots skip hidden fields
   specifically to look convincing; this is at least as reliable and still
   invisible/unreachable to real users and screen readers). */
.hp-wrap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Cascading select loading state */
.field select[disabled] {
    opacity: 0.6;
}

altcha-widget {
    margin-bottom: 18px;
    --altcha-max-width: 100%;
}

@media (min-width: 600px) {
    .btn-row .cta,
    .btn-row .btn-secondary { width: auto; flex: 1; display: block; }
}
