/* --- Registration Page Specific Styles --- */

/* Use variables from the main style.css for consistency */
:root {
    --register-page-bg: #f8f9fa;
    --form-bg: #ffffff;
    --input-bg: #f8f9fa;
    --input-border: #dee2e6;
    --input-focus-border: #007AFF;
    --success-color: #198754;
    --progress-step-color: #adb5bd;
    --progress-step-active-color: #007AFF;
    --progress-line-color: #e9ecef;
}

.register-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--register-page-bg);
    padding: 4rem 2rem;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 600px; /* Wider for registration form */
}

.form-card {
    background-color: var(--form-bg);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border-color);
}

.logo-link {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.form-title {
    font-family: var(--font-family-heading);
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.form-intro {
    text-align: center;
    color: var(--text-secondary-color);
    margin-bottom: 2rem;
}

/* --- Progress Bar --- */
.progress-bar-container {
    display: flex;
    flex-direction: row; /* This is the key change for horizontal layout */
    align-items: flex-start; /* Align items to the top */
    justify-content: space-between;
    width: 100%;
    margin-bottom: 2.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--progress-step-color);
    transition: color 0.3s ease;
    flex-basis: 80px; /* Give each step a basis width */
    flex-shrink: 0;
}

.progress-step.active {
    color: var(--progress-step-active-color);
    font-weight: 700;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--progress-line-color);
    border: 2px solid var(--progress-line-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 700;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative; /* For z-index to be on top of the line */
    z-index: 2;
}

.progress-step.active .step-icon {
    background-color: #fff;
    border-color: var(--progress-step-active-color);
}

.step-label {
    font-size: 0.85rem;
    text-align: center;
}

.progress-line {
    flex-grow: 1;
    height: 2px;
    background-color: var(--progress-line-color);
    position: relative;
    top: 18px; /* Vertically center the line with the icons */
    z-index: 1;
}


/* --- Form Steps --- */
.form-step {
    display: none;
}
.form-step.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-navigation {
    display: flex;
    justify-content: space-between;
}

.summary-box {
    background-color: var(--input-bg);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--input-border);
}

.form-check.is-invalid .form-check-label {
    color: #dc3545; /* Bootstrap's danger color */
}

/* --- General Form Styles --- */
.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #adb5bd;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
}
.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 42%;
    height: 1px;
    background-color: var(--border-color);
}
.divider::before { left: 0; }
.divider::after { right: 0; }

.success-icon {
    color: var(--success-color);
    font-size: 3rem;
}

/* --- Responsive Design --- */
@media (max-width: 576px) {
    .register-wrapper {
        padding: 1rem;
    }
    .form-card {
        padding: 2rem 1.5rem;
        box-shadow: none;
        border: none;
        background-color: transparent;
    }
    .step-label {
        display: none; /* Hide labels on small screens to save space */
    }
}
