/* CSS Styles for Location Modal */
.location-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
    box-sizing: border-box;
    animation: fadeInModal 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.location-modal-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.2), 
                0 0 0 1px rgba(0, 98, 172, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    margin: auto;
    transform: translateY(30px) scale(0.96);
    animation: slideUpModal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
    from { 
        transform: translateY(30px) scale(0.96); 
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1); 
        opacity: 1;
    }
}

.location-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.location-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.location-modal-icon-wrapper {
    background: linear-gradient(135deg, rgba(0, 98, 172, 0.08) 0%, rgba(0, 79, 139, 0.08) 100%);
    color: #0062ac;
    width: 64px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: inset 0 2px 4px rgba(0, 98, 172, 0.05);
    border: 1px solid rgba(0, 98, 172, 0.15);
}

.location-modal-title h3 {
    margin: 0 0 4px 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

.location-modal-title p {
    margin: 0;
    font-size: 0.85rem;
    color: #64748b;
    font-family: 'Inter', sans-serif;
}

.location-modal-close-btn {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.location-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.08) rotate(90deg);
}

.modal-alert-banner {
    background: linear-gradient(135deg, rgba(0, 98, 172, 0.03) 0%, rgba(0, 79, 139, 0.03) 100%);
    border: 1px solid rgba(0, 98, 172, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: #0062ac;
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

.modal-alert-banner i {
    font-size: 1.25rem;
}

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

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

.location-form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.location-form-group:focus-within label {
    color: #0062ac;
}

.select-wrapper {
    position: relative;
    width: 100%;
}

.location-select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e2e8f0;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
}

.location-select:focus {
    border-color: #0062ac;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 98, 172, 0.1), 0 4px 10px rgba(0, 98, 172, 0.05);
}

.location-select:disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 0.85rem;
    transition: transform 0.25s ease, color 0.2s ease;
}

.location-select:focus + .select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: #0062ac;
}

.btn-location-submit {
    margin-top: 6px;
    background: linear-gradient(135deg, #0062ac 0%, #004f8b 100%);
    border: none;
    padding: 11px 16px;
    border-radius: 11px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 10px 20px -5px rgba(0, 98, 172, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Outfit', sans-serif;
}

.btn-location-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 24px -5px rgba(0, 98, 172, 0.45);
    filter: brightness(1.05);
}

.btn-location-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-location-submit:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Custom Premium Dropdown Styling */
.hidden-native-select {
    display: none !important;
}

.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    font-size: 0.95rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.01);
}

.custom-select-container:not(.disabled) .custom-select-trigger:hover {
    border-color: #0062ac;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 98, 172, 0.05);
}

.custom-select-container.open .custom-select-trigger {
    border-color: #0062ac;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 98, 172, 0.1), 0 4px 12px rgba(0, 98, 172, 0.05);
}

.custom-select-container.disabled .custom-select-trigger {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.custom-select-container .select-arrow {
    font-size: 0.85rem;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.custom-select-container.open .select-arrow {
    transform: rotate(180deg);
    color: #0062ac;
}

.custom-options-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08), 
                0 0 0 1px rgba(0, 98, 172, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px;
}

.custom-select-container.open .custom-options-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.custom-options-menu::-webkit-scrollbar {
    width: 6px;
    display: block;
}

.custom-options-menu::-webkit-scrollbar-track {
    background: transparent;
}

.custom-options-menu::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.custom-option-item {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.custom-option-item:hover {
    background: rgba(0, 98, 172, 0.05);
    color: #0062ac;
    padding-left: 18px;
}

.custom-option-item.selected {
    background: #0062ac;
    color: white !important;
    font-weight: 600;
}

/* Pincode Input Styles */
.pincode-input-container {
    display: flex;
    gap: 8px;
    width: 100%;
}

.location-input-field {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 11px;
    font-size: 0.95rem;
    color: #1e293b;
    background: rgba(255, 255, 255, 0.85);
    outline: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
}

.location-input-field:focus {
    border-color: #0062ac;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(0, 98, 172, 0.1), 0 4px 10px rgba(0, 98, 172, 0.05);
}

.btn-pincode-fetch {
    background: #0062ac;
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-pincode-fetch:hover {
    background: #004f8b;
    transform: scale(1.05);
}

.btn-pincode-fetch:active {
    transform: scale(0.95);
}

.pincode-status-text {
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 2px;
    min-height: 16px;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.pincode-status-text.error {
    color: #ef4444;
}

.pincode-status-text.success {
    color: #10b981;
}

.pincode-status-text.loading {
    color: #0062ac;
}
