/**
 * GMoney Sesión Técnica - Stylesheet
 * Faithful visual reproduction of the corporate mockup
 * Author: Valsan Fox
 * Text Domain: gmoney-sesion-tecnica
 */

/* ====================================================
   1. MAIN CONTAINER / CARD
   ==================================================== */
.gmoney-sesion-card {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 1.5px solid #3288ff;
    border-radius: 28px;
    padding: 46px 46px 42px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 117, 244, 0.04);
    font-family: 'Helvetica Now Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
}

/* ====================================================
   2. TITLE
   ==================================================== */
.gmoney-sesion-title {
    font-family: inherit;
    font-size: 26px;
    font-weight: 700;
    color: #142838;
    text-align: center;
    margin: 0 0 30px 0;
    line-height: 1.25;
    letter-spacing: -0.3px;
}

/* ====================================================
   3. GRID SYSTEM & RESPONSIVE LAYOUT
   ==================================================== */
.gmoney-sesion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    width: 100%;
    box-sizing: border-box;
}

.gmoney-sesion-col {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.gmoney-sesion-col-full {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}

/* RESPONSIVE: STRICT 1 COLUMN LAYOUT */
@media (max-width: 768px) {
    .gmoney-sesion-card {
        padding: 30px 20px 28px;
        border-radius: 22px;
        max-width: 100%;
    }

    .gmoney-sesion-title {
        font-size: 22px;
        margin-bottom: 22px;
    }

    .gmoney-sesion-grid {
        grid-template-columns: 100% !important;
        gap: 14px;
    }

    .gmoney-sesion-col-full {
        grid-column: 1 / -1 !important;
        width: 100% !important;
    }
}

/* ====================================================
   4. FIELD GROUPS & INPUTS (PILL STYLING)
   ==================================================== */
.gmoney-sesion-field-group {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.gmoney-sesion-input {
    width: 100%;
    height: 52px;
    background-color: #e7eff2;
    border: 1.5px solid transparent;
    border-radius: 50px;
    padding: 0 24px;
    font-family: inherit;
    font-size: 15px;
    line-height: normal;
    color: #182b39;
    box-sizing: border-box;
    outline: none;
    transition: all 0.22s ease-in-out;
}

.gmoney-sesion-input::placeholder {
    color: #7f92a0;
    opacity: 1;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: normal;
}

.gmoney-sesion-input::-webkit-input-placeholder {
    color: #7f92a0;
    opacity: 1;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: normal;
}

.gmoney-sesion-input::-moz-placeholder {
    color: #7f92a0;
    opacity: 1;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: normal;
}

.gmoney-sesion-input:-ms-input-placeholder {
    color: #7f92a0;
    opacity: 1;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: normal;
}

.gmoney-sesion-input:focus {
    border-color: #0075f4;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 117, 244, 0.12);
}

.gmoney-sesion-input.is-invalid {
    border-color: #e53935 !important;
    background-color: #fff9f9 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1) !important;
}

/* ====================================================
   5. INTL-TEL-INPUT CUSTOMIZATION
   ==================================================== */
.gmoney-sesion-phone-group .iti {
    width: 100%;
    display: block;
}

.gmoney-sesion-phone-group .iti--separate-dial-code .iti__selected-flag {
    background-color: transparent !important;
    border-radius: 50px 0 0 50px;
    padding: 0 10px 0 20px;
    outline: none;
}

.gmoney-sesion-phone-group .iti__selected-dial-code {
    font-family: inherit;
    font-size: inherit;
    font-weight: 500;
    color: #182b39;
    margin-left: 6px;
}

.gmoney-sesion-phone-group .iti--separate-dial-code .gmoney-sesion-phone-input {
    padding-left: 96px !important;
}

.gmoney-sesion-phone-group .iti__arrow {
    border-top-color: #7f92a0;
    margin-left: 6px;
}

.gmoney-sesion-phone-group .iti__arrow--up {
    border-bottom-color: #0075f4;
}

.gmoney-sesion-phone-group .iti__country-list {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2ebf0;
    z-index: 1000;
    max-height: 240px;
    margin-top: 6px;
}

/* ====================================================
   6. CUSTOM SELECT DROPDOWNS
   ==================================================== */
.gmoney-sesion-select-box {
    position: relative;
    user-select: none;
}

.gmoney-sesion-select-trigger {
    width: 100%;
    height: 52px;
    background-color: #e7eff2;
    border: 1.5px solid transparent;
    border-radius: 50px;
    padding: 0 20px 0 24px;
    font-family: inherit;
    font-size: 15px;
    color: #182b39;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    outline: none;
    transition: all 0.22s ease-in-out;
}

.gmoney-sesion-select-box.is-open .gmoney-sesion-select-trigger {
    border-color: #0075f4;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 117, 244, 0.12);
}

.gmoney-sesion-select-box.is-invalid .gmoney-sesion-select-trigger {
    border-color: #e53935 !important;
    background-color: #fff9f9 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1) !important;
}

.gmoney-sesion-select-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 12px;
    font-weight: 400;
    font-size: inherit;
    font-family: inherit;
}

.gmoney-sesion-select-text.gmoney-sesion-select-placeholder {
    color: #7f92a0;
}

.gmoney-sesion-select-text.has-value {
    color: #182b39;
    font-weight: 500;
}

.gmoney-sesion-select-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gmoney-sesion-clear-btn {
    background: transparent;
    border: none;
    color: #0075f4;
    font-size: 20px;
    line-height: 1;
    font-weight: 400;
    cursor: pointer;
    padding: 2px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, transform 0.15s ease;
}

.gmoney-sesion-clear-btn:hover {
    color: #005ec4;
    transform: scale(1.15);
}

.gmoney-sesion-chevron {
    transition: transform 0.25s ease;
    display: block;
    flex-shrink: 0;
}

.gmoney-sesion-select-box.is-open .gmoney-sesion-chevron {
    transform: rotate(180deg);
    stroke: #0075f4;
}

/* Floating Dropdown Menu */
.gmoney-sesion-dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border: 1.5px solid #dce5ec;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 230px;
    overflow-y: auto;
    padding: 6px 0;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
}

.gmoney-sesion-dropdown-list::-webkit-scrollbar {
    width: 6px;
}

.gmoney-sesion-dropdown-list::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 6px;
}

.gmoney-sesion-dropdown-option {
    padding: 10px 22px;
    font-size: inherit;
    color: #182b39;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.gmoney-sesion-dropdown-option:hover {
    background-color: #f0f6ff;
    color: #0075f4;
    font-weight: 600;
}

.gmoney-sesion-dropdown-option.is-selected {
    background-color: #e5f1ff;
    color: #0075f4;
    font-weight: 600;
}

/* ====================================================
   7. CONSENT CHECKBOX
   ==================================================== */
.gmoney-sesion-consent-group {
    margin-top: 4px;
    width: 100%;
}

.gmoney-sesion-consent-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.gmoney-sesion-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.gmoney-custom-check-box {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border-radius: 6px;
    background-color: #e7eff2;
    border: 1.5px solid #c4d5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
}

.gmoney-custom-check-box svg {
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.gmoney-sesion-checkbox-input:checked + .gmoney-custom-check-box {
    background-color: #0075f4;
    border-color: #0075f4;
}

.gmoney-sesion-checkbox-input:checked + .gmoney-custom-check-box svg {
    opacity: 1;
    transform: scale(1);
}

.gmoney-sesion-consent-group.is-invalid .gmoney-custom-check-box {
    border-color: #e53935 !important;
    background-color: #fff9f9 !important;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15) !important;
}

.gmoney-sesion-consent-label {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.45;
    color: #182b39;
    flex: 1;
}

.gmoney-sesion-privacy-link {
    color: #182b39;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.gmoney-sesion-privacy-link:hover {
    color: #0075f4;
}

/* ====================================================
   8. SUBMIT BUTTON
   ==================================================== */
.gmoney-sesion-action-group {
    margin-top: 8px;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.gmoney-sesion-card .gmoney-sesion-submit-btn,
.gmoney-sesion-action-group .gmoney-sesion-submit-btn,
.gmoney-sesion-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    flex: 1 1 100% !important;
    height: 54px;
    background-color: #0075f4;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    cursor: pointer;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    padding: 0 32px;
    box-sizing: border-box !important;
    box-shadow: 0 6px 18px rgba(0, 117, 244, 0.28);
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    text-align: center;
}

.gmoney-sesion-submit-btn .gmoney-sesion-btn-text {
    display: inline-block;
    text-align: center;
}

.gmoney-sesion-submit-btn:hover {
    background-color: #005ec4;
    box-shadow: 0 8px 24px rgba(0, 117, 244, 0.38);
    transform: translateY(-1px);
}

.gmoney-sesion-submit-btn:active {
    transform: translateY(0);
}

.gmoney-sesion-submit-btn:disabled {
    background-color: #a3cdf7 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Spinner */
.gmoney-sesion-spinner {
    animation: gmoney-rotate 1.5s linear infinite;
    width: 22px;
    height: 22px;
}

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

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

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

/* ====================================================
   9. ALERTS & SUCCESS CONFIRMATION STATE
   ==================================================== */
.gmoney-sesion-alert-box {
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 20px;
    text-align: center;
    animation: gmoney-fadeIn 0.25s ease-in-out;
}

.gmoney-sesion-alert-box.alert-error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.gmoney-sesion-alert-box.alert-success {
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.gmoney-sesion-success-box {
    text-align: center;
    padding: 30px 10px;
    animation: gmoney-fadeIn 0.35s ease-in-out;
}

.gmoney-sesion-success-badge {
    width: 68px;
    height: 68px;
    background-color: #0075f4;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 117, 244, 0.3);
}

.gmoney-sesion-success-title {
    font-family: inherit;
    font-size: 24px;
    font-weight: 700;
    color: #142838;
    margin: 0 0 12px 0;
}

.gmoney-sesion-success-subtitle {
    font-family: inherit;
    font-size: 15px;
    line-height: 1.55;
    color: #5d7182;
    margin: 0;
}

@keyframes gmoney-fadeIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
