/* BookFlow booking page (customer link). Follows the global form design (Settings > Form design):
   the --bf-* variables are written to :root by BookFlow_Design (stylesheet "bookflow-style", a dependency of this file)
   and resolved into --bfr-* on this wrapper by bookflow.css (same block as .bf-wrap). Fallbacks = the form defaults.
   Fixed on purpose (no design variable): the success/hint green and the amber notice box (own opaque text colors, readable on dark pages).
   Field, label and button rules use the doubled wrapper class (like .bf-wrap.bf-wrap) so theme/Elementor kit input rules do not win. */
.bookflow-invite-form {
    width: 100%;
    max-width: var(--bf-max-width, 800px);
    margin: 1em auto;
    padding: 0;
    font-family: inherit;
    color: var(--bf-text, inherit);
    --bfr-label: var(--bf-label, var(--bf-label-color, var(--bf-text, currentColor)));
    --bfr-tint: rgba(127, 127, 127, 0.1);
    --bfr-error-tint: #fde0e0; /* opaque on purpose: stays readable on dark pages */
    --bfr-error-text: #800;
    --bfr-ring: rgba(127, 127, 127, 0.25);
    box-sizing: border-box;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
    .bookflow-invite-form {
        --bfr-tint: color-mix(in srgb, var(--bfr-accent) 8%, transparent);
        --bfr-error-tint: color-mix(in srgb, var(--bfr-error) 12%, white);
        --bfr-error-text: color-mix(in srgb, var(--bfr-error) 70%, black);
        --bfr-ring: color-mix(in srgb, var(--bfr-accent) 25%, transparent);
    }
}

.bookflow-invite-form *,
.bookflow-invite-form *::before,
.bookflow-invite-form *::after {
    box-sizing: border-box;
}

.bookflow-invite-form .bf-invite-heading {
    font-family: var(--bf-font-label, inherit);
    margin-top: 0;
    margin-bottom: 0.6em;
    font-size: 1.6em;
}

.bookflow-invite-form .bf-invite-current,
.bookflow-invite-form .bf-invite-notice {
    background: var(--bfr-tint);
    border-left: 4px solid var(--bfr-accent);
    padding: 0.8em 1em;
    margin-bottom: 1.2em;
    border-radius: var(--bfr-radius);
}
.bookflow-invite-form .bf-invite-notice {
    background: #fff8e1;
    border-color: #c89400;
    color: #3d3200;
}

.bookflow-invite-form .bf-invite-windows-info {
    background: var(--bfr-field-bg);
    padding: 0.6em 0.9em;
    border-radius: var(--bfr-radius);
    margin-bottom: 1em;
    font-size: 0.95em;
}

.bookflow-invite-form .bf-invite-section {
    border: 1px solid var(--bfr-border);
    border-radius: var(--bfr-radius);
    padding: 0.8em 1.2em 1em 1.2em;
    margin: 0 0 1.2em 0;
}

.bookflow-invite-form .bf-invite-section legend {
    font-weight: 600;
    padding: 0 0.5em;
    font-family: var(--bf-font-label, inherit);
    color: var(--bfr-label);
}

/* Default field block */
.bookflow-invite-form .bf-field {
    margin-bottom: var(--bfr-gap);
    display: flex;
    flex-direction: column;
}

.bookflow-invite-form.bookflow-invite-form .bf-field label {
    font-size: 0.92em;
    margin-bottom: 0.25em;
    font-family: var(--bf-font-label, inherit);
    color: var(--bfr-label);
}

.bookflow-invite-form.bookflow-invite-form .bf-field input:not([type=checkbox]):not([type=radio]),
.bookflow-invite-form.bookflow-invite-form .bf-field select,
.bookflow-invite-form.bookflow-invite-form .bf-field textarea {
    padding: 0.55em 0.7em;
    border: 1px solid var(--bfr-border);
    border-radius: var(--bfr-radius);
    font-size: 1em;
    color: var(--bf-text, inherit);
    background: var(--bfr-field-bg);
    width: 100%;
    font-family: var(--bf-font-field, inherit);
}

.bookflow-invite-form.bookflow-invite-form .bf-field textarea {
    resize: vertical;
    min-height: 80px;
}

.bookflow-invite-form.bookflow-invite-form .bf-field input:not([type=checkbox]):not([type=radio]):focus,
.bookflow-invite-form.bookflow-invite-form .bf-field select:focus,
.bookflow-invite-form.bookflow-invite-form .bf-field textarea:focus {
    outline: none;
    border-color: var(--bfr-accent);
    box-shadow: 0 0 0 2px var(--bfr-ring);
}

.bookflow-invite-form .bf-required {
    color: var(--bfr-required);
}

/* Read-only mode: when reschedule is disabled, fields are shown but cannot be changed */
.bookflow-invite-form .bf-readonly-value {
    padding: 0.55em 0.7em;
    border: 1px dashed var(--bfr-border);
    border-radius: var(--bfr-radius);
    background: var(--bfr-field-bg);
    font-size: 1em;
    color: var(--bf-text, inherit);
}
.bookflow-invite-form.bf-form-readonly input[readonly]:not(.flatpickr-input):not(.flatpickr-alt-input),
.bookflow-invite-form.bf-form-readonly select[disabled],
.bookflow-invite-form.bf-form-readonly textarea[readonly] {
    background: var(--bfr-field-bg);
    border-style: dashed;
    color: var(--bf-text, inherit);
    cursor: not-allowed;
}
.bookflow-invite-form.bf-form-readonly input[disabled] + span {
    color: var(--bf-text, inherit);
}

.bookflow-invite-form .bf-allday-info {
    color: #2a7a2a;
    font-style: italic;
    margin: 0.3em 0;
}

.bookflow-invite-form .bf-loading-slots {
    color: #888;
    font-style: italic;
    margin: 0.3em 0;
}

.bookflow-invite-form .bf-invite-actions {
    text-align: right;
    margin-top: 1em;
}

.bookflow-invite-form.bookflow-invite-form .bf-invite-submit {
    background: var(--bfr-btn);
    color: var(--bfr-btn-text);
    border: 0;
    padding: 0.8em 2em;
    font-size: 1.05em;
    font-family: var(--bf-font-button, inherit);
    border-radius: var(--bfr-radius);
    cursor: pointer;
    transition: background 0.15s;
}

.bookflow-invite-form.bookflow-invite-form .bf-invite-submit:hover:not(:disabled) {
    background: var(--bfr-btn-hover);
}

.bookflow-invite-form.bookflow-invite-form .bf-invite-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bookflow-invite-form .bf-invite-result {
    padding: 1em 1.2em;
    border-radius: var(--bfr-radius);
    margin-top: 1em;
}

.bookflow-invite-form .bf-invite-result.bf-success {
    background: #e8f5e8;
    border: 1px solid #2a7a2a;
    color: #1e5d1e;
}

.bookflow-invite-form .bf-invite-result.bf-error {
    background: var(--bfr-error-tint);
    border: 1px solid var(--bfr-error);
    color: var(--bfr-error-text);
}

.bookflow-invite-form.bf-invite-error {
    background: var(--bfr-error-tint);
    border: 1px solid var(--bfr-error);
    color: var(--bfr-error-text);
    padding: 1em 1.5em;
    border-radius: var(--bfr-radius);
}

/* ----- Shooting location section ----- */
.bookflow-invite-form .bf-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: .5em;
    cursor: pointer;
    font-size: 1em;
}
.bookflow-invite-form .bf-checkbox-label input {
    width: auto;
    margin-top: .25em;
}

/* ----- Consents section (DSGVO/AGB) ----- */
.bookflow-invite-form .bf-section-consents .bf-field-consent {
    margin-bottom: .6em;
}
.bookflow-invite-form .bf-section-consents .bf-field-consent:last-child {
    margin-bottom: 0;
}
.bookflow-invite-form .bf-section-consents a {
    color: var(--bfr-link);
    text-decoration: underline;
}
.bookflow-invite-form .bf-shooting-row {
    border: 1px solid var(--bfr-border);
    border-radius: var(--bfr-radius);
    padding: .8em 1em;
    margin-bottom: .8em;
    background: var(--bfr-field-bg);
}
.bookflow-invite-form .bf-shooting-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .6em;
}
.bookflow-invite-form .bf-shooting-remove {
    background: transparent;
    border: 0;
    color: var(--bfr-error);
    font-size: 1.4em;
    line-height: 1;
    cursor: pointer;
    padding: 0 .3em;
}
@media (min-width: 600px) {
    .bookflow-invite-form .bf-shooting-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1em;
    }
    .bookflow-invite-form .bf-shooting-row-header {
        grid-column: 1 / -1;
    }
    .bookflow-invite-form .bf-shooting-row .bf-field-street,
    .bookflow-invite-form .bf-shooting-row .bf-field-country {
        grid-column: 1 / -1;
    }
    .bookflow-invite-form .bf-shooting-row .bf-field-zip,
    .bookflow-invite-form .bf-shooting-row .bf-field-city {
        grid-column: span 1;
    }
}
@media (min-width: 600px) {
    .bookflow-invite-form .bf-section-address {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 1em;
    }
    /* Legend spans full width */
    .bookflow-invite-form .bf-section-address legend {
        grid-column: 1 / -1;
    }
    /* Half-width fields (paired) */
    .bookflow-invite-form .bf-section-address .bf-field-firstname,
    .bookflow-invite-form .bf-section-address .bf-field-lastname,
    .bookflow-invite-form .bf-section-address .bf-field-email,
    .bookflow-invite-form .bf-section-address .bf-field-phone,
    .bookflow-invite-form .bf-section-address .bf-field-zip,
    .bookflow-invite-form .bf-section-address .bf-field-city {
        grid-column: span 1;
    }
    /* Full-width fields */
    .bookflow-invite-form .bf-section-address .bf-field-salutation,
    .bookflow-invite-form .bf-section-address .bf-field-company,
    .bookflow-invite-form .bf-section-address .bf-field-street,
    .bookflow-invite-form .bf-section-address .bf-field-country,
    .bookflow-invite-form .bf-section-address .bf-field-uid,
    .bookflow-invite-form .bf-section-address .bf-field-message {
        grid-column: 1 / -1;
    }
}
