.wizard-progress {
    border: 1px solid #dce8df;
    box-shadow: 0 12px 36px rgba(1, 32, 87, .08);
}

.requirements-section > summary {
    cursor: pointer;
    list-style: none;
}

.requirements-section > summary::-webkit-details-marker {
    display: none;
}

.requirements-toggle {
    margin-left: auto;
    color: #035628;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.requirements-section[open] .requirements-toggle i {
    display: inline-block;
    transform: rotate(180deg);
}

.wizard-progress .progress {
    height: .55rem;
    border-radius: 999px;
}

.wizard-progress .progress-bar {
    background: linear-gradient(90deg, #035628, #0f8750);
    border-radius: 999px;
    transition: width .25s ease;
}

.wizard-step-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.wizard-step-list li {
    color: #506474;
    background: #f1f5f3;
    border: 1px solid #e2e9e5;
    border-radius: 999px;
    padding: .4rem .8rem;
    font-size: .82rem;
    font-weight: 600;
}

.wizard-step-list li.is-current {
    background: #035628;
    border-color: #035628;
    color: white;
}

.wizard-step-list li.is-complete {
    background: #e6f5eb;
    border-color: #b7ddc4;
    color: #035628;
}

.application-form[data-wizard-ready] .form-card[hidden],
.application-form[data-wizard-ready] .submit-section[hidden],
.application-form[data-wizard-ready] [hidden],
.wizard-progress[hidden] {
    display: none !important;
}

.application-form .form-card {
    border: 1px solid #e3eae6;
    box-shadow: 0 8px 28px rgba(1, 32, 87, .06);
}

.application-form .form-control:focus,
.application-form .form-select:focus {
    border-color: #13864b;
    box-shadow: 0 0 0 .2rem rgba(3, 86, 40, .12);
}

.application-form .declaration-box .form-check {
    display: grid;
    grid-template-columns: 1.35rem minmax(0, 1fr);
    column-gap: .8rem;
    align-items: start;
    padding: .8rem;
    margin: .35rem 0;
    border: 1px solid #dce5df;
    border-radius: .75rem;
    background: #fff;
}

.application-form .declaration-box .form-check:has(input:checked) {
    border-color: #78bb90;
    background: #f1faf4;
}

.application-form .form-check input[type="checkbox"],
.application-form .form-check input[type="radio"] {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background-image: none !important;
    accent-color: #035628;
    float: none;
    position: static;
    width: 1.2rem;
    height: 1.2rem;
    margin: .15rem 0 0;
    cursor: pointer;
}

.application-form .form-check input[type="checkbox"]::after,
.application-form .form-check input[type="radio"]::after {
    content: none !important;
}

.application-form .declaration-box .form-check .form-check-label {
    grid-column: 2;
    line-height: 1.55;
}

.application-form .declaration-box .form-check .invalid-feedback {
    grid-column: 2;
}

.application-form .radio-group .form-check {
    display: flex;
    gap: .65rem;
    align-items: center;
    padding-left: .75rem;
}

.application-form .radio-group .form-check-label {
    margin: 0;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.5rem 0;
}

.wizard-back,
.wizard-next {
    border-radius: .8rem;
    padding: .85rem 1.4rem;
    min-height: 3rem;
    font-weight: 700;
    cursor: pointer;
}

.wizard-back {
    border: 1px solid #b9c9d1;
    background: white;
    color: #012057;
}

.wizard-next {
    margin-left: auto;
    border: 1px solid #035628;
    background: #035628;
    color: white;
}

.wizard-next:hover,
.wizard-next:focus-visible {
    background: #023d1c;
}

.wizard-back:hover,
.wizard-back:focus-visible {
    background: #eef4f0;
}

.wizard-feedback {
    margin-bottom: 1rem;
}

.upload-selection {
    color: #035628;
    font-size: .83rem;
    font-weight: 600;
    margin-top: .35rem;
    overflow-wrap: anywhere;
}

.upload-selection-error {
    color: #b42318;
}

.application-error-summary {
    border-radius: .85rem;
}

@media (max-width: 576px) {
    .member-form-container,
    .ambassador-form-container {
        width: 100%;
        min-width: 0;
        padding: 0 .75rem;
    }

    .form-header h1,
    .form-card .card-header h4,
    .requirements-section .req-header h3 {
        overflow-wrap: anywhere;
    }

    .form-header h1 {
        font-size: clamp(1.45rem, 6vw, 1.8rem);
    }

    .requirements-toggle {
        white-space: normal;
    }

    .wizard-step-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wizard-step-list li {
        border-radius: .6rem;
        padding: .45rem .55rem;
        font-size: .72rem;
    }

    .wizard-actions {
        gap: .6rem;
    }

    .wizard-back,
    .wizard-next {
        padding: .75rem 1rem;
    }
}
