/* SAS-CI 2026 — shared styles for registration + payment pages (dark theme) */

/* Glass card, same idiom as .footerbottom */
.sas-card {
    background: rgba(255, 255, 255, .03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 40px rgba(0, 0, 0, .25);
    border-radius: 24px;
}

.sas-section-title {
    color: #5ff973;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

/* Form controls on dark background */
.sas-form .form-control,
.sas-form .custom-select {
    background-color: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #ffffff;
    height: calc(1.6em + 1rem + 2px);
    padding: .5rem .9rem;
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.sas-form textarea.form-control { height: auto; }

.sas-form .form-control:focus,
.sas-form .custom-select:focus {
    background-color: rgba(255, 255, 255, .09);
    border-color: #5ff973;
    box-shadow: 0 0 0 .15rem rgba(95, 249, 115, .2);
    color: #ffffff;
    outline: 0;
}

.sas-form .form-control::placeholder { color: #7d8894; }

/* Native dropdown lists render on white — keep options readable */
.sas-form .custom-select option {
    color: #222222;
    background: #ffffff;
}

.sas-form .custom-select option:disabled { color: #99a1a9; }

.sas-form .custom-select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%235ff973' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 8px 10px;
    -webkit-appearance: none;
    appearance: none;
}

.sas-form label { width: 100%; }

.sas-form .field-label {
    color: #9ba6b2;
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 6px;
}

/* Radios / checkboxes — green accent */
.sas-form .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #5ff973;
    border-color: #5ff973;
}

.sas-form .custom-control-label::before {
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .35);
}

.sas-form .custom-radio .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3E%3Ccircle r='3' fill='%2314301a'/%3E%3C/svg%3E");
}

.sas-form .custom-control-label { color: #ffffff; }

/* Validation states */
.sas-form .form-control.is-invalid,
.sas-form .custom-select.is-invalid { border-color: #ff5b45; }

.sas-form .invalid-feedback { color: #ff8d7d; }

/* Buttons */
.btn-sas {
    background-color: #5ff973;
    border: 0;
    color: #14301a;
    font-weight: 700;
    border-radius: 50rem;
    padding: .8rem 2.4rem;
    transition: background-color .2s ease, transform .2s ease;
}

.btn-sas:hover,
.btn-sas:focus {
    background-color: #7dffae;
    color: #14301a;
}

.btn-sas-outline {
    background: transparent;
    border: 2px solid #5ff973;
    color: #5ff973;
    font-weight: 700;
    border-radius: 50rem;
    padding: .7rem 2.2rem;
    transition: background-color .2s ease, color .2s ease;
}

.btn-sas-outline:hover,
.btn-sas-outline:focus {
    background-color: #5ff973;
    color: #14301a;
}

/* Alerts on dark background */
.sas-form-page .alert-danger,
.sas-form-page .alert-success {
    border-radius: 12px;
}

/* intl-tel-input: dial-code box as a green button (mirrors MC/SC pattern) */
.sas-form .iti { width: 100%; }

.sas-form .iti__country-list {
    z-index: 1051;
    background-color: #ffffff !important;
    color: #222 !important;
    max-height: 260px;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.sas-form .iti__country,
.sas-form .iti__country-name { color: #222 !important; }

.sas-form .iti__dial-code { color: #6c757d !important; }

.sas-form .iti__country.iti__highlight,
.sas-form .iti__country:hover { background-color: #f1f3f5 !important; }

.sas-form .iti__divider { border-bottom-color: #e9ecef !important; }

/* Hide broken flag sprite from CDN */
.sas-form .iti__flag,
.sas-form .iti__flag-box,
.sas-form .iti__flag-container .iti__flag {
    display: none !important;
    background: none !important;
}

.sas-form .iti__country { padding: 6px 12px !important; }
.sas-form .iti__country-name { margin-left: 0 !important; }

.sas-form .iti--separate-dial-code .iti__selected-flag {
    background-color: #5ff973 !important;
    color: #14301a !important;
    padding: 0 10px 0 12px !important;
    border-right: 1px solid rgba(0, 0, 0, .15) !important;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: background-color .15s ease;
    min-width: 78px;
}

.sas-form .iti--separate-dial-code .iti__selected-flag:hover,
.sas-form .iti--separate-dial-code .iti__selected-flag[aria-expanded="true"] {
    background-color: #7dffae !important;
}

.sas-form .iti--separate-dial-code .iti__selected-dial-code {
    color: #14301a !important;
    font-weight: 600;
    font-size: 15px;
    margin-left: 0 !important;
}

.sas-form .iti--separate-dial-code .iti__arrow {
    border: 0 !important;
    width: 12px;
    height: 12px;
    margin-left: 8px !important;
    position: relative;
}

.sas-form .iti--separate-dial-code .iti__arrow::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #14301a;
    border-bottom: 2px solid #14301a;
    transform: translate(-50%, -70%) rotate(45deg);
}

.sas-form .iti--separate-dial-code .iti__arrow--up::before {
    transform: translate(-50%, -30%) rotate(-135deg);
}
