/* ============================================
   STONEGAL CONTACT FORM STYLES
   Manteniendo misma estética que A100/A200
   ============================================ */

.stonegal-contact-form {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.contact-title {
    color: #333;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #000;
    text-align: center;
}

/* Form Grid */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 20px;
}

.contact-col {
    flex: 1;
    min-width: 250px;
}

.contact-col-full {
    flex: 100%;
}

/* Labels */
.stonegal-contact-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.stonegal-contact-form label span {
    color: #d32f2f;
    margin-left: 3px;
}

/* Inputs, selects, textareas */
.stonegal-contact-form input[type="text"],
.stonegal-contact-form input[type="email"],
.stonegal-contact-form input[type="tel"],
.stonegal-contact-form select,
.stonegal-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease;
}

.stonegal-contact-form input:focus,
.stonegal-contact-form select:focus,
.stonegal-contact-form textarea:focus {
    outline: none;
    border-color: #666;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

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

/* Checkboxes */
.contact-checkbox {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.contact-checkbox:hover {
    background: #f0f0f0;
}

.contact-checkbox.contact-required {
    background: #fff8e1;
    border-left: 3px solid #ff9800;
}

.contact-checkbox.contact-required:hover {
    background: #fff3cd;
}

.contact-checkbox input[type="checkbox"] {
    margin-top: 3px;
    margin-right: 10px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.contact-checkbox span {
    flex: 1;
    line-height: 1.4;
    color: #555;
    font-size: 14px;
}

.contact-checkbox a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contact-checkbox a:hover {
    text-decoration: underline;
}

/* Botón de envío */
.contact-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.contact-btn {
    display: inline-block;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.contact-btn--primary {
    background: #000;
    color: #fff;
    min-width: 200px;
}

.contact-btn--primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

/* Contenedor de mensajes */
#contact-message-container {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Contenedor de errores */
#contact-errors-container {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
}

/* Campos con error */
.stonegal-contact-form input.error,
.stonegal-contact-form select.error,
.stonegal-contact-form textarea.error {
    border-color: #d32f2f;
    background: #fff5f5;
}

/* Responsive */
@media (max-width: 768px) {
    .stonegal-contact-form {
        padding: 20px;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-col {
        min-width: 100%;
    }
    
    .contact-btn--primary {
        width: 100%;
    }
}