/* =========================================================
   SECCIÓN DE CONTACTO
========================================================= */

.contact-section {
    width: 100%;
    min-height: 100vh;
    background: url('../..//img/externalConfintia/confintia-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 400px; 
}

.contact-container {
    width: 100%;
    max-width: 700px; 
    margin: 0 auto;
}

/* Tarjeta del formulario */
.contact-card {
    background: #FBFBFB;
    border-radius: 16px; 
    border: 1px solid #E0E0E0; 
    padding: 48px 56px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Título */
.contact-title {
    font-family: 'Roboto', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    color: #535353;
    text-align: left;
    margin: 0 0 32px 0;
}

/* Formulario */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Grupo de formulario */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #535353;
}

/* Inputs - bordes más suaves */
.form-input-wrapper {
    width: 100%;
    background: #FBFBFB;
    border: 1px solid #D0D0D0; 
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-input-wrapper:focus-within {
    border-color: #FF8A2A;
    box-shadow: 0 0 0 2px rgba(255, 138, 42, 0.1);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #1B1B1B;
    background: transparent;
}

.form-input::placeholder {
    color: #B0B0B0; 
}

/* Textarea - bordes más suaves */
.form-textarea-wrapper {
    width: 100%;
    background: #FBFBFB;
    border: 1px solid #D0D0D0; 
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-textarea-wrapper:focus-within {
    border-color: #FF8A2A;
    box-shadow: 0 0 0 2px rgba(255, 138, 42, 0.1);
}

.form-textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 18px;
    border: none;
    outline: none;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #1B1B1B;
    background: transparent;
    resize: vertical;
}

.form-textarea::placeholder {
    color: #B0B0B0; 
}

/* Checkbox No soy un robot */
.form-group-robot {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.robot-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.robot-input {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #FF8A2A;
}

.robot-label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #535353;
}

/* Wrapper del botón */
.contact-button-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

/* Botón Enviar */
.contact-button {
    background: #495E9A;
    border-radius: 4px;
    padding: 10px 28px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-button:hover {
    background: #5a72b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(73, 94, 154, 0.3);
}

.contact-button:active {
    transform: translateY(0);
}

.contact-button svg {
    width: 18px;
    height: 18px;
}

.contact-button span {
    color: #FBFBFB;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0.25px;
}

/* =========================================================
   RESPONSIVE CONTACTO
========================================================= */

/* Pantallas grandes */
@media (max-width: 1400px) {
    .contact-section {
        padding: 60px 250px;
    }
}

@media (max-width: 1200px) {
    .contact-section {
        padding: 60px 150px;
    }
}

@media (max-width: 1000px) {
    .contact-section {
        padding: 60px 80px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .contact-section {
        padding: 60px 60px;
    }
    
    .contact-card {
        padding: 36px 40px;
    }
    
    .contact-container {
        max-width: 650px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 40px 20px;
    }
    
    .contact-card {
        padding: 30px 28px;
    }
    
    .contact-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
    
    .contact-form {
        gap: 20px;
    }
    
    .contact-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 40px 16px;
    }
    
    .contact-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .contact-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .contact-form {
        gap: 16px;
    }
    
    .form-label {
        font-size: 14px;
    }
    
    .form-input,
    .form-textarea {
        font-size: 14px;
        padding: 12px 14px;
    }
    
    .robot-label {
        font-size: 14px;
    }
    
    .contact-button span {
        font-size: 14px;
    }
    
    .contact-button {
        padding: 8px 24px;
    }
}


/* =========================================================
   ESTILOS PARA VALIDACIÓN DE FORMULARIO
========================================================= */

/* Estilo para inputs con error */
.input-error {
    border-color: #dc3545 !important;
}

/* Mensaje de error por campo */
.field-error-message {
    color: #dc3545;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 4px;
    padding-left: 4px;
}

/* Contenedor de errores generales */
.form-errors-container {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #fee;
    border: 1px solid #fcc;
    color: #dc3545;
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    text-align: center;
}

/* Estilo para el reCAPTCHA */
#recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* Mensaje de error del reCAPTCHA */
#inp_is_error_recaptcha {
    display: none;
    color: #dc3545;
    font-size: 12px;
    font-family: 'Roboto', sans-serif;
    margin-top: 8px;
    text-align: center;
}

/* Botón deshabilitado */
.contact-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}