/* Location Modal Styles */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    /* JS toggles flex */
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(2px);
}

.location-modal-overlay.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

.location-modal {
    background: #fff;
    width: 100%;
    max-width: 480px;
    border-radius: 12px;
    padding: 24px;
    /* Increased padding */
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.modal-close-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.modal-header-content {
    margin-bottom: 24px;
}

.modal-icon-top {
    margin-bottom: 12px;
}

.modal-header-content h3 {
    font-family: 'Playfair Display', serif;
    /* Or system font */
    font-size: 1.25rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 4px 0;
}

.modal-header-content p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.modal-body-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Country Preview Box */
.country-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.country-preview:hover {
    border-color: #bbb;
}

.country-flag-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.country-flag-wrap img {
    width: 24px;
    height: auto;
    border-radius: 2px;
}

.country-flag-wrap span {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

/* One Input Group */
.one-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: all 0.2s;
}

.one-input-group input:focus {
    border-color: var(--header-primary-color);
    box-shadow: 0 0 0 3px rgba(108, 140, 54, 0.1);
}

.btn-location-continue {
    background: var(--header-primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
}

.btn-location-continue:hover {
    background: #5a752d;
    /* Slightly darker shade */
}