/* Modal Overlay */
#vas-payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#vas-payment-modal-overlay.active {
    opacity: 1;
}

/* Progress Bar */
#vas-modal-progress-bar {
    height: 3px;
    background: #e8f7f7;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}
#vas-modal-progress-bar.active {
    opacity: 1;
}
#vas-modal-progress-fill {
    height: 100%;
    width: 0%;
    background: #36a6a7;
    border-radius: 0;
    transition: width 0.4s ease;
}
@keyframes progress-indeterminate {
    0%   { left: -40%; width: 40%; }
    100% { left: 100%; width: 40%; }
}
#vas-modal-progress-bar.loading #vas-modal-progress-fill {
    position: relative;
    width: 40%;
    animation: progress-indeterminate 1.2s ease infinite;
}

/* Modal Box */
#vas-payment-modal {
    background: #FFFFFF;
    width: 526px;
    max-width: 90%;
    border-radius: 0;
    padding: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Inner border container */
#vas-payment-modal > .vas-modal-inner {
    border: 1px solid #36a6a7;
    overflow: hidden;
}

/* Header */
#vas-modal-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

#vas-modal-title {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    text-transform: uppercase;
    color: #179c8f;
}

#vas-modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}

#vas-modal-close:hover {
    color: #333;
}

/* Body */
#vas-modal-body {
    padding: 16px 24px 24px;
}

/* Step Layouts */
.vas-step {
    animation: fadeIn 0.3s ease;
}

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

/* Choice Cards Grid */
.vas-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 16px;
}

.vas-choice-card {
    background: #FFFFFF;
    border: 1px solid #ced4da;
    border-radius: 0;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.1);
}

.vas-choice-card:hover {
    border-color: #36a6a7;
    box-shadow: 0px 10px 40px rgba(5, 168, 168, 0.15);
}

.vas-choice-card img,
.vas-choice-card svg.vas-card-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 12px;
    opacity: 0.6;
}

i.vas-card-icon {
    font-size: 40px;
    color: #333;
    opacity: 0.6;
    margin-bottom: 12px;
    display: block;
}

.vas-choice-card h3 {
    font-family: inherit;
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    color: #22313f;
    margin: 0 0 8px 0;
}

.vas-choice-card p {
    font-family: inherit;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    color: #22313F;
    margin: 0;
}

/* Forms */
.vas-form-group {
    margin-bottom: 16px;
}

.vas-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #22313f;
}

.vas-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ced4da;
    border-radius: 0;
    font-size: 14px;
    font-family: inherit;
    color: #22313F;
    box-sizing: border-box;
}

.vas-form-group input:focus {
    border-color: #2affff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 169, 0.25);
}

.vas-form-group input[readonly] {
    background: #f5f5f5;
    color: #777;
}

/* Required field indicator */
.vas-required {
    color: #dc2626;
    margin-left: 2px;
}

/* Forgot License Link */
.vas-forgot-link {
    display: inline-block;
    margin-bottom: 0;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    color: #22313f;
    text-decoration: underline;
    cursor: pointer;
}

.vas-forgot-link:hover {
    color: #005d5d;
}

/* Action Buttons */
.vas-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.vas-btn {
    padding: 12px 24px;
    border-radius: 0;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 15px;
    flex: 1;
    transition: all 0.2s;
}

.vas-btn-primary {
    background: #36a6a7;
    color: #fff;
}

.vas-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 169, 0.25);
}

.vas-btn-primary:hover {
    background: #258b8c;
}

.vas-btn-secondary {
    background: #fff;
    border: 1px solid #36a6a7;
    color: #36a6a7;
}

.vas-btn-secondary:hover {
    background: #36a6a7;
    color: #fff;
}

/* Loading Spinner */
.vas-loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Pay Now Button — Base */
.vas-pay-now-btn {
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    line-height: 19px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    background: none;
}

/* Outline (default) */
.vas-pay-btn-outline {
    width: 190px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: 1px solid #36a6a7;
    color: #36a6a7;
}
.vas-pay-btn-outline:hover {
    background: #36a6a7;
    color: #fff;
}

/* Primary (solid) */
.vas-pay-btn-primary {
    width: 190px;
    height: 38px;
    padding: 0;
    background: #36a6a7;
    color: #fff;
}
.vas-pay-btn-primary:hover {
    background: #258b8c;
    color: #fff;
}

/* Compact (smaller, inline) */
.vas-pay-btn-compact {
    width: auto;
    padding: 6px 18px;
    font-size: 14px;
    background: transparent;
    border: 1px solid #36a6a7;
    color: #36a6a7;
}
.vas-pay-btn-compact:hover {
    background: #36a6a7;
    color: #fff;
}

/* Text (link style) */
.vas-pay-btn-text {
    width: auto;
    padding: 0;
    background: transparent;
    color: #36a6a7;
    font-weight: 600;
    text-decoration: underline;
}
.vas-pay-btn-text:hover {
    color: #258b8c;
}

/* Inline Error Message */
.vas-error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    padding: 10px 14px;
    border-radius: 0;
    font-size: 13px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}

/* Input Error Highlight */
.vas-input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

.vas-input-error:focus {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25) !important;
}

/* Package Selection */
.vas-package-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vas-package-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #ced4da;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.05);
}

.vas-package-option:hover {
    border-color: #36a6a7;
    background: #f0fafa;
}

.vas-package-option input[type="radio"] {
    width: auto;
    accent-color: #36a6a7;
}

.vas-package-option input[type="radio"]:checked ~ .vas-package-details {
    color: #36a6a7;
}

.vas-package-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.vas-package-price {
    font-weight: 600;
    color: #36a6a7;
    white-space: nowrap;
}

.vas-package-desc {
    font-size: 12px;
    color: #666;
    margin: 4px 0 0;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 560px) {
    #vas-payment-modal {
        width: 100%;
        margin: 16px;
    }

    #vas-modal-title {
        font-size: 20px;
    }

    .vas-btn-grid {
        grid-template-columns: 1fr;
    }

    .vas-choice-card {
        padding: 20px 16px;
    }

    #vas-modal-body {
        padding: 12px 16px 16px;
    }

    #vas-modal-header {
        padding: 16px 16px 12px;
    }

    .vas-package-option {
        padding: 10px 12px;
        gap: 8px;
    }

    .vas-package-details {
        font-size: 13px;
    }

    .vas-package-price {
        font-size: 13px;
    }

    .vas-package-list {
        gap: 8px;
    }

    .vas-modal-actions {
        margin-top: 16px;
    }

    .vas-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .vas-form-group {
        margin-bottom: 12px;
    }

    .vas-form-group input {
        padding: 10px;
    }
}

/* Success Step */
.vas-success-step {
    text-align: center;
    padding: 8px 0;
}
.vas-success-icon {
    width: 50px;
    height: 50px;
    background: #36a6a7;
    color: #fff;
    border-radius: 50%;
    font-size: 24px;
    line-height: 50px;
    margin: 0 auto 12px;
}
.vas-fallback-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 24px;
    margin-bottom: 12px;
}
.vas-modal-title-inline {
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 31px;
    text-transform: uppercase;
    color: #00A9A9;
    margin: 0;
}
.vas-fallback-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.vas-fallback-close:hover {
    color: #333;
}
.vas-success-msg {
    font-size: 14px;
    color: #22313f;
    font-weight: 300;
    margin-bottom: 4px;
}

/* SR Reference */
.vas-sr-ref {
    font-size: 13px;
    color: #888;
    margin-bottom: 4px;
}
.vas-sr-ref strong {
    color: #22313f;
}

/* Fallback link */
.vas-fallback-text {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}
.vas-fallback-link {
    color: #36a6a7;
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}
.vas-fallback-link:hover {
    color: #258b8c;
}

/* Divider */
.vas-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 10px 0;
}

/* Close / Already paid button */
.vas-close-paid-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #36a6a7;
    border: none;
    border-radius: 0;
    font-family: 'Roboto Condensed', 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
}
.vas-close-paid-btn:hover {
    background: #0e3a5c;
    color: #fff;
}

/* Loading Screen */
.vas-loading-screen {
    text-align: center;
    padding: 24px 0;
}
.vas-loader {
    width: 180px;
    height: 14px;
    margin: 0 auto 28px;
    background:
        linear-gradient(#36a6a7 50%, #0000 0),
        linear-gradient(#0000 50%, #36a6a7 0),
        linear-gradient(#36a6a7 50%, #0000 0),
        linear-gradient(#0000 50%, #36a6a7 0),
        linear-gradient(#36a6a7 50%, #0000 0),
        linear-gradient(#0000 50%, #36a6a7 0)
        #e0f5f5;
    background-size: calc(100%/6 + 1px) 200%;
    background-repeat: no-repeat;
    border-radius: 7px;
    animation: vas-loader-anim 2s infinite;
}
@keyframes vas-loader-anim {
    0%     {background-position: calc(0*100%/5) 100%,calc(1*100%/5)   0%,calc(2*100%/5) 100%,calc(3*100%/5)   0%,calc(4*100%/5) 100%,calc(5*100%/5)   0%}
    16.67% {background-position: calc(0*100%/5)   0%,calc(1*100%/5)   0%,calc(2*100%/5) 100%,calc(3*100%/5)   0%,calc(4*100%/5) 100%,calc(5*100%/5)   0%}
    33.33% {background-position: calc(0*100%/5)   0%,calc(1*100%/5) 100%,calc(2*100%/5) 100%,calc(3*100%/5)   0%,calc(4*100%/5) 100%,calc(5*100%/5)   0%}
    50%    {background-position: calc(0*100%/5)   0%,calc(1*100%/5) 100%,calc(2*100%/5)   0%,calc(3*100%/5)   0%,calc(4*100%/5) 100%,calc(5*100%/5)   0%}
    66.67% {background-position: calc(0*100%/5)   0%,calc(1*100%/5) 100%,calc(2*100%/5)   0%,calc(3*100%/5) 100%,calc(4*100%/5) 100%,calc(5*100%/5)   0%}
    83.33% {background-position: calc(0*100%/5)   0%,calc(1*100%/5) 100%,calc(2*100%/5)   0%,calc(3*100%/5) 100%,calc(4*100%/5)   0%,calc(5*100%/5)   0%}
    100%   {background-position: calc(0*100%/5)   0%,calc(1*100%/5) 100%,calc(2*100%/5)   0%,calc(3*100%/5) 100%,calc(4*100%/5)   0%,calc(5*100%/5) 100%}
}
.vas-loading-msg {
    font-family: inherit;
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Honeypot — invisible to users, bots fill it */
.vas-hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
    tab-index: -1;
}

/* Turnstile widget */
.vas-turnstile-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}
