* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f7f6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

h2 { 
    text-align: center; 
    color: #333; 
    margin-bottom: 20px;
}

label { 
    display: block; 
    margin-bottom: 5px; 
    font-weight: 600; 
    color: #555; 
    font-size: 14px; 
}

input, textarea, select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #007bff;
}

.tel-group { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 15px; 
}

.tel-group select { 
    width: 35%; 
    margin-bottom: 0; 
}

.tel-group input { 
    flex: 1; 
    margin-bottom: 0; 
}

textarea {
    resize: vertical;
    min-height: 60px;
}

input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.checkbox-group {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 15px;
}

button:hover { 
    background-color: #0056b3; 
}

button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* --- ESTILOS DEL MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
}

.modal-overlay.is-visible {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 320px;
    transform: scale(0.7);
    transition: all 0.3s ease-in-out;
}

.modal-overlay.is-visible .modal-content {
    transform: scale(1);
}

/* Icono de éxito */
.icon-success {
    font-size: 50px;
    color: #2ecc71;
    margin-bottom: 10px;
}

/* Icono de error */
.icon-error {
    font-size: 50px;
    color: #e74c3c;
    margin-bottom: 10px;
}

/* Icono de advertencia */
.icon-warning {
    font-size: 50px;
    color: #f39c12;
    margin-bottom: 10px;
}

.modal-content h3 { 
    margin-top: 0; 
    color: #333; 
    margin-bottom: 10px;
}

.modal-content p { 
    color: #666; 
    font-size: 14px; 
    line-height: 1.5; 
    margin-bottom: 20px;
}

.modal-content button {
    padding: 10px 25px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    width: auto;
}

.modal-content button:hover {
    background-color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
    .form-container {
        padding: 20px;
        margin: 10px;
    }
    
    .tel-group {
        flex-direction: column;
    }
    
    .tel-group select {
        width: 100%;
    }
    
    h2 {
        font-size: 22px;
    }
}