/* Modal de Seleção de Cidade */
.cidade-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: opacity 0.3s ease, backdrop-filter 0.4s ease;
    pointer-events: none;
}

.cidade-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cidade-modal {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cidade-modal-overlay.active .cidade-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.cidade-modal-header {
    padding: 30px 25px 20px;
    border-bottom: 1px solid rgba(0, 51, 102, 0.1);
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.03), rgba(0, 51, 102, 0.08));
}

.cidade-modal-header h3 {
    margin: 0 0 15px;
    color: #003366;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.cidade-modal-header h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #003366, #0066cc);
    border-radius: 3px;
}

.cidade-modal-header p {
    margin: 10px 0 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.cidade-modal-body {
    position: relative;
    padding: 30px;
    background-color: white;
    min-height: 220px;
    overflow: hidden;
}

#formSelecaoCidade {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cidade-select-container {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.cidade-select-container:after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #003366;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.cidade-select-container:focus-within:after {
    transform: translateY(-50%) rotate(180deg);
}

#selectCidade {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 2px solid #e0e6ed;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    appearance: none;
    background-color: #f8fafb;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

#selectCidade:focus {
    border-color: #003366;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
    background-color: #fff;
}

.cidade-btn {
    width: 100%;
    height: 56px;
    background: linear-gradient(to right, #003366, #005099);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.cidade-btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.cidade-btn:hover {
    background: linear-gradient(to right, #004080, #0066cc);
    box-shadow: 0 6px 15px rgba(0, 51, 102, 0.3);
    transform: translateY(-2px);
}

.cidade-btn:hover:before {
    left: 100%;
}

.cidade-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 51, 102, 0.2);
}

#formSelecaoCidade label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 16px;
}

#selectCidade.custom-dropdown {
    position: relative;
    overflow-y: auto;
    border-radius: 12px;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

#selectCidade option {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 15px;
}

#selectCidade option:hover,
#selectCidade option:focus {
    background-color: rgba(0, 51, 102, 0.08);
}

#selectCidade.mobile-select {
    padding-right: 40px;
}

/* Animação de pulsação para indicar ação necessária */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 51, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 51, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 51, 102, 0); }
}

.cidade-btn:not(:disabled) {
    animation: pulse 2s infinite;
}

/* Responsivo */
@media (max-width: 768px) {
    .cidade-modal {
        width: 95%;
    }
    
    .cidade-modal-header h3 {
        font-size: 24px;
    }
    
    .cidade-modal-body {
        padding: 25px 20px;
    }
    
    #selectCidade,
    .cidade-btn {
        font-size: 15px;
        height: 52px;
    }
}

@media (max-width: 480px) {
    .cidade-modal-header {
        padding: 20px 15px;
    }
    
    .cidade-modal-header h3 {
        font-size: 22px;
    }
    
    .cidade-modal-header h3:after {
        width: 40px;
    }
    
    .cidade-modal-body {
        padding: 20px 15px;
    }
    
    .cidade-btn {
        height: 50px;
        font-size: 14px;
    }
} 