:root {
    --primary-color: #062A82;
    --secondary-color: #E9535B;
    --bg-color: #E9EDF6;

    --text-blue: hsla(240, 100%, 50%, 1);
    --text-green: hsla(166, 100%, 34%, 1);

    --input-bg: #fff;
    --input-foreground: var(--primary-color);
    --input-accent: var(--primary-color);
    --input-muted: #B4B4B4;
    --input-radius: 12px;
    --input-padding: 0.9rem;
    --input-border-width: 1px;
    --input-transition: 180ms cubic-bezier(.2, .9, .3, 1);
}

.delivery-cnt {
    min-height: 70vh;
    text-align: center;
    direction: rtl;
}

section, body {
    background-color: var(--bg-color);
    font-family: "Noto Sans Hebrew", system-ui;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.text-green {
    color: var(--text-green) !important;
}

.text-blue {
    color: var(--text-blue) !important;
}

.bg-light {
    background-color: #FFFFFF !important;
}

img.logo {
    height: 55px !important;
}

.driver-header {
    max-width: 470px;
    width: 100%;
    height: 47vh;
    margin: 0 auto;

    position: relative;
    overflow: hidden;

    @media (max-width: 500px) {
        height: 40vh;
    }

    .background {
        background-image: url('/assets/img/background.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        position: absolute;
        inset: 10px;

        @media (max-width: 500px) {
            width: 300px;
        }

        &::after {
            content: "";
            position: absolute;
            inset: 0; /* top: 0; right: 0; bottom: 0; left: 0 */
            background: linear-gradient(to top, var(--bg-color), transparent);
        }
    }

    .driver-title {
        font-size: 95px;
        font-weight: 700;
        line-height: 85%;
        color: var(--primary-color);

        position: absolute;
        bottom: 0;
        width: 100%;
        /*background: #e9edf6cf;*/
        text-align: center;
    }

}

.delivery-cnt.success {
    .driver-header {
        height: 285px;
    }

    .driver-title {
        font-size: 85px;
    }

    .background {
        background-image: url('/assets/img/delivery_success.svg');
    }
}


.delivery-cnt.payment_success {

    .driver-header {
        height: 31vh;

        @media (max-width: 500px) {
            height: 240px;
        }
    }

    .driver-title {
        font-size: 50px;
        color: var(--text-blue);
        font-weight: 700;
        width: 230px;
        right: 26%;
        line-height: 1.3;

        @media (max-width: 500px) {
            right: 20%;
        }
    }

    .background {
        width: 100%;
        background-image: url('/assets/img/success_payment.svg');
    }

    p {
        font-size: 17px;
        color: var(--text-blue);
        font-weight: 500;
    }

}

.delivery-cnt.sms-parsing {
    --input-accent: var(--text-green);

    .background {
        background-image: url('/assets/img/gett_bg.svg');
        margin: 0 auto;
    }

    .driver-title {
        font-size: 24px;
        font-weight: 400;
        line-height: 112%;
        color: var(--text-blue);
        bottom: 24px;
    }
}

.delivery-bottom {
    height: 50px;
    width: 250px;
    padding-top: 1rem;
    margin: 0 auto;

    img {
        width: 100%;
    }
}

h4 {
    font-size: 20px;
    font-weight: 700;
    max-width: 200px;
    text-align: center;
    margin: 0 auto;
}

h4.custom {
    max-width: 270px !important;
}

.driver-links {
    display: flex;
    justify-content: center;
    gap: 2rem;

    .driver-links__element {
        border-radius: 23px;
        background: white;
        padding: 1rem;

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        gap: .5rem;
        width: 155px;

        border: 2px solid white;
        transition: all .3s ease-in-out;
        cursor: pointer;

        &:hover {
            border-color: var(--primary-color);

            span {
                font-weight: 600;
            }
        }
    }

    img {
        width: auto;
        height: 70px;
    }

    span {
        font-size: 16px;
        color: var(--primary-color);
        font-weight: 400;
    }
}

.driver-links.custom {
    flex-wrap: wrap;
    max-width: 400px;
    margin: 0 auto;

    .driver-links__element {
        height: 170px;
        width: 175px;

        @media (max-width: 500px) {
            height: 150px;
            width: 155px;
        }
    }

    img {
        width: auto;
        height: auto;
        margin: auto;
    }

    .links-text {
        color: var(--text-blue) !important;
        text-decoration: none !important;
        line-height: 1;

        h4 {
            font-weight: 700;
            font-size: 16px;
            margin: 10px 0 1px 0;
            padding: 0;
        }
        span {
            font-weight: 400;
            font-size: 13px;
            margin: 0;
        }
    }
}

.delivery-header {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 1rem 0;

    h4 {
        font-size: 20px;
        font-weight: 700;
    }

    p {
        font-size: 16px;
        font-weight: 500;
        margin: 0;
    }
}

.delivery-subheader {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 1.5rem !important;
    padding: 0 1.8rem;
    color: var(--primary-color);

    img {
        width: 150px;
        height: auto;
    }

    h4 {
        margin: 0 !important;
    }
}

/* base appearance */
.fancy-input {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.02)), var(--input-bg);
    color: var(--input-foreground);
    border: var(--input-border-width) solid rgba(255, 255, 255, 0.05);
    border-radius: var(--input-radius);
    padding: var(--input-padding);
    font-size: 1rem;
    line-height: 1.2;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow var(--input-transition), transform var(--input-transition), border-color var(--input-transition);
    -webkit-appearance: none; /* remove native iOS styles */
    caret-color: var(--input-accent);
    box-shadow: 1px 1px 8px 0 hsla(0, 0%, 0%, 0.1);
}

/* subtle inner depth */
.fancy-input::placeholder {
    color: var(--input-muted);
    opacity: 1;
}

/* hover state */
.fancy-input:hover {
    /*transform: translateY(-1px);*/
    border-color: rgba(255, 255, 255, 0.08);
}

/* focus state with accent ring */
.fancy-input:focus {
    border-color: color-mix(in srgb, var(--input-accent) 60%, white);
    box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--input-accent) 18%, transparent),
    0 0 0 4px color-mix(in srgb, var(--input-accent) 14%, transparent);
}

/* invalid / error example */
.fancy-input:invalid {
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.08);
}

/* disabled */
.fancy-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.fancy-input:-webkit-autofill,
.fancy-input:-webkit-autofill:hover,
.fancy-input:-webkit-autofill:focus,
.fancy-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f2f2f2 inset !important; /* background color */
    border: 1px solid #b7c7ee;
}
/* small variant */
.fancy-input.small {
    font-size: .88rem;
    padding: .35rem .6rem;
    border-radius: calc(var(--input-radius) - 4px);
}

.grid {
    display: grid;
    align-items: start;
    gap: 1rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.btn-submit {
    background-color: var(--text-green);
    color: white;
    width: 160px;
    padding: 0.75rem 1rem;
    border-radius: 40px;
    font-size: 16px;
    font-weight: bold;
    transition: background-color .3s ease-in;

    &:hover {
        color: white !important;
        background-color: hsla(166, 100%, 30%, 1);
    }
}

.btn-submit.full {
    width: 100% !important;
}

/* Container label */
.checkbox-container {
    display: inline-flex;
    align-items: flex-end;
    cursor: pointer;
    user-select: none;
    font-size: 15px;
    font-weight: 400;
    color: var(--primary-color);
    gap: 8px;
    width: 100%;
}

/* Hide default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Custom checkbox shape */
.checkbox-container .checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    background-color: white;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.checkbox-container a {
    color: var(--primary-color) !important;
}

/* The check (✓) symbol */
.checkbox-container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    width: 6px;
    height: 10px;
    border: solid var(--primary-color);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
/* Show checkmark when checked */
.checkbox-container input:checked ~ .checkmark::after {
    display: block;
}

.w-full {
    width: 100% !important;
}

#address-form h5 {
    font-size: 18px;
    font-weight: 700;
    text-align: start;
}

.parsley-errors-list {
    margin-top: 0 !important;
    text-align: start;
    padding: 0 6px !important;
}

.address-container {
    max-width: 700px;
    margin: 0 auto;
}

.bootstrap-select {
    width: 100% !important;
    padding: 0 !important;

    .btn-light {
        border: none !important;
        border-radius: var(--input-radius);
        padding: var(--input-padding) !important;
    }

    .dropdown-menu, .dropdown-menu ul {
        width: 100% !important;
        min-width: 100% !important;
    }
}

.bootstrap-select.fancy-input, .bootstrap-select .fancy-input  {
    padding: 0 !important;
}

#address-form > .dropdown-menu {
    top: 125px !important;
}

.spinner-border {
    top: 90px !important;
}

.spinner-border.text-secondary {
    color: var(--primary-color) !important;
}

.iti {
    margin-top: 1rem !important;
}

.iti--separate-dial-code .iti__selected-flag {
    border-bottom-left-radius: var(--input-radius);
    border-top-left-radius: var(--input-radius);
}

.shipping-container {
    max-width: 1000px;
    margin: 0 auto;

    input {
        text-align: center;
    }

    textarea {
        height: 180px;
        border-color: var(--text-green) !important;
        border-radius: 26px;
    }
}

table.deliveryTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    direction: rtl;

    th, td {
        padding: 10px;
        border-bottom: 1px solid #ddd;
    }

    th {
        width: 170px;
        font-weight: bold;
        background: #f7f7f7;
    }

    .price td {
        font-weight: bold;
    }
}

.delivery-info-block {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: 1rem;
}

.modal-dialog {
    max-width: 600px !important;
}

.packages-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-blue);
    max-width: 500px;
    margin: 0 auto;

    h2 {
        font-size: 35px;
        font-weight: 700;
    }

    h5 {
        font-size: 20px;
        font-weight: 700;
        color: var(--text-green);
    }

    h6 {
        font-size: 20px;
        font-weight: 500;
        color: var(--text-blue);
    }

    .boxes {
        display: flex;
        flex-direction: column;
        width: 150px;
        gap: 13px;
        margin-top: 6px;
        text-align: start;
        font-weight: 500;
        font-size: 15px;
        line-height: 1.2;
    }

    .info-block {
        max-width: 220px;
        line-height: 1;
    }

    .delivery-bottom {
        height: 56px;
    }
}

.flex {
    display: flex;
}

.gap-1 {
    gap: 1rem !important;
}

.lh-1 {
    line-height: 1 !important;
}

.w-200 {
    width: 200px;
}