/* Exam Excellence — Native Application Form (multi-step wizard) */

.af-wrap {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.af-label {
    width: 100%;
    max-width: 560px;
    text-align: center;
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.35;
    color: #1A1A1A;
    margin-bottom: 1.25rem;
}

.af-progress {
    width: 100%;
    max-width: 560px;
    height: 6px;
    background: rgba(13, 110, 110, 0.12);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.af-progress-bar {
    height: 100%;
    width: 9%;
    background: #0D6E6E;
    border-radius: 999px;
    transition: width 0.35s ease;
}

.af-card {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem 2rem;
}

.af-back {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(13, 110, 110, 0.08);
    color: #0D6E6E;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.af-back:hover {
    background: rgba(13, 110, 110, 0.16);
}

.af-back.is-hidden {
    visibility: hidden;
}

.af-step-count {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6B6B6B;
    margin-bottom: 1.25rem;
}

.af-steps {
    position: relative;
}

.af-step {
    display: none;
    animation: afFadeUp 0.35s ease;
}

.af-step.is-active {
    display: block;
}

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

.af-question {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 900;
    font-size: 1.4rem;
    line-height: 1.35;
    color: #1A1A1A;
    margin-bottom: 0.75rem;
}

.af-helper {
    font-size: 0.9rem;
    color: #6B6B6B;
    margin-bottom: 1rem;
}

.af-choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.af-choice {
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(13, 110, 110, 0.2);
    background: #F2F0EC;
    color: #1A1A1A;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.af-choice:hover {
    border-color: #0D6E6E;
    background: rgba(13, 110, 110, 0.08);
}

.af-choice-multi {
    position: relative;
    padding-left: 2.75rem;
}

.af-choice-multi::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(13, 110, 110, 0.35);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    transition: all 0.2s ease;
}

.af-choice-multi.is-selected {
    border-color: #0D6E6E;
    background: rgba(13, 110, 110, 0.1);
    color: #0D6E6E;
    font-weight: 600;
}

.af-choice-multi.is-selected::before {
    content: "✓";
    background: #0D6E6E;
    border-color: #0D6E6E;
}

.af-input {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    border: 1.5px solid rgba(13, 110, 110, 0.2);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #1A1A1A;
    background: #F2F0EC;
    transition: border-color 0.2s ease;
}

.af-input:focus {
    outline: none;
    border-color: #0D6E6E;
}

.af-input.error {
    border-color: #C0392B;
}

.af-textarea {
    min-height: 110px;
    resize: vertical;
    font-family: 'Inter', sans-serif;
}

.af-phone-wrap {
    margin-top: 1.25rem;
}

.af-phone-wrap .af-input {
    margin-top: 0;
}

.af-error {
    min-height: 1.2rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #C0392B;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.af-error.is-visible {
    opacity: 1;
}

.af-continue {
    display: inline-block;
    margin-top: 1.25rem;
    background-color: #0D6E6E;
    color: #FFFFFF;
    border: none;
    padding: 0.9rem 2.25rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.af-continue:hover {
    background-color: #0B5C5C;
    transform: translateY(-1px);
}

/* intl-tel-input country selector needs full width to sit nicely */
.iti {
    width: 100%;
}

@media (max-width: 480px) {
    .af-card {
        padding: 2.25rem 1.25rem 1.5rem;
        border-radius: 12px;
    }

    .af-question {
        font-size: 1.2rem;
    }

    .af-label {
        font-size: 1.2rem;
    }
}
