﻿:root {
    --primary-blue: #3d4465;
    --accent-green: #4caf50;
    --text-gray: #777;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: aliceblue;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    z-index: 9999; /* stays above form */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: saturate(1.2) blur(2px);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 24px;
}

.logo {
    height: 40px;
    object-fit: contain;
}

.form-container {
    margin-top: 90px; /* space below header */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    backdrop-filter: saturate(1.2) blur(2px);
}

.form-container {
    background: white;
    width: 100%;
    max-width: 80%;
    display: flex; /* Side-by-side on desktop */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Sidebar Styling */
.sidebar {
    /* background-color: var(--primary-blue); */
    background-color: #0a367a;
    color: white;
    padding: 40px 20px;
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step {
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0.6;
}

    .step.active {
        opacity: 1;
    }

.step-number {
    background: rgba(255,255,255,0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

.step.active .step-number {
    background: var(--accent-green);
}

/* Form Area Styling */
.form-content {
    padding: 40px;
    width: 70%;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .input-group label {
        font-size: 0.8rem;
        color: var(--text-gray);
        margin-bottom: 5px;
    }

input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.full {
    margin-bottom: 20px;
}

.next-btn {
    background: var(--accent-green);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    float: right;
}

/* RESPONSIVE BREAKPOINT */
@media (max-width: 768px) {
    .form-container {
        flex-direction: column; /* Stack sidebar on top */
    }

    .sidebar {
        width: 100%;
        flex-direction: row; /* Horizontal steps on mobile */
        justify-content: space-around;
        padding: 20px;
    }

    .step-text {
        display: none;
    }
    /* Hide text on small screens */

    .form-content {
        width: 100%;
        padding: 20px;
    }

    .row {
        flex-direction: column;
    }
    /* Inputs stack vertically */
}


/* .section-title{
    font-weight: 600;
    margin: 25px 0 10px;
    color:#333;
    border-left:4px solid #4caf50;
    padding-left:8px;
} */

.section-title {
    font-weight: 600;
    margin: 25px 0 20px;
    color: #333;
    /* border-left:4px solid #4caf50; */
    border-left: 4px solid #0D47A1;
    padding-left: 8px;
    border-radius: 7px;
}

.row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

    .input-group label {
        font-size: .85rem;
        margin-bottom: 5px;
        color: #666;
    }

textarea, input, select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 100%;
}

.full {
    margin-bottom: 15px;
}

.verify-wrapper {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

.verify-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    /* background:#4caf50; */
    background: #0D47A1;
    color: white;
    cursor: pointer;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
}

.back-btn {
    background: #ccc;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
}

.next-btn {
    background: #4caf50;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    color: white;
}


.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    gap: 12px;
}

.btn-back,
.btn-next {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 110px;
    transition: all .25s ease;
}

/* Back Button */
.btn-back {
    background: #f1f3f5;
    color: #333;
    border: 1px solid #d6d6d6;
}

    .btn-back:hover {
        background: #e4e7eb;
    }

/* Next Button */
.btn-next {
    /* background: #3b82f6; */
    background: #0D47A1;
    ;
    color: white;
    border: 1px solid #2364d2;
}

    .btn-next:hover {
        /* background: #2563eb; */
        background: #0D47A1;
    }

    /* Disabled State */
    .btn-next:disabled,
    .btn-back:disabled {
        opacity: .6;
        cursor: not-allowed;
    }

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .password-wrapper input {
        width: 100%;
        padding-right: 36px;
    }

.toggle-eye {
    position: absolute;
    right: 10px;
    font-size: 16px;
    cursor: pointer;
    opacity: .7;
}

    .toggle-eye:hover {
        opacity: 1;
    }

.input-error {
    border: 1px solid #ff4d4d !important;
    background: #fff5f5;
}

.error-text {
    color: #ff3b3b;
    font-size: 12px;
    margin-top: 4px;
}


/* Mobile Alignment */
@media (max-width: 640px) {
    .form-actions {
        flex-direction: row;
        align-items: stretch;
    }

    .btn-back,
    .btn-next {
        width: 100%;
    }

    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 56px;
        background: #ffffff;
        border-bottom: 1px solid #e5e7eb;
        display: flex;
        align-items: center;
        z-index: 9999; /* stays above form */
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        backdrop-filter: saturate(1.2) blur(2px);
    }

    .header-inner {
        display: flex;
        align-items: center;
        height: 100%;
        padding-left: 20px;
    }

    .logo {
        height: 30px;
        object-fit: contain;
    }

    .form-container {
        margin-top: 64px; /* space below header */
    }
}



/* 🟢 Compact Mobile View */
@media (max-width: 640px) {

    h2 {
        font-size: 18px;
        margin: 6px 0;
    }

    p {
        font-size: 14px;
        margin: 6px 0;
    }

    .form-container {
        border-radius: 8px;
        max-width: 900px;
        box-shadow: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
        backdrop-filter: saturate(1.2) blur(2px);
    }

    .sidebar {
        padding: 12px;
        gap: 10px;
    }

    .step-number {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .form-content {
        padding: 14px;
    }

    /* Reduce spacing between rows */
    .row {
        gap: 10px;
        margin-bottom: 10px;
        flex-direction: column;
    }

    .section-title {
        margin: 15px 0 10px;
        font-size: 14px;
    }

    /* Smaller input controls */
    input,
    textarea,
    select {
        padding: 8px;
        font-size: 13px;
        width: 100%;
    }

    .verify-wrapper {
        flex-direction: row;
        gap: 6px;
    }

    .verify-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    /* Compact buttons */
    .form-actions {
        margin-top: 14px;
        gap: 8px;
    }

    .btn-back,
    .btn-next {
        padding: 8px 10px;
        font-size: 13px;
        min-width: auto;
        border-radius: 8px;
        width: 50%;
    }

    /* Reduce textarea height */
    textarea {
        min-height: 60px;
    }
}



.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }



#emailOtpBox {
    margin-top: 6px;
}

.otp-input {
    padding: 8px;
    width: 100%;
    margin-right: 6px;
    margin-bottom: 10px;
    margin-top: 4px;
}

.verify-otp-btn,
.resend-otp-btn,
.edit-email-btn {
    padding: 6px 10px;
    margin-right: 4px;
    cursor: pointer;
}

.email-verified-badge {
    color: green;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
}

    .email-verified-badge i {
        margin-right: 4px;
    }


#mobileOtpBox {
    margin-top: 6px;
}

.mobile-verified-badge {
    color: green;
    font-weight: 600;
    display: inline-block;
    font-size: 14px;
}

.verified-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: #16a34a;
    font-size: 13px;
    font-weight: 600;
}

    .verified-check i {
        color: #16a34a;
    }

    .verified-check:hover {
        text-decoration: underline;
    }

.verify-wrapper {
    position: relative;
}

input.verified-input {
    padding-right: 32px; /* space for check icon */
}

.verified-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 16px;
}






.preview-box {
    margin-top: 8px;
    padding: 8px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    display: none;
}

    .preview-box img {
        max-width: 230px;
        height: 100px;
        border-radius: 6px;
    }

.preview-file-name {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
}


.step.completed .step-text {
    color: #22c55e !important; /* green */
}

.step.completed .step-number {
    background: #22c55e !important;
    color: #fff !important;
}

.auto-cap{
    text-transform: capitalize;
}

.text-danger{
    color:red;
}