@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

.solicitud-demo-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
    font-family: 'Poppins', sans-serif;
}

.solicitud-demo-form h2 {
    color: #6c5ce7;
    font-family: 'Poppins', sans-serif;
    font-size: 48px;
    line-height: 1.3em;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.solicitud-demo-form p,
.solicitud-demo-form .form-text {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.65em;
    color: #333;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    flex: 100%;
}

.form-group label {
    color: #6c5ce7;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 20px;
    line-height: 1.4em;
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    height: auto;
    min-height: 46px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: white;
    width: auto; 
    min-width: 0; 
    box-sizing: border-box; 
    border-color: #b8b8b8;

}

.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    background: white;
    border-color: #b8b8b8;

    
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6c5ce7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    text-align: center;
    margin-top: 30px;
}

button[type="submit"] {
    background: #6c5ce7;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.65em;
    font-weight: 600;
}

button[type="submit"]:hover {
    background: #5f4dd8;
}

button[type="submit"]:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Legacy support for old button ID */
#enviar-btn {
    background: #6c5ce7;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1em;
    font-weight: 600;
}

#enviar-btn:hover {
    background: #5f4dd8;
}

#enviar-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.form-messages,
#form-messages {
    margin-top: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.success-message {
    background: transparent;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.5em;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
    margin-top: 15px;
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.5em;
}

/* Loading spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .solicitud-demo-form {
        margin: 10px;
        padding: 15px;
    }
    
    .solicitud-demo-form h2 {
        font-size: 36px; /* Reducido para móviles */
        line-height: 1.3em;
    }
    
    .solicitud-demo-form p,
    .solicitud-demo-form .form-text {
        font-size: 16px; /* Reducido para móviles */
        line-height: 1.65em;
    }
}

@media (max-width: 480px) {
    .solicitud-demo-form h2 {
        font-size: 28px; /* Aún más reducido para pantallas muy pequeñas */
        line-height: 1.3em;
    }
    
    .solicitud-demo-form p,
    .solicitud-demo-form .form-text {
        font-size: 14px;
        line-height: 1.65em;
    }
}

/* Estilos para select personalizado */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%236c5ce7' d='M2 0L0 2h4zM2 5L0 3h4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}

/* Validación visual */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input.success,
.form-group select.success,
.form-group textarea.success {
    border-color: #28a745;
}

/* Estilos para contador de caracteres */
.char-counter {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    margin-top: 5px;
    color: #666;
}

.text-warning {
    color: #856404;
}

.text-danger {
    color: #721c24;
}

/* Estilos para mensajes de error */
.error-text {
    color: #721c24;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    margin-top: 5px;
}

/* Estilos para placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
    font-family: 'Poppins', sans-serif;
    color: #999999 !important;
}

/* Estilos adicionales para mejorar la consistencia tipográfica */
.form-group optgroup {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.form-group option {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}