@import url('https://fonts.googleapis.com/css2?family=Anton&family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ==========================================================================
   Vinguele - Modal Unifié de Paiement (Ticket, Vote, Cagnotte, Inscription)
   Design System aligné sur les maquettes officielles
   ========================================================================== */

/* Body lock when modal is open */
body.vg-modal-open {
    overflow: hidden !important;
}

/* Modal Fullscreen (100% écran desktop et mobile) */
.vg-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: #FFFFFF;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vg-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Dialog Container - 100% de l'écran */
.vg-modal-dialog {
    width: 100%;
    min-height: 100vh;
    height: auto;
    max-width: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
}

.vg-modal-backdrop.active .vg-modal-dialog {
    transform: none;
}

/* Modal Content - Plein écran avec contenu centré */
.vg-modal-content {
    position: relative;
    background: #FFFFFF;
    border-radius: 0;
    padding: 40px 24px 60px 24px;
    box-shadow: none;
    border: none;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    color: #0F172A;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Close Button */
.vg-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.vg-modal-close:hover {
    background: #E2E8F0;
    color: #0F172A;
    transform: rotate(90deg);
}

/* Header */
.vg-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-right: 40px;
}

.vg-header-icon-wrap {
    flex-shrink: 0;
}

.vg-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vg-icon-box.icon-ticket {
    background: #FFF1F2;
    color: #FF007A;
}

.vg-icon-box.icon-vote {
    background: #FFFBEB;
    color: #F59E0B;
}

.vg-icon-box.icon-cagnotte {
    background: #F0FDFA;
    color: #0D9488;
}

.vg-icon-box.icon-registration {
    background: #EEF2FF;
    color: #4F46E5;
}

.vg-header-titles {
    flex-grow: 1;
}

.vg-modal-title {
    font-family: 'Anton', sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 3px 0;
    line-height: 1.25;
}

.vg-modal-subtitle {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748B;
    margin: 0;
    line-height: 1.3;
}

/* Step Cards */
.vg-step-card {
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 20px;
    padding: 18px 20px;
}

.vg-step-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 12px;
}

/* Custom Select Dropdown for Tickets */
.vg-ticket-select-group {
    position: relative;
}

.vg-custom-select-wrapper {
    position: relative;
    width: 100%;
}

.vg-custom-select {
    width: 100%;
    padding: 14px 44px 14px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    background: #FFFFFF;
    border: 2px solid #FF007A;
    border-radius: 18px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(255, 0, 122, 0.08);
}

.vg-custom-select:focus {
    box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.15);
}

.vg-select-arrow {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #FF007A;
}

/* Stepper Controls */
.vg-stepper-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.vg-stepper-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.vg-stepper-btn.btn-minus {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    color: #0F172A;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.vg-stepper-btn.btn-minus:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.vg-stepper-btn.btn-plus-pink {
    background: #FF007A;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(255, 0, 122, 0.3);
}

.vg-stepper-btn.btn-plus-pink:hover {
    background: #E60070;
    transform: scale(1.05);
}

.vg-stepper-btn.btn-plus-amber {
    background: #F59E0B;
    color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.vg-stepper-btn.btn-plus-amber:hover {
    background: #D97706;
    transform: scale(1.05);
}

.vg-stepper-value {
    font-family: 'Anton', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #0F172A;
    min-width: 40px;
    text-align: center;
}

/* Input with icon (Delivery recipient) */
.vg-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.vg-input-icon {
    position: absolute;
    left: 18px;
    color: #94A3B8;
    pointer-events: none;
}

.vg-card-input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    font-size: 15px;
    font-weight: 500;
    color: #0F172A;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    outline: none;
    transition: all 0.2s ease;
}

.vg-card-input:focus {
    border-color: #FF007A;
    box-shadow: 0 0 0 3px rgba(255, 0, 122, 0.12);
}

/* Quick Chips */
.vg-chips-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vg-quick-chip {
    flex: 1;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #1E293B;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    outline: none;
}

.vg-quick-chip:hover {
    border-color: #CBD5E1;
    background: #F8FAFC;
}

.vg-quick-chip.active {
    background: #00BBA6;
    border-color: #00BBA6;
    color: #FFFFFF;
}

/* Bonus Objective Box */
.vg-bonus-progress-wrap {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 12px 14px;
}

.vg-bonus-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.vg-bonus-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748B;
}

.vg-bonus-ratio {
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
}

.vg-bonus-bar {
    width: 100%;
    height: 7px;
    background: #F1F5F9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.vg-bonus-bar-fill {
    height: 100%;
    background: #FF007A;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.vg-bonus-hint {
    font-size: 11.5px;
    font-style: italic;
    color: #64748B;
    text-align: center;
}

/* Support message toggle button */
.vg-support-btn-wrap {
    text-align: center;
}

.vg-support-toggle-btn {
    width: auto;
    padding: 6px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #e7015e;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vg-support-toggle-btn:hover {
    background: rgba(231, 1, 94, 0.06);
    color: #c4004f;
}

.vg-support-plus-icon {
    font-size: 15px;
    font-weight: 700;
    color: #e7015e;
}

.vg-support-fields-box {
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 16px;
}

/* Cagnotte Big Amount Display */
.vg-donation-amount-display {
    margin: 8px 0 14px 0;
}

.vg-big-amount-input {
    width: 100%;
    max-width: 280px;
    margin: auto;
    text-align: center;
    font-family: 'Anton', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #0F172A;
    border: none;
    outline: none;
    background: transparent;
    padding: 0;
}

/* Payment Mode Tabs */
.vg-payment-tabs {
    display: flex;
    gap: 12px;
}

.vg-payment-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748B;
    outline: none;
}

.vg-payment-tab:hover {
    border-color: #CBD5E1;
}

.vg-payment-tab.active {
    border: 2px solid #0F172A;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.vg-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vg-tab-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Phone Input with +241 Prefix */
.vg-phone-input-wrap {
    width: 100%;
}

.vg-phone-group {
    display: flex;
    align-items: center;
    border: 1.5px solid #E2E8F0;
    border-radius: 16px;
    background: #FFFFFF;
    overflow: hidden;
    transition: all 0.2s ease;
}

.vg-phone-group:focus-within {
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.06);
}

.vg-phone-prefix {
    padding: 14px 16px;
    background: #F8FAFC;
    border-right: 1.5px solid #E2E8F0;
    font-size: 14px;
    font-weight: 600;
    color: #64748B;
    flex-shrink: 0;
}

.vg-phone-input {
    flex-grow: 1;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    border: none;
    outline: none;
    background: transparent;
}

.vg-phone-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.vg-operator-indicator {
    padding-right: 16px;
    font-size: 12px;
    font-weight: 700;
}

.vg-phone-hint {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: #94A3B8;
}

.vg-card-info-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 14px 18px;
    text-align: center;
}

/* Total & Footer */
.vg-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.vg-total-label {
    font-size: 14px;
    color: #64748B;
    font-weight: 500;
}

.vg-total-amount {
    font-family: 'Anton', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #0F172A;
}

.vg-fees-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94A3B8;
    margin-top: 4px;
}

.vg-terms-check {
    font-size: 12px;
}

.vg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    margin: 0;
}

.vg-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    cursor: pointer;
    accent-color: #FF007A;
}

/* Main CTA Button */
.vg-modal-cta-btn {
    width: 100%;
    padding: 16px 24px;
    background: #FF007A;
    color: #FFFFFF;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 20px -4px rgba(255, 0, 122, 0.4);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.vg-modal-cta-btn:hover {
    background: #E60070;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -4px rgba(255, 0, 122, 0.5);
}

.vg-modal-cta-btn:active {
    transform: translateY(0);
}

.vg-btn-bolt {
    flex-shrink: 0;
}

/* Mobile responsive adjustments & reduced font sizes */
@media (max-width: 768px) {
    .vg-modal-content {
        padding: 20px 16px 40px 16px;
        max-width: 100%;
    }

    .vg-modal-close {
        top: 16px;
        right: 16px;
        width: 32px;
        height: 32px;
    }

    .vg-modal-close svg {
        width: 15px;
        height: 15px;
    }

    .vg-modal-header {
        gap: 12px;
        margin-bottom: 16px;
        padding-right: 42px;
    }

    .vg-icon-box {
        width: 38px;
        height: 38px;
    }

    .vg-icon-box svg {
        width: 18px;
        height: 18px;
    }

    .vg-modal-title {
        font-size: 15px;
        line-height: 1.25;
        margin-bottom: 2px;
    }

    .vg-modal-subtitle {
        font-size: 9.5px;
        letter-spacing: 0.5px;
    }

    .vg-step-card {
        padding: 12px 14px;
        border-radius: 14px;
        margin-bottom: 12px;
    }

    .vg-step-label {
        font-size: 10px;
        letter-spacing: 0.5px;
        margin-bottom: 8px;
    }

    .vg-custom-select {
        font-size: 13px;
        padding: 10px 36px 10px 14px;
        border-radius: 12px;
    }

    .vg-select-arrow {
        right: 14px;
    }

    .vg-select-arrow svg {
        width: 14px;
        height: 14px;
    }

    .vg-stepper-control {
        gap: 20px;
    }

    .vg-stepper-btn {
        width: 34px;
        height: 34px;
    }

    .vg-stepper-btn svg {
        width: 16px;
        height: 16px;
    }

    .vg-stepper-value {
        font-size: 22px;
        min-width: 30px;
    }

    .vg-input-with-icon .vg-card-input {
        padding: 10px 14px 10px 38px;
        font-size: 12.5px;
        border-radius: 12px;
    }

    .vg-input-icon {
        left: 12px;
    }

    .vg-input-icon svg {
        width: 16px;
        height: 16px;
    }

    .vg-chips-row {
        gap: 6px;
    }

    .vg-quick-chip {
        padding: 6px 6px;
        font-size: 11px;
        border-radius: 10px;
    }

    .vg-bonus-progress-wrap {
        padding: 10px 12px;
        border-radius: 12px;
    }

    .vg-bonus-tag {
        font-size: 9.5px;
        letter-spacing: 0.5px;
        gap: 4px;
    }

    .vg-bonus-tag svg {
        width: 12px;
        height: 12px;
    }

    .vg-bonus-ratio {
        font-size: 9.5px;
    }

    .vg-bonus-bar {
        height: 6px;
        margin-bottom: 6px;
    }

    .vg-bonus-hint {
        font-size: 10px;
    }

    .vg-support-toggle-btn {
        padding: 5px 10px;
        font-size: 12px;
        border-radius: 6px;
    }

    .vg-support-plus-icon {
        font-size: 13px;
    }

    .vg-support-fields-box {
        padding: 12px;
        border-radius: 12px;
    }

    .vg-support-fields-box .form-control {
        font-size: 12px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .vg-big-amount-input {
        font-size: 28px;
        max-width: 220px;
    }

    .vg-payment-tabs {
        gap: 8px;
    }

    .vg-payment-tab {
        padding: 10px 8px;
        border-radius: 14px;
        gap: 5px;
    }

    .vg-tab-text {
        font-size: 10.5px;
        letter-spacing: 0.3px;
    }

    .vg-tab-icon svg {
        width: 16px;
        height: 16px;
    }

    .vg-phone-group {
        border-radius: 12px;
    }

    .vg-phone-prefix {
        padding: 10px 12px;
        font-size: 12.5px;
    }

    .vg-phone-input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .vg-operator-indicator {
        font-size: 10.5px;
        padding-right: 10px;
    }

    .vg-phone-hint {
        font-size: 9.5px;
        margin-top: 4px;
    }

    .vg-card-info-box {
        padding: 10px 14px;
        border-radius: 12px;
    }

    .vg-card-info-box p {
        font-size: 11.5px;
    }

    .vg-total-row {
        margin-top: 8px;
    }

    .vg-total-label {
        font-size: 12.5px;
    }

    .vg-total-amount {
        font-size: 20px;
    }

    .vg-fees-row {
        font-size: 11px;
    }

    .vg-checkbox-label {
        font-size: 11px;
        gap: 6px;
    }

    .vg-checkbox-label input[type="checkbox"] {
        width: 14px;
        height: 14px;
    }

    .vg-modal-cta-btn {
        padding: 13px 20px;
        font-size: 13.5px;
        border-radius: 14px;
    }

    .vg-modal-cta-btn svg {
        width: 16px;
        height: 16px;
    }
}
