.franz-appointment-request {
    scroll-margin-top: 96px;
}

.franz-conversion-minimal-header {
    align-items: center;
    background: #f7f2ea;
    border-bottom: 1px solid rgba(31, 27, 22, .12);
    display: flex;
    justify-content: space-between;
    padding: 18px max(20px, calc((100vw - 1180px) / 2));
}

.franz-conversion-minimal-header a {
    color: #1f1b16;
    font-weight: 800;
    letter-spacing: .08em;
    text-decoration: none;
}

.franz-language-switch {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.franz-language-switch a[aria-current="page"] {
    color: currentColor;
    font-weight: 700;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.franz-appointment-form {
    display: grid;
    gap: 24px;
    margin-top: 40px;
    max-width: 760px;
}

.franz-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.franz-form-field {
    display: grid;
    gap: 8px;
}

/*
 * The conditional repair/help field is toggled with the native `hidden`
 * attribute, server-side on first render and by conversion-events.js on
 * topic change. `display: grid` above is an author rule and therefore wins
 * over the user-agent `[hidden] { display: none }`, so without this the
 * field stays visible in every state. Restoring the native semantics here
 * keeps the toggle a plain attribute change - no class, no state in JS.
 */
.franz-form-field[hidden] {
    display: none;
}

.franz-form-field label,
.franz-form-field legend {
    font-weight: 700;
}

.franz-form-field input[type="text"],
.franz-form-field input[type="email"],
.franz-form-field input[type="tel"],
.franz-form-field select,
.franz-form-field textarea {
    width: 100%;
    border: 1px solid rgba(31, 27, 22, .35);
    border-radius: 10px;
    background: #fff;
    color: #1f1b16;
    font: inherit;
    padding: 12px 14px;
}

.franz-form-field input:focus-visible,
.franz-form-field select:focus-visible,
.franz-form-field textarea:focus-visible,
.franz-language-switch a:focus-visible,
.franz-conversion-actions a:focus-visible {
    outline: 3px solid #1f1b16;
    outline-offset: 3px;
}

.franz-form-fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

.franz-form-fieldset label {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    margin-right: 24px;
}

.franz-form-help {
    font-size: 15px;
    margin: 0;
    max-width: 68ch;
}

.franz-form-consent label {
    align-items: flex-start;
    display: flex;
    gap: 10px;
}

.franz-form-consent input {
    margin-top: 5px;
}

.franz-form-status {
    border-left: 4px solid currentColor;
    margin-block: 28px;
    padding: 16px 20px;
}

.franz-form-status--success {
    background: #e7f4e9;
    color: #174c25;
}

.franz-form-status--error {
    background: #fae8e5;
    color: #7c2319;
}

.franz-form-honeypot {
    left: -10000px;
    position: absolute;
    top: auto;
}

.franz-conversion-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

@media (max-width: 700px) {
    .franz-form-grid {
        grid-template-columns: 1fr;
    }

    .franz-hero__actions {
        align-items: stretch;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .franz-hero__actions .franz-button,
    .franz-hero__actions .franz-link {
        width: 100%;
    }

    .franz-hero__actions .franz-button--primary + .franz-button--secondary {
        margin-top: 10px;
    }

    .franz-conversion-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .franz-conversion-actions .franz-button,
    .franz-conversion-actions .franz-link {
        justify-content: center;
        min-height: 48px;
        text-align: center;
        width: 100%;
    }
}
