@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

* {
    box-sizing: border-box
}

body {
    margin: 0;
    min-height: 100vh;
    background: #dce8e7;
    font-family: Tajawal, Arial, sans-serif;
    color: #102a2b;
    display: grid;
    place-items: center
}

.phone-shell {
    position: relative;
    width: min(100%, 430px);
    min-height: 100vh;
    background: #fff;
    padding: 24px 22px 34px;
    overflow: hidden
}

.brand {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 36px;
    display: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #0f766e;
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 19px
}

.brand strong {
    display: block;
    font-size: 18px
}

.brand small {
    color: #6b7e7f;
    font-size: 12px
}

.back {
    position: absolute;
    top: 24px;
    right: 22px;
    z-index: 9;
    border: 0;
    background: #eff6f5;
    color: #0f766e;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 16px
}

.hidden {
    display: none
}

.text-center {
    text-align: center !important
}

.screen {
    display: none;
    animation: in .28s ease
}

.screen.active {
    display: block
}

@keyframes in {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.welcome {
    margin: 4px 0 30px;
    text-align: center
}

.eyebrow {
    display: inline-block;
    color: #0f766e;
    background: #e6f6f3;
    border-radius: 99px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px
}

.welcome h1 {
    font-size: 26px;
    line-height: 1.35;
    margin: 6px 0 8px
}

.welcome p {
    color: #718181;
    line-height: 1.6;
    margin: 0;
    font-size: 14px
}

.compact {
    padding-top: 20px;
    margin-bottom: 22px
}

.compact h1 {
    font-size: 24px
}

.role-card {
    font: inherit;
    text-align: right;
    width: 100%;
    background: #fff;
    border: 1px solid #e5eceb;
    border-radius: 18px;
    padding: 17px 14px;
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 12px 0;
    cursor: pointer;
    transition: .2s
}

.role-card:hover {
    transform: translateY(-2px);
    border-color: #0f766e;
    box-shadow: 0 8px 22px #0f766e18
}

.role-icon {
    width: 51px;
    height: 51px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 21px
}

.customer .role-icon {
    background: #e6f6f3;
    color: #0f766e
}

.driver .role-icon {
    background: #ecedff;
    color: #4f46e5
}

.role-card b {
    display: block;
    font-size: 17px
}

.role-card small {
    display: block;
    color: #708180;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.45
}

.arrow {
    margin-right: auto;
    color: #9daead
}

.terms,
.login-link {
    text-align: center;
    color: #7b8a8b;
    font-size: 12px;
    line-height: 1.9;
    margin: 25px 8px
}

.terms a,
.login-link a {
    color: #0f766e;
    font-weight: 800;
    text-decoration: none
}

.field {
    display: block;
    margin-bottom: 16px
}

.field>span {
    font-size: 13px;
    font-weight: 800;
    display: block;
    margin: 0 3px 7px
}

.field>div {
    height: 52px;
    border: 1px solid #dce6e5;
    border-radius: 13px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    gap: 10px;
    transition: .2s
}

.field>div:focus-within {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px #0f766e13
}

.field i {
    color: #0f766e
}

.field input,
.field select {
    border: 0;
    outline: 0;
    font: inherit;
    width: 100%;
    background: transparent;
    color: #193536
}

.phone-field {
    direction: ltr
}

.phone-field b {
    font-size: 13px;
    color: #476362;
    border-left: 1px solid #dbe5e4;
    padding-left: 9px
}

.phone-field input {
    text-align: right;
    direction: rtl
}

.eye {
    border: 0;
    background: transparent;
    color: #78908f
}

.check {
    display: flex;
    gap: 8px;
    font-size: 12px;
    align-items: center;
    color: #526565;
    margin: 4px 0 20px
}

.check input {
    accent-color: #0f766e;
    width: 16px;
    height: 16px
}

.primary {
    font: 800 15px Tajawal;
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: #0f766e;
    color: #fff;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 18px #0f766e42
}

.primary:active {
    transform: scale(.98)
}

.driver-only {
    display: none
}

.phone-shell.driver-mode .driver-only {
    display: block
}

.success {
    text-align: center;
    padding-top: 80px
}

.success-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #def7ed;
    color: #0f9f69;
    display: grid;
    place-items: center;
    font-size: 34px;
    margin: 0 auto 22px
}

.success h1 {
    font-size: 26px
}

.success p {
    color: #708180;
    line-height: 1.8;
    margin: 0 0 30px
}

@media(min-width:500px) {
    .phone-shell {
        min-height: 780px;
        border-radius: 30px;
        box-shadow: 0 20px 70px #173a3a30
    }
}

.tracking-timeline {
    position: relative;
    padding-right: 20px;
    margin: 25px 0 10px;
    text-align: right
}

.tracking-timeline::before {
    content: '';
    position: absolute;
    right: 5px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e5eceb
}

.track-step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: #a0b0b0;
    font-size: 15px;
    position: relative
}

.track-step:last-child {
    margin-bottom: 0
}

.track-step .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5eceb;
    position: absolute;
    right: -20px
}

.track-step.done {
    color: #10b981;
    font-weight: bold
}

.track-step.done .dot {
    background: #10b981;
    box-shadow: 0 0 0 3px #10b98125
}

.track-step.active {
    color: #0f766e;
    font-weight: 800
}

.track-step.active .dot {
    background: #0f766e;
    box-shadow: 0 0 0 4px #0f766e25
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    pointer-events: none;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}