/* =========================================================
   COLORS & VARIABLES (WHITE + PURPLE)
========================================================= */
:root {
    --purple: #6A38F5;
    --purple-dark: #4f2ddf;
    --danger: #e11d48;
    --border: #e5e7eb;
    --bg: #f5f7fb;
    --text: #111827;
    --muted: #6b7280;
}

/* =========================================================
   PAGE LAYOUT
========================================================= */
.driver-signup-page {
    background: var(--bg);
    min-height: 100vh;
    padding: 40px 0 60px;
}

.driver-signup-layout {
    max-width: 1200px;
    margin: auto;
    display: flex;
    gap: 32px;
    padding: 0 16px;
}

/* =========================================================
   LEFT SIDEBAR STEPS
========================================================= */
.signup-sidebar {
    width: 240px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 18px 0;
    flex-shrink: 0;
}

.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-size: 14px;
    color: var(--muted);
    border-left: 4px solid transparent;
}

.step-item.active {
    color: var(--purple);
    font-weight: 600;
    border-left-color: var(--purple);
}

.step-indicator {
    width: 10px;
    height: 10px;
    background: var(--border);
    border-radius: 50%;
}

.step-item.active .step-indicator {
    background: var(--purple);
}

/* =========================================================
   MAIN CONTENT
========================================================= */
.signup-main {
    flex: 1;
}

/* =========================================================
   PROGRESS HEADER
========================================================= */
.signup-progress-header {
    margin-bottom: 14px;
}

.progress-percent {
    font-size: 13px;
    color: var(--muted);
}

.progress-track {
    height: 10px;
    background: #e5e7eb;
    border-radius: 20px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--purple);
    border-radius: 20px;
}

.mobile-step {
    display: none;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

/* =========================================================
   CARD
========================================================= */
.signup-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--border);
    margin-top: 18px;
}

.card-title {
    background: linear-gradient(90deg, #0f172a, #1e293b);
    color: #fff;
    padding: 14px 22px;
    font-weight: 600;
    border-radius: 10px 10px 0 0;
}

/* =========================================================
   REQUIRED NOTE
========================================================= */
.required-alert {
    padding: 12px 22px;
    background: #fff7ed;
    color: #92400e;
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}

.required-star {
    color: var(--danger);
    font-weight: 700;
}

/* =========================================================
   BIO LAYOUT
========================================================= */
.bio-layout {
    display: flex;
    gap: 36px;
    padding: 26px;
}

.bio-photo {
    width: 180px;
    text-align: center;
}

/* =========================================================
   PASSPORT PHOTO CIRCLE
========================================================= */
.photo-circle {
    width: 120px;
    height: 120px;
    background: #e5e7eb;
    border-radius: 50%;
    margin: auto;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-label {
    font-size: 13px;
    color: var(--danger);
    margin-top: 8px;
}

.photo-hint {
    font-size: 11px;
    color: var(--danger);
}

/* =========================================================
   FORM
========================================================= */
.bio-fields {
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 5px;
}

.form-control,
select.form-control {
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0 12px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-control:focus,
select.form-control:focus {
    outline: none;
    border-color: var(--purple);
}

/* =========================================================
   PHONE INPUT
========================================================= */
.phone-group {
    display: flex;
    width: 100%;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
}

.phone-group:focus-within {
    border-color: var(--purple);
}

.country-box {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 12px;
    background: #f1f5f9;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}

.flag-img {
    width: 22px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
}

.phone-input {
    flex: 1;
    border: none;
    padding: 0 12px;
    font-size: 14px;
}

.phone-input:focus {
    outline: none;
}

/* =========================================================
   TERMS
========================================================= */
.terms-section {
    border-top: 1px solid var(--border);
    padding: 22px;
}

.terms-check {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.7;
}

.terms-check input {
    margin-top: 4px;
}

.terms-check a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.terms-extra {
    display: none;
    font-size: 13px;
    color: var(--muted);
    margin-left: 26px;
    margin-top: 8px;
}

/* =========================================================
   BUTTON
========================================================= */
.form-actions {
    padding: 18px 22px;
    text-align: right;
    border-top: 1px solid var(--border);
}

.btn-continue {
    background: var(--purple);
    color: #fff;
    border: none;
    padding: 10px 26px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
}

.btn-continue:hover {
    background: var(--purple-dark);
}

.btn-continue:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* =========================================================
   RESPONSIVE — TABLET
========================================================= */
@media (max-width: 991px) {

    .driver-signup-layout {
        flex-direction: column;
    }

    .signup-sidebar {
        width: 100%;
        overflow-x: auto;
    }

    .step-list {
        display: flex;
    }

    .step-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }

    .step-item.active {
        border-bottom-color: var(--purple);
    }

    .bio-layout {
        flex-direction: column;
        align-items: center;
    }

    .bio-photo {
        width: 100%;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .mobile-step {
        display: block;
    }
}

/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */
@media (max-width: 767px) {

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        text-align: center;
    }

    .terms-extra {
        margin-left: 0;
    }
}

/* =========================================================
   RESPONSIVE — SMALL PHONES
========================================================= */
@media (max-width: 480px) {

    .driver-signup-page {
        padding: 24px 0 40px;
    }

    .photo-circle {
        width: 100px;
        height: 100px;
    }

    .btn-continue {
        width: 100%;
    }
}


.terms-section {
    margin-top: 22px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
}

.terms-check input {
    margin-top: 4px;
}

.terms-link {
    color: #6239F7;
    font-weight: 500;
    text-decoration: underline;
}

.terms-link:hover {
    text-decoration: none;
}

.terms-note {
    margin-top: 8px;
    font-size: 12.5px;
    color: #6b7280;
}

.required-star {
    color: #e11d48; /* professional red */
    font-weight: 600;
}
