/* Location Modal Overlay */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

/* Location Modal Container */
.location-modal {
    background: #FFFFFF;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Modal Header */
.location-modal-header {
    padding: 24px 24px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.location-modal-title {
    font-size: 20px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    line-height: 1.4;
}

.location-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.location-modal-close:hover {
    opacity: 0.7;
}

/* Modal Body */
.location-modal-body {
    padding: 0 24px 24px;
    overflow-y: auto;
    flex: 1;
}

.location-modal-description {
    font-size: 14px;
    color: #666666;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.location-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.location-form-group {
    position: relative;
}

/* Custom Select Styling */
.location-select {
    width: 100%;
    padding: 14px 40px 14px 16px;
    font-size: 15px;
    color: #1A1A1A;
    border: 1px solid #E7E7E7;
    border-radius: 8px;
    background-color: #FFFFFF;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.location-select:hover {
    border-color: #CCCCCC;
}

.location-select:focus {
    outline: none;
    border-color: #4F75FB;
    box-shadow: 0 0 0 3px rgba(79, 117, 251, 0.1);
}

.location-select:disabled {
    background-color: #F5F5F5;
    cursor: not-allowed;
    opacity: 0.6;
}

.location-select option {
    padding: 12px;
    font-size: 15px;
}

.location-select option:disabled {
    color: #CCCCCC;
}

/* Modal Footer */
.location-modal-footer {
    padding: 16px 24px 24px;
}

/* Button */
.btn-location-confirm {
    width: 100%;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #4F75FB;
    color: #FFFFFF;
}

.btn-location-confirm:hover {
    background: #3D5FE3;
}

.btn-location-confirm:active {
    background: #2E4FCF;
}

.btn-location-confirm:disabled {
    background: #E7E7E7;
    color: #999999;
    cursor: not-allowed;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .location-modal {
        max-width: 100%;
        border-radius: 16px 16px 16px 16px;
        max-height: 85vh;
    }

    .location-modal-header {
        padding: 20px 16px 16px;
    }

    .location-modal-title {
        font-size: 18px;
    }

    .location-modal-body {
        padding: 0 16px 16px;
    }

    .location-modal-description {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .location-form {
        gap: 12px;
    }

    .location-select {
        padding: 12px 36px 12px 14px;
        font-size: 14px;
    }

    .location-modal-footer {
        padding: 12px 16px 20px;
    }

    .btn-location-confirm {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Animation */
@keyframes locationModalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes locationModalSlideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.location-modal-overlay {
    animation: locationModalFadeIn 0.2s ease;
}

.location-modal {
    animation: locationModalSlideUp 0.3s ease;
}
