/* Quote request form (element/quote-form.php), MW-5306 design. */

/* The card replaces the old translucent .inquireSection box. */
.inquireSection.qf-card {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, .06) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .12);
    overflow: visible !important;
    padding: 24px;
}
.inquireSection.qf-card .form_inquire {
    display: block;
    margin: 0;
    padding: 0 !important;
}
.inquireSection.qf-card .form_inquire > form {
    padding: 0;
}
/* The empty <a id="Form"> scroll target sat on its own 24px line. */
.inquireSection.qf-card .form_inquire > a:empty {
    display: block;
    height: 0;
}

.qf {
    color: #000;
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-align: left;
}
.qf *,
.qf *::before,
.qf *::after {
    box-sizing: border-box;
}
.qf [hidden],
.qf .hidden {
    display: none !important;
}
.qf svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

/* Header: title, price, progress */
.qf-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.qf-title {
    margin: 0;
    color: #000;
    font-family: Cairo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.15;
}
.qf-price {
    margin: 0;
    color: #565656;
    font-size: 13px;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}
.qf-price b {
    display: block;
    color: #8f6418;
    font-family: Cairo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}
.qf-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.qf-steps li {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-top: 8px;
    border-top: 3px solid #e6e6e6;
    color: #565656;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}
.qf-steps li.is-active {
    border-top-color: #01a8c3;
    color: #000;
}
.qf-n {
    display: grid;
    place-items: center;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e9f0f2;
    color: #565656;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.qf-steps li.is-active .qf-n {
    background: #01a8c3;
    color: #fff;
}

/* Fields */
.qf-fs {
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    min-width: 0;
}
.qf-legend {
    float: none;
    width: auto;
    margin: 0 0 8px;
    padding: 0 2px;
    color: #3b3b3b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}
.qf-trav,
.qf-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.qf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0 0 10px;
    min-width: 0;
}
.qf-field > label,
.qf-ages label {
    margin: 0;
    color: #3b3b3b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}
.qf-req {
    color: #01a8c3;
}
.qf .qf-input,
.qf .qf-ages input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 8px 0 10px;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: none;
    color: #000;
    font: 400 15px/1.5 Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    outline: none;
}
.qf select.qf-input {
    padding: 0 34px 0 12px;
    -webkit-appearance: none;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #000 50%), linear-gradient(135deg, #000 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    text-overflow: ellipsis;
}
.qf textarea.qf-input {
    height: auto;
    min-height: 70px;
    padding: 9px 10px;
    resize: vertical;
}
.qf .qf-input::placeholder,
.qf .qf-ages input::placeholder {
    color: #8a8a8a;
}
.qf .qf-input:focus,
.qf .qf-ages input:focus {
    border-color: #01a8c3;
    box-shadow: 0 0 0 3px rgba(1, 168, 195, .18);
}
.qf .qf-input.error,
.qf .qf-ages input.error {
    border-color: #d93025;
}
.qf label.error,
.qf .qf-err {
    display: block;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    margin: 3px 0 0;
    color: #d93025;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
}

/* Travellers */
.qf-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 48px;
    padding: 8px 8px 8px 12px;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    background: #fff;
}
.qf-stepper > label {
    margin: 0;
    color: #000;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}
.qf-stepper small {
    display: block;
    color: #565656;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}
.qf-ctl {
    display: flex;
    align-items: center;
    gap: 2px;
}
.qf .qf-round {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid #d2d2d2;
    border-radius: 50%;
    background: #fff;
    color: #000;
    cursor: pointer;
}
.qf .qf-round svg {
    width: 14px;
    height: 14px;
}
.qf .qf-round:disabled {
    color: #b5b5b5;
    cursor: default;
}
.qf .qf-count {
    width: 26px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    pointer-events: none;
}
.qf-ages .row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.qf-ages .row:not(:empty) {
    margin-top: 8px;
}
.qf-ages .age-input-div {
    flex: 0 0 calc(50% - 4px);
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
}
.qf-ages .age-input-div .unit {
    margin: 0 0 4px;
}

/* Dates */
.qf-date {
    position: relative;
}
.qf-date .qf-input {
    padding-right: 38px;
    cursor: pointer;
}
.qf-date .ui-datepicker-trigger {
    position: absolute;
    top: 21px;
    right: 4px;
    transform: translateY(-50%);
    padding: 6px 8px;
    border: 0;
    background: none;
    color: rgba(0, 0, 0, .54);
    line-height: 1;
}

/* Flight */
.qf-flight {
    margin: 2px 0 14px;
}
.qf .qf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
}
.qf .qf-check input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #01a8c3;
    cursor: pointer;
}
.qf-plane {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    fill: #01a8c3 !important;
    stroke: none !important;
}
.qf-airport {
    display: none;
    margin: 10px 0 0;
}
.qf-airport.active {
    display: flex;
}

/* Step two */
.qf-step2-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}
.qf .qf-back {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #d2d2d2;
    border-radius: 50%;
    background: #fff;
    color: #000;
    cursor: pointer;
}
.qf .qf-back svg {
    width: 18px;
    height: 18px;
}
.qf-step-h {
    margin: 0;
    color: #000;
    font-family: Cairo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
}
.qf-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
    margin: 0 0 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f1f7f8;
    color: #3b3b3b;
    font-size: 13px;
    line-height: 1.4;
}
.qf .qf-link {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #01788c;
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}
.qf-phone {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 6px;
}

/* Buttons. style.min.css sets `button { background-color: inherit !important;
   border: none !important }` site-wide, hence the !important below. */
.qf .qf-round,
.qf .qf-back {
    border: 1px solid #d2d2d2 !important;
    background-color: #fff !important;
}
.qf .qf-link {
    background-color: transparent !important;
}
.qf .qf-cta {
    background-color: #01a8c3 !important;
    border: 1px solid transparent !important;
}
.qf .qf-cta:hover,
.qf .qf-cta:focus-visible {
    background-color: #0195ad !important;
}
.qf .qf-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 56px;
    margin: 4px 0 0;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #01a8c3;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .14), 0 4px 10px -2px rgba(0, 0, 0, .2);
    color: #fff;
    font-family: Cairo, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease;
}
.qf .qf-cta:hover,
.qf .qf-cta:focus-visible {
    background: #0195ad;
}
.qf .qf-cta svg {
    width: 20px;
    height: 20px;
}
.qf-reassure {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 16px;
    margin: 12px 0 0;
    color: #565656;
    font-size: 13px;
    line-height: 1.5;
}
.qf-reassure span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.qf-reassure svg {
    width: 15px;
    height: 15px;
    color: #1f7a4d;
}

@media (max-width: 575px) {
    .inquireSection.qf-card {
        padding: 18px 16px;
    }
    .qf-title {
        font-size: 21px;
    }
}
/* Narrow cards (the tour and cruise sidebars, small phones): label above the
   controls, as in the design's mobile layout. */
.qf {
    container-type: inline-size;
}
/* Wide cards (the listing pages, where the form sits over the header image):
   nationality and phone share a row so step two stays inside the header. */
@container (min-width: 370px) {
    .qf-np {
        display: grid;
        grid-template-columns: 1fr 1.3fr;
        gap: 8px;
    }
}
@container (min-width: 370px) {
    .qf-reassure {
        flex-wrap: nowrap;
        gap: 10px;
        font-size: 12px;
        white-space: nowrap;
    }
}
@container (max-width: 360px) {
    .qf-stepper {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .qf-stepper > label {
        display: flex;
        gap: 4px;
        align-items: baseline;
    }
    .qf-stepper small {
        display: inline;
    }
    .qf-ctl {
        justify-content: space-between;
    }
}
@media (max-width: 400px) {
    .qf-stepper {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
    .qf-stepper > label {
        display: flex;
        gap: 4px;
        align-items: baseline;
    }
    .qf-stepper small {
        display: inline;
    }
    .qf-ctl {
        justify-content: space-between;
    }
}

/* Tighter spacing so both steps stay inside the header image on the listing
   pages. */
.qf .qf-step .qf-field {
    gap: 3px;
    margin-bottom: 8px;
}
.qf .qf-step .qf-input {
    height: 40px;
}
.qf .qf-fs {
    margin-bottom: 10px;
}
.qf .qf-flight {
    margin: 0 0 12px;
}
.qf .qf-airport {
    margin-top: 8px;
}
.qf [data-qf-step="2"] textarea.qf-input {
    height: auto;
    min-height: 58px;
    padding: 7px 10px;
}
.qf .qf-step2-head {
    margin-bottom: 8px;
}
.qf .qf-summary {
    margin-bottom: 10px;
    padding: 6px 12px;
}
.qf .qf-step .qf-cta {
    height: 50px;
}
