.form-group {
    position: relative;
    margin-bottom: 25px;
}

.required::after {
    content: " *";
    color: #ef4444;
}

/* hover tooltip */

.tippy-box[data-theme~='custom'] {
    background-color: #c75b5b;
    color: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    max-width: 300px;
    word-wrap: break-word;
}

.tippy-box[data-theme~='custom'][data-placement^='top']>.tippy-arrow::before {
    border-top-color: #c75b5b;
}

.tippy-box[data-theme~='custom'][data-placement^='bottom']>.tippy-arrow::before {
    border-bottom-color: #c75b5b;
}

.tippy-box[data-theme~='custom'][data-placement^='left']>.tippy-arrow::before {
    border-left-color: #c75b5b;
}

.tippy-box[data-theme~='custom'][data-placement^='right']>.tippy-arrow::before {
    border-right-color: #c75b5b;
}

.tippy-box[data-theme~='custom'] .tippy-arrow {
    color: #c75b5b;
}

/* city search */

.px-search-shell {
    border: 2px solid #1677e6;
    border-radius: 18px;
    background: #fff;
    overflow: visible;
    /* box-shadow: 0 6px 18px rgba(15, 53, 110, 0.16); */
}

.px-search-segment {
    min-height: 56px;
}

.px-search-divider {
    position: relative;
}

.px-search-divider::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 0;
    width: 1px;
    height: calc(100% - 24px);
    background: #d8deea;
}

.px-search-submit {
    min-height: 56px;
    background: #1677e6;
    border-radius: 0 14px 14px 0;
}

.px-search-submit:hover {
    background: #0f67ca;
}

@media (max-width: 767px) {
    .px-search-shell {
        display: block;
        border-radius: 20px;
        overflow: visible;
        border-width: 2px;
        background: #f3f4f6;
        box-shadow: 0 10px 24px rgba(15, 53, 110, 0.14);
    }

    .px-search-segment {
        min-height: 64px;
        background: transparent;
        display: flex;
        align-items: center;
    }

    .px-search-shell>div:not(:last-child) {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .px-search-shell>div:last-child {
        margin-top: 0;
    }

    .px-search-divider {
        border-bottom: 1px solid #d8deea;
    }

    .px-search-shell .px-search-segment>.h-full,
    .px-search-shell .px-search-segment>.relative {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .px-search-shell .px-search-segment input {
        min-height: 64px;
    }

    .px-search-shell .md\:w-\[4\%\] {
        display: none;
    }

    .px-search-submit {
        min-height: 58px;
        border-radius: 0 0 18px 18px;
    }

    .px-search-divider::after {
        display: none;
    }
}

/* error tooltip css */

.tooltip-error {
    position: relative;
    margin-top: 6px;
    padding: 8px 12px;
    background: #c75b5b;
    color: #fff;
    border-radius: 8px;
    font-family: 'Carlito', Calibri, Candara, Segoe, "Segoe UI", Optima, Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: inline-block;
    transform-origin: top center;
    animation: tooltipErrorIn 0.28s ease-out forwards;
    /* min-width: max-content; */
    z-index: 9999;
}

.tooltip-error::before {
    content: "";
    position: absolute;
    bottom: 100%;
    /* At the top of the tooltip */
    left: 50%;
    border-width: 6px;
    border-style: solid;
    border-color: transparent transparent #c75b5b transparent;
}

@media (min-width: 768px){
    #fromToError .tooltip-error::before {
        left: 20%;
    }
    #fromToError .tooltip-error::after {
        content: "";
        position: absolute;
        bottom: 100%;
        /* At the top of the tooltip */
        left: 80%;
        border-width: 6px;
        border-style: solid;
        border-color: transparent transparent #c75b5b transparent;
    }
}

@keyframes tooltipErrorIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

