/* Estilos específicos para la página de consultas */

/* Centrado del formulario */
.unified-content-section .content-container {
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.left-section {
    max-width: 800px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Ajustes para el contenedor principal */
.unified-contact-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

/* Estilos para el contenedor de información de contacto */
.contact-box {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #93C121;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección del formulario */
.form-section {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

/* Estilos para el dropdown personalizado */
.custom-dropdown {
    position: relative;
    width: 100%;
    margin-bottom: 8px;
}

.dropdown-selected {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
}

.dropdown-selected:hover {
    border-color: #93C121;
}

.dropdown-selected:focus {
    outline: none;
    border-color: #93C121;
    box-shadow: 0 0 0 3px rgba(147, 193, 33, 0.1);
}

.dropdown-selected.disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

.dropdown-selected.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.dropdown-arrow {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.dropdown-selected:not(.disabled):hover .dropdown-arrow {
    color: #93C121;
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.dropdown-options.show {
    display: block;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover:not(.disabled) {
    background-color: #f8fafc;
    color: #93C121;
}

.dropdown-option.disabled {
    color: #9ca3af;
    cursor: not-allowed;
    font-style: italic;
}

/* Estilos para los campos de entrada tradicionales */
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #374151;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #93C121;
    box-shadow: 0 0 0 3px rgba(147, 193, 33, 0.1);
}

.form-group input[type="email"].error,
.form-group textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Estilos para el textarea de descripción */
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    color: #374151;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #93C121;
    box-shadow: 0 0 0 3px rgba(147, 193, 33, 0.1);
}

.form-group textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Estilos para mensajes de error */
.error-message {
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
    display: none;
    animation: errorSlide 0.3s ease;
}

@keyframes errorSlide {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para las etiquetas con asterisco */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

.form-group label::after {
    content: '';
}

/* Estilos para campos con error */
.form-group input.error,
.form-group textarea.error,
.dropdown-selected.error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Estilos para el estado de éxito */
.form-group input.success,
.form-group textarea.success,
.dropdown-selected.success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1) !important;
}

/* Estilos para el botón de envío */
.submit-btn {
    background: linear-gradient(135deg, #93C121 0%, #7EA01C 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(147, 193, 33, 0.3);
    width: 100%;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #7EA01C 0%, #6B8A1A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(147, 193, 33, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(147, 193, 33, 0.3);
}

/* Estilos para las etiquetas del formulario */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 16px;
}

/* Estilos para el contenedor del formulario */
.contact-form {
    background: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

/* Estilos para el título del formulario */
.form-title {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

/* Estilos para la descripción del formulario */
.form-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    text-align: center;
}

/* Estilos para el contenedor de introducción del formulario */
.form-intro {
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #93C121;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 10px;
    }
    
    .left-section {
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    .contact-box {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .contact-form {
        padding: 24px;
        margin: 0;
    }
    
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .submit-btn {
        font-size: 16px;
        padding: 12px 24px;
    }
    
    .form-title {
        font-size: 20px;
    }
    
    .form-description {
        font-size: 14px;
    }
    
    .unified-content-section .content-container {
        padding: 0 !important;
    }
}

/* Animación para el select cuando se habilita */
.form-group select:not(:disabled) {
    animation: enableSelect 0.3s ease;
}

@keyframes enableSelect {
    from {
        opacity: 0.7;
        transform: translateY(-2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el estado de carga (opcional) */
.form-group select.loading {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2393C121' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e%3cpath d='M12 6v6l4 2'%3e%3c/path%3e%3c/svg%3e");
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
