/* ============================================================
   Driver lead card — Need Booking / Need Job
   ============================================================ */

.huc-dlc {
    padding: 0 0 var(--huc-section-space);
    background-color: var(--huc-white-clr);
}

.huc-dlc__card {
    padding: 1.5rem 1.75rem 1.25rem;
    border-radius: 18px;
    background-color: var(--huc-white-clr);
    box-shadow: 0 16px 40px rgba(var(--huc-blue-rgb), 0.1);
}

.huc-dlc__tabs {
    display: flex;
    align-items: flex-end;
    gap: 1.75rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--huc-outline-stroke);
}

.huc-dlc__tab {
    position: relative;
    padding: 0 0 0.7rem;
    border: 0;
    background: transparent;
    color: var(--huc-darkGray-clr);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.huc-dlc__tab.is-active {
    font-weight: 800;
}

.huc-dlc__tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background-color: #f5c400;
}

.huc-dlc__headline {
    margin: 0 0 1.25rem;
    max-width: 58rem;
    font-family: var(--font-secondary);
    font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.25rem);
    font-weight: 800;
    line-height: 1.45;
    color: var(--huc-darkGray-clr);
}

.huc-dlc__row {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(200px, 1.1fr) auto auto;
    gap: 0.75rem;
    align-items: stretch;
}

.huc-dlc__field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    border-radius: 10px;
    background-color: #f3f4f6;
}

.huc-dlc__field--city {
    z-index: 3;
}

.huc-dlc__icon {
    position: absolute;
    left: 0.9rem;
    color: #9aa3b2;
    font-size: 0.95rem;
    pointer-events: none;
}

.huc-dlc__input {
    width: 100%;
    height: 52px;
    padding: 0 1rem 0 2.4rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--huc-darkGray-clr);
    font-size: 0.9375rem;
    outline: none;
}

.huc-dlc__prefix {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.85rem;
    color: var(--huc-darkGray-clr);
    font-size: 0.9375rem;
    font-weight: 700;
    white-space: nowrap;
}

.huc-dlc__prefix img {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.huc-dlc__city-list {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    z-index: 5;
    margin: 0;
    padding: 0.35rem 0;
    list-style: none;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 10px;
    background: var(--huc-white-clr);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.huc-dlc__city-item {
    padding: 0.55rem 1rem;
    color: var(--huc-darkGray-clr);
    font-size: 0.875rem;
    cursor: pointer;
}

.huc-dlc__city-item:hover {
    background: rgba(var(--huc-orange-rgb), 0.1);
}

.huc-dlc__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 1.35rem;
    border: 0;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.huc-dlc__btn--code {
    background-color: #1b7a45;
    color: var(--huc-white-clr);
}

.huc-dlc__btn--app {
    background-color: #f5c400;
    color: var(--huc-darkGray-clr);
}

.huc-dlc__legal {
    margin: 1rem 0 0;
    font-size: 0.75rem;
    line-height: 1.55;
    color: #8b93a1;
}

.huc-dlc__legal a {
    color: inherit;
    text-decoration: underline;
}

.huc-dlc__row {
    margin-bottom: 0.35rem;
}

.huc-dlc__field {
    flex-wrap: nowrap;
    margin-bottom: 0.35rem;
}

.huc-dlc__field--phone {
    flex-wrap: nowrap;
}

.huc-dlc__field--phone .huc-dlc__prefix {
    flex-shrink: 0;
}

.huc-dlc__input--phone {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding-left: 0.45rem;
}

.huc-dlc__error {
    position: absolute;
    left: 0.5rem;
    bottom: -1.15rem;
    margin: 0;
    font-size: 0.7rem;
    color: #dc3545;
    white-space: nowrap;
}

.huc-dlc__error--block {
    position: static;
    margin-top: 0.75rem;
    white-space: normal;
}

.huc-dlc__phone-display {
    color: #1b7a45;
    font-weight: 800;
}

.huc-dlc__otp-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.huc-dlc__otp-inputs {
    display: flex;
    gap: 0.65rem;
}

.huc-dlc__otp {
    width: 52px;
    height: 52px;
    border: 1px solid #ced4da;
    border-radius: 10px;
    text-align: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--huc-darkGray-clr);
    outline: none;
}

.huc-dlc__otp:focus {
    border-color: #1b7a45;
}

.huc-dlc__timer {
    margin: 0;
    font-size: 0.8125rem;
    color: #8b93a1;
}

.huc-dlc__resend {
    border: 0;
    background: #f5c400;
    color: var(--huc-darkGray-clr);
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.huc-dlc__result-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    justify-content: space-between;
}

.huc-dlc__result-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.huc-dlc__result-text {
    margin: 0;
    color: #6c757d;
    font-size: 0.9375rem;
    line-height: 1.5;
}

body.huc-modal-open {
    overflow: hidden;
}

/* Vehicle selection modal */
.huc-dvs,
.huc-dnj {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
}

.huc-dvs.is-open,
.huc-dnj.is-open {
    display: flex;
}

.huc-dvs__panel,
.huc-dnj__panel {
    display: flex;
    flex-direction: column;
    width: min(720px, 92vw);
    max-height: 78vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.huc-dvs__tabs {
    display: flex;
    gap: 0.5rem;
    padding: 0.85rem 1rem 0;
    background: #f2f2f2;
    overflow-x: auto;
}

.huc-dvs__tab {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0.65rem 0.85rem;
    font-weight: 700;
    color: #000;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.huc-dvs__tab.is-active {
    border-bottom-color: #e1ab07;
}

.huc-dvs__body {
    flex: 1;
    min-height: 0;
}

.huc-dvs__scroll {
    max-height: 52vh;
    overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
}

.huc-dvs__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.35rem;
}

.huc-dvs__info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.huc-dvs__info strong {
    display: block;
    font-size: 0.875rem;
}

.huc-dvs__info small {
    display: block;
    color: #6c757d;
    font-size: 0.75rem;
}

.huc-dvs__thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 40px;
    border-radius: 8px;
    background: #f2f2f2;
    flex-shrink: 0;
}

.huc-dvs__thumb img {
    max-width: 36px;
    max-height: 28px;
    object-fit: contain;
}

.huc-dvs__counter {
    display: inline-flex;
    align-items: center;
    background: #000;
    border-radius: 999px;
    padding: 0.15rem 0.25rem;
}

.huc-dvs__count-btn {
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.huc-dvs__count {
    width: 28px;
    height: 28px;
    border: 0;
    text-align: center;
    background: #fff;
    border-radius: 4px;
    font-size: 0.8125rem;
}

.huc-dvs__acc-item {
    border: 0 !important;
}

.huc-dvs__acc-btn {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    background: #fff;
    box-shadow: none !important;
}

.huc-dvs__acc-btn:not(.collapsed) {
    background: #f2f2f2;
    color: #000;
}

.huc-dvs__footer,
.huc-dnj__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: #f2f2f2;
}

.huc-dvs__submit,
.huc-dnj__submit {
    min-width: 120px;
    height: 36px;
    border: 1px solid #000;
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}

.huc-dvs__close {
    min-width: 90px;
    height: 36px;
    border: 0;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
}

/* Need job modal */
.huc-dnj__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: #f2f2f2;
}

.huc-dnj__head h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
}

.huc-dnj__x {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.huc-dnj__body {
    padding: 1rem 1.25rem;
    overflow-y: auto;
    max-height: 55vh;
}

.huc-dnj__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1rem;
}

.huc-dnj__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 700;
}

.huc-dnj__field input,
.huc-dnj__field select {
    height: 40px;
    border: 1px solid #000;
    border-radius: 6px;
    padding: 0 0.65rem;
    font-weight: 400;
}

@media (max-width: 991.98px) {
    .huc-dlc__row {
        grid-template-columns: 1fr 1fr;
    }

    .huc-dlc__btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .huc-dnj__grid {
        grid-template-columns: 1fr;
    }

    .huc-dvs__panel,
    .huc-dnj__panel {
        width: 94vw;
        max-height: 88vh;
    }
}

@media (max-width: 575.98px) {
    .huc-dlc {
        padding-top: 0.5rem;
    }

    .huc-dlc__card {
        padding: 1.2rem 1.1rem 1rem;
        border-radius: 16px;
    }

    .huc-dlc__row {
        grid-template-columns: 1fr;
        margin-bottom: 0.75rem;
    }

    .huc-dlc__field {
        margin-bottom: 0.85rem;
    }

    .huc-dlc__otp {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .huc-dlc__result-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .huc-dlc__result-inner .huc-dlc__btn {
        width: 100%;
    }
}
