.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(73 73 73 / 73%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hidden {
    display: none;
}

.dropdown {
    position: relative;
    display: inline-block;
    width: 400px; 
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;     
    overflow-y: auto;      
    list-style: none;     
    margin: 0; padding: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-list.hidden {
    display: none;
}

.dropdown-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

.dropdown-list li:hover {
    background: #f5f5f5;
}

.dropdown-list img {
    width: 24px;
    height: auto;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 2px;
}

.modal-content {
    background: var(--color-white);
    font-family: var(--font-primary, sans-serif), sans-serif;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-primary);
    padding: 15px;
    border-radius: 8px 8px 0 0;
    margin: -30px -30px 20px -30px;
    text-align: center;
    font-family: var(--font-secondary, sans-serif), sans-serif;
    color: var(--color-text);
}

.modal-header h5 {
    margin: 0;
    font-size: 1.4rem;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
    font-weight: 600;
}

.form-control {
    width: 92%;
    padding: 10px 15px;
    border: 1px solid var(--color-header);
    border-radius: 5px;
    font-family: var(--font-primary, sans-serif), sans-serif;
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-background);
    transition: border 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 5px rgba(233, 143, 94, 0.5);
}

.form-check {
    display: flex;
    align-items: center;
    gap: 5px;
}

.form-check-input {
    margin-right: 5px;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--color-text);
}

.btn {
    font-family: var(--font-secondary, sans-serif), sans-serif;
    background: var(--color-secondary);
    border: none;
    padding: 12px 20px;
    width: 100%;
    border-radius: 5px;
    font-size: 1rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 10px;
}

.btn:hover {
    background: #D28155;
}

.close-btn-form {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--color-text);
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--color-secondary);
}

.containerTel {
    display: flex;
    align-items: center;
    gap: 5px;
}

.containerTel div{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.custom-select-container {
    border: 1px solid var(--color-header);
    border-radius: 5px;
    padding: 10px 15px;
    color: var(--color-text);
    background: var(--color-background);
    transition: border 0.3s, box-shadow 0.3s;
}

.btn-login {
    background-color: var(--color-secondary);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 92%;
}

.btn-login:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.btn-login:active {
    background-color: #3e8e41;
    transform: translateY(0);
}

.d-none {
    display: none;
}

#messageContainer {
    margin-top: 20px;
    padding: 10px 8px;
    border-radius: 5px;
    text-align: justify;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
}

#messageContainer.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    margin-bottom: 20px;
}

#messageContainer.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 500px) {
    .btn-login {
        width: 88%;
    }
    
    .modal-content {
        margin: 0 30px;
    }
}