.callback-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
}
.callback-modal.is-open {
    display: block;
}
.callback-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
.callback-modal__window {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 5vh auto;
    background: #fff;
    border-radius: 8px;
    padding: 32px;
}
.callback-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.callback-modal__content[hidden],
.callback-modal__success[hidden] {
    display: none !important;
}
.callback-form__label {
    display: block;
    margin-bottom: 16px;
}
.callback-form__label span {
    display: block;
    margin-bottom: 4px;
}
.callback-form__label input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.callback-form__label input.error {
    border-color: #d33;
}
.callback-form__agree {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.callback-form__submit {
    width: 100%;
    padding: 12px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.callback-form .error {
    color: #d33;
    font-size: 14px;
    display: block;
    margin-top: 4px;
}
.af-message {
    display: none;
}


/* Cookie */

.cookie-consent {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 9999;
    width: 360px;
    max-width: calc(100% - 48px);
    padding: 20px;
    background: #fff;
    color: #222;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
}

.cookie-consent__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.cookie-consent__text {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 12px;
}

.cookie-consent__link {
    display: inline-block;
    margin-bottom: 16px;
}

.cookie-consent__actions,
.cookie-modal__actions,
.cookie-modal__footer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
}

.cookie-consent__btn--primary {
    background: #005bbb;
    color: #fff;
}

.cookie-consent__btn--secondary {
    background: #f1f1f1;
    color: #222;
}

.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.cookie-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}

.cookie-modal__window {
    position: relative;
    z-index: 1;
    width: 720px;
    max-width: calc(100% - 40px);
    max-height: 90vh;
    overflow: auto;
    margin: 5vh auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
}

.cookie-modal__close {
    position: absolute;
    right: 18px;
    top: 14px;
    border: 0;
    background: none;
    font-size: 30px;
    cursor: pointer;
}

.cookie-modal__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 18px;
}

.cookie-modal__tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 18px;
}

.cookie-modal__tab {
    border: 0;
    background: none;
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.cookie-modal__tab.active {
    border-color: #005bbb;
    font-weight: 700;
}

.cookie-modal__content {
    display: none;
}

.cookie-modal__content.active {
    display: block;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid #eee;
}

.cookie-option strong {
    display: block;
    margin-bottom: 5px;
}

.cookie-option small {
    display: block;
    color: #555;
    line-height: 1.4;
}

.cookie-option input {
    width: 44px;
    height: 24px;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cookie-table th,
.cookie-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.cookie-modal__footer {
    justify-content: flex-end;
    margin-top: 22px;
}

@media (max-width: 480px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-width: none;
    }

    .cookie-consent__actions,
    .cookie-modal__actions,
    .cookie-modal__footer {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}
