/**
 * GMoney Libro de Reclamaciones - Frontend Styles
 * Diseño corporativo, moderno, accesible y 100% responsivo adaptado a la identidad de GMoney.
 */

/* ==========================================================================
   1. CONTENEDOR PRINCIPAL Y ENVOLTORIO
   ========================================================================== */
.gmoney-reclamaciones-wrapper {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'HelveticaNowDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #182b39;
}

.gmoney-reclamaciones-form {
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   2. SISTEMA DE CUADRÍCULA (GRID RESPONSIVE)
   ========================================================================== */
.reclamaciones-section-wrapper {
    margin-bottom: 28px;
}

.reclamaciones-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #182b39;
    margin: 0 0 18px 0;
    line-height: 1.25;
}

.reclamaciones-grid-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -8px;
    margin-right: -8px;
    margin-bottom: 16px;
}

.reclamaciones-col {
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.reclamaciones-col.col-12 { width: 100%; }
.reclamaciones-col.col-6  { width: 50%; }
.reclamaciones-col.col-4  { width: 33.333333%; }

.reclamaciones-field-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.reclamaciones-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #182b39;
    margin-bottom: 6px;
    line-height: 1.3;
}

.reclamaciones-label .required-mark {
    color: #e11d48;
    margin-left: 2px;
}

.reclamaciones-label .optional-mark {
    color: #64748b;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

/* ==========================================================================
   3. ESTILOS DE CAMPOS (INPUTS, SELECTS, TEXTAREAS)
   ========================================================================== */
.reclamaciones-input-field,
.reclamaciones-select-field,
.reclamaciones-textarea-field {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 14px;
    color: #111827;
    background-color: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    font-weight: 400;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.reclamaciones-input-field::placeholder,
.reclamaciones-select-field::placeholder,
.reclamaciones-textarea-field::placeholder {
    color: #475569;
    opacity: 0.85;
    font-size: 14px;
}

.reclamaciones-input-field:focus,
.reclamaciones-select-field:focus,
.reclamaciones-textarea-field:focus {
    border-color: #0075f4;
    box-shadow: 0 0 0 3px rgba(0, 117, 244, 0.15);
    outline: none;
}

/* Select Chevron Indicator Icon */
select.reclamaciones-select-field,
.reclamaciones-select-field {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 16px 16px !important;
    padding-right: 42px !important;
    cursor: pointer;
}

select.reclamaciones-select-field::-ms-expand {
    display: none;
}

.reclamaciones-select-field option:disabled {
    color: #94a3b8 !important;
}

.reclamaciones-textarea-field {
    height: auto;
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

/* ==========================================================================
   4. ZONA DE CARGA DE ARCHIVOS (DRAG & DROP DROPZONE)
   ========================================================================== */
.reclamaciones-dropzone {
    width: 100%;
    min-height: 110px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    text-align: center;
    position: relative;
}

.reclamaciones-dropzone:hover,
.reclamaciones-dropzone.is-dragover {
    border-color: #0075f4;
    background-color: #eff6ff;
}

.reclamaciones-file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dropzone-icon {
    width: 36px;
    height: 36px;
    color: #64748b;
    margin-bottom: 8px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.reclamaciones-dropzone:hover .dropzone-icon {
    color: #0075f4;
    transform: translateY(-2px);
}

.dropzone-text {
    font-size: 14px;
    color: #334155;
    font-weight: 500;
}

.dropzone-browse-text {
    color: #0075f4;
    text-decoration: underline;
    font-weight: 600;
}

.dropzone-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

.dropzone-file-selected {
    margin-top: 8px;
    display: none;
    align-items: center;
    gap: 8px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   5. CASILLA DE POLÍTICAS DE PROTECCIÓN DE DATOS
   ========================================================================== */
.reclamaciones-consent-group {
    margin-top: 18px;
    margin-bottom: 24px;
}

.reclamaciones-consent-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    font-size: 14.5px;
    color: #111827;
    margin: 0;
    position: relative;
}

.reclamaciones-consent-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
    margin: 0;
}

.reclamaciones-custom-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border: 1.5px solid #d1d5db;
    border-radius: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
}

.reclamaciones-consent-label:hover .reclamaciones-custom-check {
    border-color: #0075f4;
}

.reclamaciones-consent-checkbox:checked ~ .reclamaciones-custom-check {
    background-color: #0075f4;
    border-color: #0075f4;
}

.reclamaciones-custom-check:after {
    content: "";
    display: none;
    position: absolute;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

.reclamaciones-consent-checkbox:checked ~ .reclamaciones-custom-check:after {
    display: block;
}

.reclamaciones-consent-checkbox:focus-visible ~ .reclamaciones-custom-check {
    box-shadow: 0 0 0 3px rgba(0, 117, 244, 0.2);
}

.reclamaciones-consent-text {
    font-size: 14.5px;
    color: #111827;
    line-height: 1.45;
}

.reclamaciones-privacy-link,
.gmoney-reclamaciones-wrapper a.reclamaciones-privacy-link,
.gmoney-reclamaciones-wrapper .reclamaciones-consent-text a {
    color: #0075f4 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.reclamaciones-privacy-link:hover,
.gmoney-reclamaciones-wrapper a.reclamaciones-privacy-link:hover,
.gmoney-reclamaciones-wrapper .reclamaciones-consent-text a:hover {
    color: #005ec4 !important;
}

/* ==========================================================================
   6. BOTÓN DE ENVÍO Y SPINNER DE CARGA
   ========================================================================== */
.reclamaciones-submit-wrapper {
    margin-top: 24px;
    text-align: left;
}

.elementor-widget-gmoney_libro_reclamaciones.reclamaciones-btn-align-justify .reclamaciones-submit-btn,
.reclamaciones-btn-align-justify .reclamaciones-submit-btn {
    width: 100% !important;
}

.reclamaciones-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 14px 38px;
    background-color: #1c2836;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.reclamaciones-submit-btn:hover {
    background-color: #0075f4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 117, 244, 0.25);
}

.reclamaciones-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.btn-spinner {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-icon {
    width: 22px;
    height: 22px;
    animation: rotate-spinner 1s linear infinite;
}

.spinner-icon .path {
    stroke: #ffffff;
    stroke-linecap: round;
    animation: dash-spinner 1.5s ease-in-out infinite;
}

@keyframes rotate-spinner {
    100% { transform: rotate(360deg); }
}

@keyframes dash-spinner {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* ==========================================================================
   7. MENSAJES DE RESPUESTA (ÉXITO / ERROR)
   ========================================================================== */
.reclamaciones-response-msg {
    margin-top: 24px;
    padding: 24px 28px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.6;
    box-sizing: border-box;
}

.reclamaciones-response-msg.success {
    background-color: #f0f7ff;
    border: 1.5px solid #bfdbfe;
    border-left: 5px solid #0075f4;
    color: #182b39;
    box-shadow: 0 4px 14px rgba(0, 117, 244, 0.08);
}

.reclamaciones-response-msg.error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 5px solid #ef4444;
    color: #991b1b;
}

.response-msg-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #dbeafe;
    color: #0075f4;
    margin-bottom: 12px;
}

.response-msg-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.response-msg-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #0075f4;
}

.response-msg-desc {
    margin: 0 0 16px 0;
    color: #182b39;
    font-size: 14.5px;
    line-height: 1.55;
}

.tracking-code-badge {
    display: inline-block;
    background-color: #0075f4;
    color: #ffffff;
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 8px;
    letter-spacing: 0.06em;
    box-shadow: 0 3px 10px rgba(0, 117, 244, 0.28);
}

.tracking-code-hint {
    margin-top: 10px;
    font-size: 13px;
    color: #475569;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (TABLETS Y SMARTPHONES)
   ========================================================================== */
@media (max-width: 1024px) {
    .reclamaciones-col.col-4 {
        width: 50%;
    }
}

@media (max-width: 767px) {
    .reclamaciones-grid-row {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 0;
    }

    .reclamaciones-col.col-12,
    .reclamaciones-col.col-6,
    .reclamaciones-col.col-4 {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 14px;
    }

    .reclamaciones-section-title {
        font-size: 1.25rem;
        margin-bottom: 14px;
    }

    .reclamaciones-submit-btn {
        width: 100%;
        padding: 16px 20px;
    }

    .reclamaciones-response-msg {
        padding: 18px 20px;
    }

    .tracking-code-badge {
        font-size: 13px;
        word-break: break-all;
    }
}

/* Control de Visibilidad y Ocultación de Badge Google reCAPTCHA v3 */
body.gmoney-hide-recaptcha-badge .grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.gmoney-recaptcha-disclaimer {
    font-size: 11.5px;
    color: #64748b;
    margin-top: 12px;
    line-height: 1.45;
    text-align: center;
}

.gmoney-recaptcha-disclaimer a {
    color: #0075f4 !important;
    text-decoration: underline !important;
}

