/* Formulario de Consultas con Efecto Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* --- Efecto Glassmorphism (Cristal) para Formulario --- */
#acu-course-form {
    /* Fondo transparente con efecto cristal */
    background: rgba(255, 255, 255, 0.25) !important;
    
    /* El desenfoque del fondo */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    
    /* Borde sutil */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 20px;
    max-width: 550px;
    margin: 14px auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 
        0 20px 40px rgba(31, 38, 135, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

/* Efecto de gradiente sutil de fondo */
#acu-course-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.05) 0%, 
        rgba(255, 107, 107, 0.05) 50%, 
        rgba(46, 213, 115, 0.05) 100%);
    border-radius: 20px;
    z-index: -1;
}

/* Layout de filas más compacto */
.acu-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

/* Grupos de formulario con labels flotantes */
.acu-form-group {
    position: relative;
    margin-bottom: 14px;
}

/* Inputs con efecto glassmorphism sutil */
#acu-course-form input[type="text"],
#acu-course-form input[type="email"],
#acu-course-form input[type="tel"],
#acu-course-form textarea {
    width: 100%;
    padding: 14px 16px 7px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    height: 48px;
}

/* Selects con estilo diferente - más padding top para el label */
#acu-course-form select {
    width: 100%;
    padding: 28px 36px 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: #6c5ce7;
    text-shadow: none;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    height: 58px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236c5ce7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 14px;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

/* Select cuando tiene valor seleccionado */
#acu-course-form select:not([value=""]):not(:invalid) {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Select cuando se selecciona una opción válida */
#acu-course-form .acu-form-group.has-value select {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #2c3e50 !important;
    text-shadow: none !important;
}

#acu-course-form textarea {
    height: auto;
    min-height: 35px;
    resize: vertical;
    padding-top: 18px;
}

/* Fondo blanco sólido cuando los campos tienen contenido para mejor contraste */
#acu-course-form .acu-form-group.has-value input[type="text"],
#acu-course-form .acu-form-group.has-value input[type="email"],
#acu-course-form .acu-form-group.has-value input[type="tel"],
#acu-course-form .acu-form-group.has-value textarea {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #2c3e50 !important;
    text-shadow: none !important;
}

/* Labels flotantes DENTRO del input - SOLO para inputs de texto */
#acu-course-form .acu-form-group:not(:has(select)) label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 500;
    color: rgb(143, 128, 237);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2;
    padding: 0 4px;
    background: transparent;
    white-space: nowrap;
    max-width: calc(100% - 36px);
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Labels FIJOS para selects - siempre arriba y FUERA del select */
.acu-form-group:has(select) label {
    position: absolute;
    top: -12px;
    left: 14px;
    transform: none;
    font-size: 10px;
    font-weight: 600;
    color: #6c5ce7;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 3px 8px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
    z-index: 3;
    pointer-events: none;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

/* Labels para selects deshabilitados */
.acu-form-group:has(select[disabled]) label {
    color: #95a5a6;
    background: rgba(255, 255, 255, 0.7);
}

/* Label para textarea */
.acu-form-group:has(textarea) label {
    top: 22px;
    transform: none;
}

/* FOCUS-WITHIN para activar labels en inputs - MAS ESPECÍFICO */
.acu-form-group:focus-within:not(:has(select)) label {
    top: -7px !important;
    left: 14px;
    transform: none !important;
    font-size: 10px;
    font-weight: 600;
    color: #6c5ce7;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 2px 7px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
}

/* Animación de label cuando input tiene focus o contenido - SOLO para inputs de texto */
#acu-course-form input[type="text"]:focus + label,
#acu-course-form input[type="email"]:focus + label,
#acu-course-form input[type="tel"]:focus + label,
#acu-course-form input[type="text"]:not(:placeholder-shown) + label,
#acu-course-form input[type="email"]:not(:placeholder-shown) + label,
#acu-course-form input[type="tel"]:not(:placeholder-shown) + label,
#acu-course-form textarea:focus + label,
#acu-course-form .acu-form-group.has-value:not(:has(select)) label {
    top: -7px !important;
    left: 14px;
    transform: none !important;
    font-size: 10px;
    font-weight: 600;
    color: #6c5ce7;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 6px;
    padding: 2px 7px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.15);
}

/* Label para textarea en estado flotante */
.acu-form-group:has(textarea):focus-within label,
.acu-form-group:has(textarea).has-value label {
    top: -7px !important;
    transform: none !important;
}

/* Estados de focus más modernos */
#acu-course-form input:focus,
#acu-course-form select:focus,
#acu-course-form textarea:focus {
    border-color: #6c5ce7;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 
        0 0 0 4px rgba(108, 92, 231, 0.08),
        0 12px 40px rgba(108, 92, 231, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
    outline: none;
    transform: translateY(-1px);
}

/* Placeholder visible en gris para mejor legibilidad */
#acu-course-form input::placeholder,
#acu-course-form textarea::placeholder {
    color: rgba(108, 92, 231, 0.4);
    opacity: 1;
}

/* Select deshabilitado más moderno */
#acu-course-form select[disabled] {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #95a5a6;
    cursor: not-allowed;
    backdrop-filter: blur(8px);
}

/* Labels para selects deshabilitados */
.acu-form-group:has(select[disabled]) label {
    color: #95a5a6;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(149, 165, 166, 0.3);
}

/* Mejorar contraste del texto en selects */
#acu-course-form select option {
    background: #fff;
    color: #2c3e50;
    padding: 8px;
    font-weight: 500;
}

#acu-course-form select:focus option:checked,
#acu-course-form select option:checked {
    background: #6c5ce7;
    color: #fff;
}

/* Botón moderno con gradiente más compacto */
.acu-submit-button {
    background: linear-gradient(135deg, #E94546 0%, #d63839 100%);
    color: white;
    padding: 12px 28px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    box-shadow: 
        0 12px 28px rgba(233, 69, 70, 0.25),
        0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.acu-submit-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.acu-submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 20px 40px rgba(233, 69, 70, 0.35),
        0 8px 16px rgba(0, 0, 0, 0.15);
}

.acu-submit-button:hover::before {
    left: 100%;
}

.acu-submit-button:active {
    transform: translateY(0px);
    transition: all 0.1s;
}

.acu-submit-button:disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive: dispositivos móviles */
@media (max-width: 768px) {
    #acu-course-form {
        margin: 12px;
        padding: 18px;
        border-radius: 18px;
    }
    
    .acu-form-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .acu-form-group {
        margin-bottom: 14px;
    }
    
    #acu-course-form input[type="text"],
    #acu-course-form input[type="email"],
    #acu-course-form input[type="tel"],
    .acu-submit-button {
        height: 46px;
    }
    
    #acu-course-form select {
        height: 56px;
    }
    
    /* Ajustar padding del select en móviles */
    #acu-course-form select {
        padding: 26px 32px 7px 16px;
        font-size: 13px;
        line-height: 1.2;
    }
    
    /* Ajustar labels en móviles */
    .acu-form-group:has(select) label {
        top: -11px;
        font-size: 9px;
        padding: 2px 7px;
    }
}

/* Estilos para mensajes de estado */
.acu-form-message {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    position: relative;
    animation: slideInDown 0.5s ease-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.acu-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-left: 5px solid #28a745;
}

.acu-form-message.success::before {
    content: "✓ ";
    font-weight: bold;
    margin-right: 8px;
}

.acu-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #dc3545;
}

.acu-form-message.error::before {
    content: "⚠ ";
    font-weight: bold;
    margin-right: 8px;
}

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

/* Responsivo */
@media (max-width: 600px) {
    .acu-form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Ocultar selector de subcategoría cuando solo hay una opción */
.acu-form-group[style*="display: none"] {
    display: none !important;
    margin: 0 !important;
    height: 0 !important;
    overflow: hidden;
}

/* === Estilos para Información Bancaria === */
.acu-bank-info {
    background: linear-gradient(135deg, rgba(46, 213, 115, 0.35) 0%, rgba(0, 184, 148, 0.35) 100%);
    border: 2px solid rgba(46, 213, 115, 0.5);
    border-radius: 14px;
    padding: 14px;
    margin: 14px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(46, 213, 115, 0.2);
    animation: slideInBank 0.3s ease-out;
}

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

.acu-bank-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(46, 213, 115, 0.4);
}

.acu-bank-info-header .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #2ed573;
}

.acu-bank-info-header h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.acu-bank-info-content {
    color: #ffffff;
}

.acu-bank-price {
    font-size: 14px;
    font-weight: 700;
    color: #00b894;
    margin: 0 0 12px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.acu-bank-price strong {
    font-size: 11px;
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.acu-bank-price span {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
}

.acu-bank-instruction {
    font-size: 11px;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    line-height: 1.4;
}

.acu-bank-copy-hint {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin: -5px 0 10px 0;
    text-align: center;
}

.acu-bank-details {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}

.acu-bank-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.acu-bank-detail:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.acu-bank-detail strong {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.acu-bank-detail span {
    color: #ffffff;
    font-weight: 600;
    font-size: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
}

.acu-bank-cbu,
.acu-bank-alias,
.acu-bank-account {
    padding: 4px 8px;
    background: rgba(46, 213, 115, 0.35);
    border-radius: 6px;
    border: 1px solid rgba(46, 213, 115, 0.5);
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.acu-bank-cbu:hover,
.acu-bank-alias:hover,
.acu-bank-account:hover {
    background: rgba(46, 213, 115, 0.5);
    border-color: rgba(46, 213, 115, 0.7);
    transform: translateY(-1px);
}

.acu-bank-cbu::after,
.acu-bank-alias::after,
.acu-bank-account::after {
    content: "📋";
    opacity: 0.7;
    font-size: 10px;
}

.acu-bank-cbu:active,
.acu-bank-alias:active,
.acu-bank-account:active {
    transform: scale(0.98);
}

/* Tooltip para indicar que se copió */
.acu-bank-copied {
    position: relative;
}

.acu-bank-copied::before {
    content: "¡Copiado!";
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(46, 213, 115, 0.95);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    animation: fadeInOut 1.5s ease;
    pointer-events: none;
    z-index: 10;
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
    20% { opacity: 1; transform: translateX(-50%) translateY(0); }
    80% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-5px); }
}

.acu-bank-note {
    margin: 10px 0 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    text-align: center;
    padding: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    line-height: 1.3;
}

/* Responsive para información bancaria */
@media (max-width: 768px) {
    .acu-bank-info {
        padding: 12px;
        margin: 12px 0;
    }
    
    .acu-bank-info-header h3 {
        font-size: 12px;
    }
    
    .acu-bank-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 0;
    }
    
    .acu-bank-detail span {
        font-size: 11px;
        word-break: break-all;
    }
    
    .acu-bank-price {
        font-size: 13px;
        padding: 8px;
    }
    
    .acu-bank-price span {
        font-size: 15px;
    }
    
    .acu-bank-instruction {
        font-size: 10px;
    }
}
