/* * CreaForm Pro - Estilo Vanguardista Profesional (Versión Responsive)
 * Palette: Navy #1a3a5f, Emerald #10b981, Slate #64748b 
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

#creaform-container {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    background: #f8fafc;
}

.vanguard-form {
    background: #ffffff;
    width: 100%;
    max-width: 850px;
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
    overflow: hidden;
    box-sizing: border-box; /* Asegura que el padding no rompa el ancho */
}

/* Línea decorativa superior profesional */
.vanguard-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #1a3a5f 0%, #10b981 100%);
}

.form-title {
    color: #1a3a5f;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: -0.025em;
}

.form-subtitle {
    color: #64748b;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
    line-height: 1.6;
}

/* Grid de campos optimizado */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columnas por defecto */
    gap: 24px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 8px;
    margin-left: 4px;
}

.vanguard-form input, 
.vanguard-form select {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: #1e293b;
    background-color: #fcfcfd;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    box-sizing: border-box;
}

.vanguard-form input:focus, 
.vanguard-form select:focus {
    outline: none;
    border-color: #1a3a5f;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(26, 58, 95, 0.1);
    transform: translateY(-1px);
}

/* Sección de ubicación destacada */
.community-section {
    background: #f1f5f9;
    padding: 30px;
    border-radius: 18px;
    margin-top: 20px;
}

.community-section h3 {
    font-size: 1.1rem;
    color: #1a3a5f;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Botón Vanguardista Profesional */
#submit-btn {
    width: 100%;
    padding: 18px;
    margin-top: 30px;
    background: #1a3a5f;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 15px -3px rgba(26, 58, 95, 0.3);
}

#submit-btn:hover {
    background: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.3);
}

/* 📱 RESPONSIVE - MEDIA QUERIES QUIRÚRGICAS */

@media (max-width: 768px) {
    .vanguard-form {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Colapsa a 1 columna en tablets/móviles */
        gap: 18px;
    }

    .form-title {
        font-size: 1.6rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .community-section {
        padding: 20px;
    }

    #submit-btn {
        padding: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #creaform-container {
        padding: 10px;
    }

    .form-title {
        font-size: 1.4rem;
    }

    .vanguard-form input, 
    .vanguard-form select {
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Mensajes de respuesta */
#form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.response-success { background: #dcfce7; color: #166534; display: block !important; }
.response-error { background: #fee2e2; color: #991b1b; display: block !important; }