/* ==========================================================================
   Adhequim Contact Form Addon Stylesheet
   ========================================================================== */

/* Wrapper Principal (Tarjeta de Fondo) */
.adhequim-form-wrapper {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #0c142c 0%, #070c1a 100%);
    display: grid;
    grid-template-columns: 1fr 1px 1.2fr;
    gap: 56px;
    padding: 64px;
    box-sizing: border-box;
    align-items: center;
    color: #ffffff;
    overflow: hidden;
}

/* Columna Izquierda: Información */
.adhequim-form-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
}

.adhequim-form-left-title {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.adhequim-form-left-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.625;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 36px 0;
    text-wrap: balance;
}

/* Insignia / Beneficio */
.adhequim-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 20px;
    border-radius: 50px;
    box-sizing: border-box;
}

.adhequim-form-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background-color: rgba(59, 130, 246, 0.12);
    border-radius: 50%;
    flex-shrink: 0;
}

.adhequim-form-badge-icon i,
.adhequim-form-badge-icon svg {
    color: #3b82f6;
    fill: #3b82f6;
    font-size: 12px;
    width: 1em;
    height: 1em;
}

.adhequim-form-badge span {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

/* Línea Divisoria Vertical */
.adhequim-form-divider {
    background-color: rgba(255, 255, 255, 0.08);
    width: 1px;
    align-self: stretch;
    height: 100%;
}

/* Columna Derecha: Formulario */
.adhequim-form-right-col {
    width: 100%;
    box-sizing: border-box;
}

.adhequim-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.adhequim-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-sizing: border-box;
}

.adhequim-form-group-full {
    grid-column: span 2;
}

.adhequim-form-group label {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1;
}

/* Entradas de Datos (Inputs) */
.adhequim-form-group input,
.adhequim-form-group textarea {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border-radius: 12px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.adhequim-form-group input::placeholder,
.adhequim-form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Enfoque en los inputs (Focus State) */
.adhequim-form-group input:focus,
.adhequim-form-group textarea:focus {
    border-color: #3b82f6;
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Evitar redimensionado libre del textarea */
.adhequim-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ==========================================================================
   Botón de Enviar
   ========================================================================== */
.adhequim-form-submit-wrapper {
    width: 100%;
}

.adhequim-form-submit-btn {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    background-color: #1d4ed8;
    border: 1px solid #1d4ed8;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
    box-sizing: border-box;
}

.adhequim-form-submit-btn:hover:not(:disabled) {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

/* Botón Desactivado (Cargando) */
.adhequim-form-submit-btn:disabled {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: transparent !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

.adhequim-submit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.adhequim-submit-icon i,
.adhequim-submit-icon svg {
    font-size: 13px;
    width: 1em;
    height: 1em;
    fill: currentColor;
}

/* Icono cargando (Spinner) */
.adhequim-btn-spinner {
    position: absolute;
    right: 32px;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: adhequim-spin 0.8s linear infinite;
    display: inline-block;
}

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

/* ==========================================================================
   Alertas de Feedback (AJAX)
   ========================================================================== */
.adhequim-form-feedback {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
    box-sizing: border-box;
}

/* Envíos correctos */
.adhequim-form-feedback-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* Errores */
.adhequim-form-feedback-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .adhequim-form-wrapper {
        padding: 48px;
        gap: 36px;
    }
    
    .adhequim-form-left-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    /* Pasamos a diseño de 1 columna vertical */
    .adhequim-form-wrapper {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 48px 32px;
    }
    
    .adhequim-form-divider {
        display: none;
    }
    
    .adhequim-form-left-title {
        font-size: 28px;
    }
    
    .adhequim-form-left-desc {
        margin-bottom: 24px;
    }
}

@media (max-width: 480px) {
    .adhequim-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .adhequim-form-group-full {
        grid-column: span 1;
    }
    
    .adhequim-form-wrapper {
        padding: 36px 20px;
    }
    
    .adhequim-btn-spinner {
        right: 20px;
    }
}
