/* =========================================
   BRIGHT ANGEL - CANDIDATE REGISTRATION UI
   ========================================= */

body {
    background-color: #f8fafc;
    font-family: 'Times New Roman', Times, serif;
    color: #334155;
    margin: 0;
    padding: 0;
}

/* --- Main Layout Wrapper --- */
.reg-page-wrapper {
    min-height: calc(100vh - 300px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 20px;
}

.reg-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* --- Left Sidebar (Branding & Progress) --- */
.reg-sidebar {
    width: 35%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 50px 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.reg-sidebar h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.reg-sidebar p {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Progress Bar UI */
.reg-progress-text {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #38bdf8; /* Accent Blue */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reg-progress-track {
    height: 8px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    width: 100%;
    overflow: hidden;
}

.reg-progress-fill {
    height: 100%;
    background: #38bdf8;
    border-radius: 50px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Right Form Area --- */
.reg-form-area {
    width: 65%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reg-step {
    display: none;
    animation: fadeIn 0.4s ease;
    border: none;
    padding: 0;
    margin: 0;
}

.reg-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.reg-step h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
}

/* --- Form Inputs --- */
.reg-input-group {
    margin-bottom: 15px;
}

.reg-input-group label {
    display: block;
    font-weight: 700;
    color: #475569;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.reg-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: #334155;
}

.reg-control:focus {
    border-color: #3b82f6;
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

select.reg-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23475569' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

input[type="file"].reg-control {
    padding: 9px 15px;
    background: #ffffff;
    font-size: 0.85rem;
}

textarea.reg-control {
    resize: vertical;
}

/* --- Buttons --- */
.reg-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    gap: 15px;
}

.btn-reg {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    flex: 1;
}

.btn-primary-reg {
    background: #3b82f6;
    color: white;
}

.btn-primary-reg:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary-reg {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary-reg:hover {
    background: #cbd5e1;
    color: #0f172a;
}

.btn-success-reg {
    background: #10b981;
    color: white;
}

.btn-success-reg:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

.reg-footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
    color: #64748b;
}

.reg-footer-link a {
    color: #3b82f6;
    font-weight: 700;
    text-decoration: none;
}

.reg-footer-link a:hover {
    text-decoration: underline;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .reg-container { flex-direction: column; }
    .reg-sidebar { width: 100%; padding: 40px 30px; text-align: center; }
    .reg-form-area { width: 100%; padding: 40px 30px; }
}
@media (max-width: 576px) {
    .reg-nav-buttons { flex-direction: column-reverse; }
}