/* 13th NPSDF 2026 — shared styles for registration + payment pages (light theme) */

/* Inner-page hero: the design's .innerhero references modern-hero-bg.png which was
   never shipped — use the hero image that does exist. */
.innerhero {
    background: linear-gradient(rgba(0, 0, 0, .72), #ffffff8b), url('assets/img/hero-ai-green.png');
    background-size: cover;
    background-position: center;
}

/* White card, same idiom as the design's .boxshadow + .rounded-xl */
.npsdf-card {
    background: #ffffff;
    border: 1px solid #eef1ef;
    box-shadow: 0 10px 40px rgba(23, 104, 75, .08);
    border-radius: 24px;
}

.npsdf-section-title {
    color: #17684b;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #7ac142;
}

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

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

.npsdf-form .form-control:focus,
.npsdf-form .custom-select:focus {
    background-color: #ffffff;
    border-color: #0d825b;
    box-shadow: 0 0 0 .15rem rgba(13, 130, 91, .18);
    color: #222222;
    outline: 0;
}

.npsdf-form .form-control::placeholder { color: #9aa3ad; }

.npsdf-form .custom-select option {
    color: #222222;
    background: #ffffff;
}

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

.npsdf-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='%23222222' 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;
}

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

.npsdf-form .field-label {
    color: #5b6770;
    font-size: 17px;
    line-height: 1.2;
    margin-bottom: 6px;
}

/* Radios / checkboxes — NPSDF green accent */
.npsdf-form .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #0d825b;
    border-color: #0d825b;
}

.npsdf-form .custom-control-label::before {
    background-color: #ffffff;
    border: 1px solid #b9c2c9;
}

.npsdf-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='%23ffffff'/%3E%3C/svg%3E");
}

.npsdf-form .custom-control-label { color: #222222; }

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

.npsdf-form .invalid-feedback { color: #dc3545; }

/* Buttons — same idiom as the design's .btn-primary gradient */
.btn-npsdf {
    background: linear-gradient(to right, #0d825b 0%, #7ac142 50%, #0d825b 100%);
    background-size: 200% auto;
    border: 0;
    color: #ffffff;
    font-weight: 700;
    border-radius: 50rem;
    padding: .8rem 2.4rem;
    transition: all .4s ease-out 0s;
}

.btn-npsdf:hover,
.btn-npsdf:focus {
    background-position: right center;
    color: #ffffff;
}

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

.btn-npsdf-outline:hover,
.btn-npsdf-outline:focus {
    background-color: #0d825b;
    color: #ffffff;
}

/* Alerts */
.npsdf-form-page .alert-danger,
.npsdf-form-page .alert-success {
    border-radius: 12px;
}

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

.npsdf-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);
}

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

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

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

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

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

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

.npsdf-form .iti--separate-dial-code .iti__selected-flag {
    background-color: #f4f6f5 !important;
    color: #222222 !important;
    padding: 0 10px 0 12px !important;
    border-right: 1px solid #d8dee2 !important;
    border-radius: 8px 0 0 8px;
    cursor: pointer;
    transition: background-color .15s ease;
    min-width: 78px;
}

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

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

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

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

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

.npsdf-form .iti--separate-dial-code .iti__selected-flag:hover .iti__arrow::before,
.npsdf-form .iti--separate-dial-code .iti__selected-flag[aria-expanded="true"] .iti__arrow::before {
    border-color: #ffffff;
}

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