/* ===========================================
   LAYOUT: PROFILE CREATION FLOW
=========================================== */
body{
    overflow-y: scroll;
    scroll-behavior: smooth;
}

/* ===========================================
   CHECKBOX & RADIO GROUPS (Unified Style)
=========================================== */
.checkbox-group,
.radio-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-check {
    position: relative;
    display: inline-block;
}

.form-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.form-check-label {
    display: inline-block;
    padding: 12px 24px;
    border: 1.5px solid #ccc;
    border-radius: 30px;
    background-color: #fff;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.25s ease;
    min-width: 50%;
    text-align: center;
}

.form-check-label:hover {
    border-color: var(--primary-color);
    background-color: rgba(47, 42, 255, 0.08); /* Updated to use primary color */
}

.form-check-input:checked + .form-check-label {
    background: var(--primary-color);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(47, 42, 255, 0.25); /* Updated to use primary color */
}

/* Ensure form steps have consistent internal spacing */
.form-step {
    display: none;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem; /* Added consistent padding */
}

.form-step h5 {
    color: var(--primary-color);
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

.form-group-row {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 1rem;
}

.form-group-row .form-label {
    width: 150px; /* adjust to your design */
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    text-align: right;
}

.form-group-row .form-control {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1.5px solid #ccc;
    border-radius: 10px;
    background-color: #fff;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.form-group-row .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(47, 42, 255, 0.15);
}

/* Make it responsive */
@media (max-width: 768px) {
    .form-group-row {
        flex-direction: column;
        align-items: stretch;
    }
    .form-group-row .form-label {
        width: 100%;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .step-buttons .btn-outline-secondary {
        width: 50%;
    }
    .step-buttons .btn-custom {
        width: 50%;
    }
}

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

#profile-creation {
    display: flex;
    flex-direction: column;
}

.display-vertical{
    flex-direction: column;
}

/* Progress bar under navbar */
.progress {
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 0;
    margin: 0;
    width: 100%;
    position: relative;
    top: 0;
    z-index: 1000;
}

.progress-bar {
    background: var(--accent-color);
    transition: width 0.4s ease;
}

/* Scrollable content area */
.profile-content {
    flex: 1;
}

/* ===========================================
   FIXED BOTTOM NAVIGATION BUTTONS
=========================================== */
.step-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(250, 250, 250, 0.97), rgba(250, 250, 250, 0.85));
    backdrop-filter: blur(6px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    z-index: 20;
}

.step-buttons .btn {
    border-radius: 25px;
    padding: 10px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.step-buttons .btn-custom {
    background: var(--primary-gradient);
    width: 10%;
    color: white;
    border: none;
    box-shadow: 0 4px 10px rgba(12, 4, 191, 0.2);
}

.step-buttons .btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(12, 4, 191, 0.2);
}

.step-buttons .btn-outline-secondary {
    border: 1px solid #bbb;
    color: #333;
    width: 10%;
}

.step-buttons .btn-outline-secondary:hover {
    background: #f0f0f0;
}

/* ===========================================
   RESPONSIVE ADJUSTMENTS
=========================================== */
@media (max-width: 576px) {
    .form-check-label {
        min-width: 120px;
        padding: 10px 18px;
        font-size: 0.95rem;
    }
    .step-buttons {
        padding: 0.8rem 1rem;
    }
    .step-buttons .btn-outline-secondary {
        width: 50%;
    }
    .step-buttons .btn-custom {
        width: 50%;
    }
}
