/* Split Layout specific styles */
body {
    background-color: #FAFAFA;
}

.split-layout {
    display: flex;
    min-height: 100vh;
}

.split-sidebar {
    width: 320px;
    background-color: var(--white);
    border-right: 1px solid var(--border);
    padding: 2rem 1.5rem;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.split-main {
    flex: 1;
    margin-left: 320px;
    padding: 2rem 3rem;
    display: flex;
    flex-direction: column;
}

@media (max-width: 991.98px) {
    .split-layout {
        flex-direction: column;
    }
    .split-sidebar {
        width: 100%;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
    }
    .split-main {
        margin-left: 0;
        padding: 1.5rem;
    }
}

/* Sidebar Logo & Stepper */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}
.sidebar-logo img {
    width: 48px;
    height: 48px;
}
.sidebar-logo .brand-text {
    font-weight: 800;
    color: var(--emerald-900);
    line-height: 1.2;
    font-size: 1.1rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-500);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

/* Vertical Stepper */
.v-stepper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
    position: relative;
}

.v-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 17px;
    width: 2px;
    background-color: var(--cream-200);
    z-index: 1;
}

.v-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 2;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.v-step.active, .v-step.completed {
    opacity: 1;
}

.v-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--cream-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-500);
    transition: all 0.3s ease;
}

.v-step.active .v-step-circle {
    background-color: var(--emerald-600);
    border-color: var(--emerald-600);
    color: var(--white);
}

.v-step.completed .v-step-circle {
    background-color: var(--emerald-50);
    border-color: var(--emerald-600);
    color: var(--emerald-600);
}

.v-step-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-700);
    line-height: 1.3;
}
.v-step.active .v-step-label {
    color: var(--emerald-900);
}

/* Support Box */
.support-box {
    background-color: var(--cream-50);
    border: 1px solid var(--cream-200);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}
.support-box i {
    color: var(--emerald-600);
    font-size: 1.5rem;
}
.support-box .support-text {
    font-size: 0.8rem;
    color: var(--text-700);
}
.support-box .support-phone {
    font-weight: 700;
    color: var(--emerald-600);
    font-size: 1.1rem;
    margin: 0.25rem 0;
}

/* Main Content Header */
.main-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.main-header-top h1 {
    font-weight: 700;
    color: var(--emerald-900);
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}
.main-header-top .academic-year {
    color: var(--emerald-600);
}
.main-header-top .registration-info {
    background-color: var(--white);
    border: 1px solid var(--cream-200);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
}
.registration-info .label {
    font-size: 0.75rem;
    color: var(--text-500);
    margin-bottom: 0.5rem;
}
.registration-info .badge-draft {
    background-color: var(--gold-100);
    color: var(--gold-600);
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
}

/* Horizontal Stepper (Inside Main) */
.h-stepper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}
.h-stepper::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 30px;
    right: 30px;
    height: 2px;
    background-color: var(--cream-200);
    z-index: 1;
}
.h-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100px;
}
.h-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--cream-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-500);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}
.h-step.active .h-step-circle {
    background-color: var(--emerald-600);
    border-color: var(--emerald-600);
    color: var(--white);
}
.h-step.completed .h-step-circle {
    background-color: var(--white);
    border-color: var(--cream-200);
    color: var(--emerald-600);
}
.h-step-label {
    font-size: 0.75rem;
    color: var(--text-500);
    font-weight: 500;
    line-height: 1.2;
}
.h-step.active .h-step-label {
    color: var(--emerald-600);
    font-weight: 600;
}

/* Form Container */
.premium-form-container {
    background-color: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--cream-200);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}
.premium-form-container h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-900);
    margin-bottom: 0.5rem;
}
.premium-form-container .subtitle {
    color: var(--text-500);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.premium-form-container .divider {
    height: 3px;
    width: 40px;
    background-color: var(--gold-500);
    margin-bottom: 2rem;
}

/* Input Group Enhancements */
.input-group-text {
    background-color: var(--white);
    border: 1px solid #E5E7EB;
    border-right: none;
    color: var(--text-500);
}
.form-control.with-icon {
    border-left: none;
    padding-left: 0;
}
.form-control:focus + .input-group-text,
.input-group-text:has(+ .form-control:focus) {
    border-color: var(--emerald-500);
}

.form-label {
    font-weight: 600;
    color: var(--text-900);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}
.form-label .text-danger {
    color: #EF4444 !important;
}

/* Gender Card Styling */
.gender-card {
    border: 2px solid #E5E7EB;
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}
.gender-card:hover {
    background-color: var(--emerald-50);
    border-color: var(--emerald-200);
}
.gender-card img {
    width: 72px;
    height: 72px;
    margin-bottom: 0.75rem;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.2s ease;
}
.gender-card:hover img {
    transform: scale(1.05);
}
.gender-card .fw-bold {
    color: var(--text-900);
}
.gender-input:checked + .gender-card {
    border-color: var(--emerald-600);
    background-color: var(--emerald-50);
}
.gender-input:checked + .gender-card::before {
    content: '\f058'; /* FontAwesome Check Circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--emerald-600);
    font-size: 1.25rem;
}
.gender-input {
    display: none;
}

/* Bottom Action & Info */
.info-box {
    background-color: var(--gold-100);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}
.info-box i {
    color: var(--gold-600);
    font-size: 1.5rem;
}
.info-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gold-600);
}
.info-box strong {
    color: var(--gold-600);
}

.success-box {
    background-color: var(--emerald-50);
    border: 1px solid var(--emerald-100);
    border-radius: var(--radius-md);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.success-box i {
    color: var(--emerald-600);
    font-size: 1.25rem;
}
.success-box p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--emerald-900);
    font-weight: 500;
}
.success-box span {
    display: block;
    font-size: 0.75rem;
    color: var(--text-500);
    font-weight: normal;
}

/* Trust Badges Footer */
.trust-badges {
    background-color: var(--emerald-50);
    padding: 3rem 0;
    margin-top: auto;
}
.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.trust-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--emerald-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    font-size: 1.25rem;
}
.trust-text h5 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--emerald-900);
    margin-bottom: 0.25rem;
}
.trust-text p {
    font-size: 0.75rem;
    color: var(--text-500);
    margin: 0;
}

/* Animations */
.form-step {
    animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
