/* ========================================
   ESTILOS PARA PASO DE DATOS DE CONTACTO
   ======================================== */

/* Nota informativa de contacto */
.contact-info-note {
    background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
    border: 1px solid #0ea5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.contact-note-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #0369a1;
    font-size: 1.1rem;
}

.contact-note-header i {
    font-size: 1.5rem;
    color: #0ea5e9;
}

.contact-note-content h4 {
    color: #1e40af;
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
}

.contact-note-content p {
    color: #475569;
    margin: 0.5rem 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Grid de formulario de contacto */
.contact-form-grid {
    display: grid;
    gap: 2rem;
}

/* Secciones del formulario */
.form-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section h4 {
    color: #1e293b;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.section-description {
    color: #64748b;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Grupo de checkboxes personalizado */
.checkbox-group {
    display: grid;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #ffffff;
    position: relative;
}

.checkbox-item:hover {
    border-color: #0ea5e9;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

/* Checkmark personalizado */
.checkmark-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: #ffffff;
    margin-top: 2px;
}

.checkmark-custom::after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark-custom {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark-custom::after {
    display: block;
}

.checkbox-item input[type="checkbox"]:checked ~ .checkbox-content {
    color: #0369a1;
}

/* Contenido del checkbox */
.checkbox-content {
    flex: 1;
}

.checkbox-content strong {
    display: block;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.checkbox-content small {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Estado activo del checkbox */
.checkbox-item:has(input:checked) {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.15);
}

/* Mensajes de validación */
.validation-message {
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-message.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.validation-message.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Resultados de validación de contacto */
.contact-validation-results {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.validation-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #16a34a;
    font-weight: 500;
}

.validation-summary i {
    font-size: 1.2rem;
}

/* Estilos específicos para campos inline */
.form-group-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group.flex-grow {
    flex: 1;
}

/* Campos requeridos */
.required-asterisk {
    color: #dc2626;
    font-weight: bold;
    margin-left: 2px;
}

/* Ayuda de campo */
.field-help {
    display: block;
    margin-top: 0.25rem;
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Estilos para inputs de contacto */
#contact-step input[type="text"],
#contact-step input[type="tel"],
#contact-step input[type="email"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

#contact-step input[type="text"]:focus,
#contact-step input[type="tel"]:focus,
#contact-step input[type="email"]:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

#contact-step input[type="text"]:invalid,
#contact-step input[type="tel"]:invalid,
#contact-step input[type="email"]:invalid {
    border-color: #dc2626;
}

#contact-step input[type="text"]:valid,
#contact-step input[type="tel"]:valid,
#contact-step input[type="email"]:valid {
    border-color: #16a34a;
}

/* Labels en el paso de contacto */
#contact-step label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .contact-form-grid {
        gap: 1.5rem;
    }
    
    .form-group-inline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-info-note {
        padding: 1rem;
    }
    
    .contact-note-header {
        font-size: 1rem;
    }
    
    .contact-note-header i {
        font-size: 1.25rem;
    }
    
    .checkbox-item {
        padding: 0.75rem;
    }
    
    .form-section {
        padding: 1rem;
    }
}

/* Animaciones */
@keyframes checkboxSelect {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.checkbox-item:has(input:checked) {
    animation: checkboxSelect 0.3s ease;
}

/* Estados de hover para dispositivos táctiles */
@media (hover: hover) {
    .checkbox-item:hover .checkmark-custom {
        border-color: #0ea5e9;
        box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.1);
    }
}