:root {
    --nos-avv-primary: #087EBB;
    --nos-avv-primary-dark: #06699c;
    --nos-avv-primary-soft: #eef8fd;
    --nos-avv-text: #1f2933;
    --nos-avv-muted: #52606d;
    --nos-avv-border: #cfd9df;
    --nos-avv-background: #f4f7f8;
}

.nos-avv-wrap {
    max-width: 980px;
    margin: 0 auto;
    color: var(--nos-avv-text);
    font-family: inherit;
}

.nos-avv-card {
    margin: 0 0 18px;
    padding: 22px;
    border: 1px solid var(--nos-avv-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(25, 55, 70, 0.06);
}

.nos-avv-card:first-child {
    border-top: 4px solid var(--nos-avv-primary);
}

.nos-avv-card h2,
.nos-avv-card h3 {
    margin-top: 0;
    color: var(--nos-avv-primary);
}

.nos-avv-note {
    color: var(--nos-avv-muted);
    font-size: 14px;
    line-height: 1.55;
}

.nos-avv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nos-avv-full {
    grid-column: 1 / -1;
}

.nos-avv-field label,
.nos-avv-legend {
    display: block;
    margin: 0 0 6px;
    font-weight: 700;
}

.nos-avv-field input,
.nos-avv-field textarea,
.nos-avv-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid var(--nos-avv-border);
    border-radius: 6px;
    background: #fff;
    color: var(--nos-avv-text);
    font: inherit;
}

.nos-avv-field input:focus,
.nos-avv-field textarea:focus,
.nos-avv-field select:focus {
    outline: 3px solid rgba(8, 126, 187, 0.16);
    border-color: var(--nos-avv-primary);
}

.nos-avv-field textarea {
    min-height: 110px;
    resize: vertical;
}

.nos-avv-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}

.nos-avv-check {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    line-height: 1.4;
}

.nos-avv-check input {
    margin-top: 3px;
    flex: 0 0 auto;
    accent-color: var(--nos-avv-primary);
}

.nos-avv-required {
    color: #b42318;
}

.nos-avv-consent {
    margin-top: 18px;
    padding: 14px;
    border-left: 4px solid var(--nos-avv-primary);
    border-radius: 5px;
    background: var(--nos-avv-primary-soft);
}

.nos-avv-button {
    appearance: none;
    padding: 14px 20px;
    border: 0;
    border-radius: 7px;
    background: var(--nos-avv-primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nos-avv-button:hover,
.nos-avv-button:focus {
    background: var(--nos-avv-primary-dark);
}

.nos-avv-button:active {
    transform: translateY(1px);
}

.nos-avv-button[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.nos-avv-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 720px) {
    .nos-avv-grid,
    .nos-avv-checks {
        grid-template-columns: 1fr;
    }

    .nos-avv-card {
        padding: 17px;
    }
}

.nos-avv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.nos-avv-button-secondary {
    border: 1px solid var(--nos-avv-primary);
    background: #fff;
    color: var(--nos-avv-primary);
}

.nos-avv-button-secondary:hover,
.nos-avv-button-secondary:focus {
    background: var(--nos-avv-primary-soft);
    color: var(--nos-avv-primary-dark);
}

@media (max-width: 560px) {
    .nos-avv-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .nos-avv-actions .nos-avv-button {
        width: 100%;
    }
}

.nos-avv-security-note {
    flex-basis: 100%;
    margin: 2px 0 0;
    color: var(--nos-avv-muted);
    font-size: 12px;
    line-height: 1.45;
}


/* Das Google-reCAPTCHA-v3-Badge soll auf der AVV-Seite über schwebenden
   Divi-Elementen sichtbar bleiben. Position und Gestaltung stammen von Google. */
.grecaptcha-badge {
    z-index: 2147483000 !important;
}

.nos-avv-recaptcha-status[data-state="ready"] {
    font-weight: 600;
}

.nos-avv-recaptcha-status[data-state="error"] {
    color: #b42318;
    font-weight: 600;
}

.nos-avv-recaptcha-status[data-state="blocked"] {
    color: #b54708;
    font-weight: 600;
}
