#optout-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: none;
    width: 100vw;
    height: 100vh;
    padding: 16px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

#optout-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.optout-modal-open {
    overflow: hidden;
}

#optout-modal .optout-modal__dialog,
#optout-modal .modal-dialog {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

#optout-modal .optout-modal__content,
#optout-modal .modal-content {
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

#optout-modal .optout-modal__header,
#optout-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 32px;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#optout-modal .optout-modal__title,
#optout-modal .modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.2;
}

#optout-modal .optout-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

#optout-modal .optout-modal__close:hover {
    background: rgba(255, 255, 255, 0.15);
}

#optout-modal .optout-modal__body,
#optout-modal .modal-body {
    padding: 32px;
}

#optout-modal .opt-out-description {
    padding: 20px;
    margin-bottom: 32px;
    border-left: 4px solid #667eea;
    border-radius: 6px;
    color: #495057;
    background-color: #f8f9fa;
    font-size: 0.9rem;
    line-height: 1.6;
}

#optout-modal .opt-out-description p {
    margin: 0 0 8px;
}

#optout-modal .opt-out-description p:last-child {
    margin-bottom: 0;
}

#optout-modal form,
#optout-modal .contact_form {
    display: block;
    text-align: left;
}

#optout-modal .mb-4 {
    margin-bottom: 24px;
    text-align: left;
}

#optout-modal .form-label {
    display: block;
    margin-bottom: 8px;
    color: #2d3748;
    font-size: 0.9rem;
    font-weight: 600;
}

#optout-modal .text-danger {
    color: #dc3545;
}

#optout-modal .form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    color: #1a202c;
    background-color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#optout-modal .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

#optout-modal .form-control::placeholder {
    color: #a0aec0;
}

#optout-modal .form-text {
    display: block;
    margin-top: 8px;
    color: #718096;
    font-size: 0.85rem;
}

#optout-modal .optout-alert,
#optout-modal .alert {
    padding: 16px;
    margin-bottom: 24px;
    border: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.45;
}

#optout-modal .optout-alert--success,
#optout-modal .alert-success {
    color: #155724;
    background: #d4edda;
}

#optout-modal .optout-alert--error,
#optout-modal .alert-danger {
    color: #721c24;
    background: #f8d7da;
}

#optout-modal .optout-modal__actions,
#optout-modal .d-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#optout-modal .btn {
    padding: 12px 28px;
    border: 0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#optout-modal .btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

#optout-modal .btn-secondary {
    color: #4a5568;
    background-color: #e2e8f0;
}

#optout-modal .btn-secondary:hover {
    background-color: #cbd5e0;
    transform: translateY(-1px);
}

#optout-modal .btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#optout-modal .btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    #optout-modal {
        align-items: flex-start;
        padding: 8px;
    }

    #optout-modal.show {
        align-items: flex-start;
    }

    #optout-modal .optout-modal__header,
    #optout-modal .modal-header {
        padding: 20px 24px;
    }

    #optout-modal .optout-modal__title,
    #optout-modal .modal-title {
        font-size: 1.15rem;
    }

    #optout-modal .optout-modal__body,
    #optout-modal .modal-body {
        padding: 24px;
    }

    #optout-modal .opt-out-description {
        padding: 16px;
        font-size: 0.85rem;
    }

    #optout-modal .optout-modal__actions,
    #optout-modal .d-flex {
        flex-direction: column;
    }

    #optout-modal .btn {
        width: 100%;
    }
}
