.country-modal .modal-content {
    border-radius: 18px;
    border: none;
    box-shadow: 0 18px 40px rgba(15, 15, 15, 0.18);
}

.country-modal .modal-header {
    padding-bottom: 1rem;
}

.country-modal .modal-title {
    font-size: 1.25rem;
    margin: 0;
}

.country-modal__list {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 4px;
}

.country-modal__option {
    width: 100%;
    background: #f9fafb;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #111827;
    transition: background 0.2s ease;
}

.country-modal__option:hover,
.country-modal__option:focus {
    background: #eef2ff;
    color: #111827;
}

.country-modal__flag {
    width: 32px;
    height: 22px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.country-modal__label {
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .country-modal .modal-dialog {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }

    .country-modal .modal-content {
        border-radius: 18px;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
    }

    .country-modal .modal-header {
        padding: 1rem 1rem 0.75rem;
        flex-shrink: 0;
    }

    .country-modal .modal-title {
        font-size: 1.1rem;
    }

    .country-modal .modal-body {
        padding: 0.75rem 1rem 1rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    .country-modal__list {
        flex: 1;
        overflow-y: auto;
        max-height: calc(85vh - 120px);
    }

    .country-modal__option {
        padding: 12px 14px;
        margin-bottom: 10px;
    }

    .country-modal__flag {
        width: 28px;
        height: 20px;
    }

    .country-modal__label {
        font-size: 0.85rem;
    }
}

