/* ==========================================================================
   Al Iman Quran Academy - Multi-Step Student Admission Form CSS
   ========================================================================== */

.sbw-af-section * {
    font-family: 'Philosopher', sans-serif;
    box-sizing: border-box;
}

.sbw-af-section {
    position: relative;
    padding: 100px 0;
    background-color: var(--sbw-dark, #091D17);
    color: #ffffff;
    overflow: hidden;
}

.sbw-af-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(5, 131, 73, 0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

.sbw-af-container {
    position: relative;
    z-index: 5;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.sbw-af-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px auto;
}

.sbw-af-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--sbw-secondary, #FFB606);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.sbw-af-main-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.sbw-af-main-title span {
    color: var(--sbw-secondary, #FFB606);
}

.sbw-af-desc {
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin: 0;
}

/* Multi-Step Form Outer Wrapper */
.sbw-af-form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 182, 6, 0.25);
    border-radius: 28px;
    padding: 40px;
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

/* Steps Progress Tabs Bar */
.sbw-af-tabs-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 40px;
    position: relative;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 24px;
}

.sbw-af-tab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.35s ease;
}

.sbw-af-tab-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.sbw-af-tab-label {
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.sbw-af-tab-item.active {
    background: rgba(255, 182, 6, 0.18);
    border-color: var(--sbw-secondary, #FFB606);
}

.sbw-af-tab-item.active .sbw-af-tab-num {
    background-color: var(--sbw-secondary, #FFB606);
    color: #091D17;
}

.sbw-af-tab-item.active .sbw-af-tab-label {
    color: var(--sbw-secondary, #FFB606);
}

/* Step Content Panels */
.sbw-af-step-content {
    display: none;
    animation: sbwFadeInStep 0.45s ease forwards;
}

.sbw-af-step-content.active {
    display: block;
}

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

.sbw-af-step-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--sbw-secondary, #FFB606);
    margin: 0 0 28px 0;
}

/* Form Controls & Layout Grids */
.sbw-af-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.sbw-af-field {
    margin-bottom: 24px;
}

.sbw-af-field label {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.sbw-required {
    color: #ff5252;
}

.sbw-af-field input[type="text"],
.sbw-af-field input[type="number"],
.sbw-af-field input[type="tel"],
.sbw-af-field input[type="email"],
.sbw-af-field select,
.sbw-af-field textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 15px;
    color: #ffffff;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.sbw-af-field select option {
    background-color: #091D17;
    color: #ffffff;
}

.sbw-af-field input:focus,
.sbw-af-field select:focus,
.sbw-af-field textarea:focus {
    border-color: var(--sbw-secondary, #FFB606);
    background: rgba(255, 255, 255, 0.12);
}

.sbw-input-error {
    border-color: #ff5252 !important;
    background: rgba(255, 82, 82, 0.1) !important;
}

/* Radio Cards Grid for Course Selection */
.sbw-af-radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.sbw-af-radio-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.35s ease;
}

.sbw-af-radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.sbw-af-rc-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.sbw-af-rc-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.sbw-af-rc-sub {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.sbw-af-radio-card.active {
    background: rgba(255, 182, 6, 0.15);
    border-color: var(--sbw-secondary, #FFB606);
    box-shadow: 0 8px 20px rgba(255, 182, 6, 0.25);
    transform: translateY(-3px);
}

.sbw-af-radio-card.active .sbw-af-rc-title {
    color: var(--sbw-secondary, #FFB606);
}

/* Action Buttons Footer Bar */
.sbw-af-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
}

.sbw-af-btn {
    height: 50px;
    padding: 0 28px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sbw-af-btn-prev {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sbw-af-btn-prev:hover {
    background: rgba(255, 255, 255, 0.22);
}

.sbw-af-btn-next {
    position: relative;
    background-color: var(--sbw-secondary, #FFB606);
    color: #091D17;
    overflow: hidden;
    z-index: 1;
}

.sbw-af-btn-next::before,
.sbw-af-btn-next::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    background-color: var(--sbw-primary, #058349);
    z-index: -1;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbw-af-btn-next::before {
    left: 0;
    transform: translateX(-100%);
}

.sbw-af-btn-next::after {
    right: 0;
    transform: translateX(100%);
}

.sbw-af-btn-next:hover::before,
.sbw-af-btn-next:hover::after {
    transform: translateX(0);
}

.sbw-af-btn-next:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(5, 131, 73, 0.45);
}

.sbw-af-btn-submit {
    position: relative;
    background-color: #25D366; /* WhatsApp Green */
    color: #ffffff;
    overflow: hidden;
    z-index: 1;
}

.sbw-af-btn-submit::before,
.sbw-af-btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 51%;
    background-color: var(--sbw-secondary, #FFB606);
    z-index: -1;
    transition: transform 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

.sbw-af-btn-submit::before {
    left: 0;
    transform: translateX(-100%);
}

.sbw-af-btn-submit::after {
    right: 0;
    transform: translateX(100%);
}

.sbw-af-btn-submit:hover::before,
.sbw-af-btn-submit:hover::after {
    transform: translateX(0);
}

.sbw-af-btn-submit:hover {
    color: #091D17 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 182, 6, 0.45);
}

.sbw-btn-anim .sbw-btn-text {
    position: relative;
    z-index: 2;
}

/* Responsive Queries */
@media (max-width: 991px) {
    .sbw-af-radio-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .sbw-af-section {
        padding: 60px 0;
    }
    .sbw-af-container {
        padding: 0 12px;
    }
    .sbw-af-form-wrapper {
        padding: 20px 14px;
        border-radius: 20px;
    }
    .sbw-af-tabs-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding-bottom: 16px;
        margin-bottom: 24px;
    }
    .sbw-af-tab-item {
        padding: 8px 10px;
        gap: 8px;
        justify-content: center;
        border-radius: 30px;
    }
    .sbw-af-tab-num {
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    .sbw-af-tab-label {
        font-size: 12px;
        letter-spacing: 0;
    }
    .sbw-af-step-heading {
        font-size: 19px;
        margin-bottom: 20px;
    }
    .sbw-af-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .sbw-af-radio-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sbw-af-main-title {
        font-size: 28px;
    }
    .sbw-af-actions {
        margin-top: 24px;
        padding-top: 18px;
    }
    .sbw-af-btn {
        height: 46px;
        padding: 0 20px;
        font-size: 13.5px;
    }
}
