/* ============================================================
   Enquiry / quote page (depends on tokens in style.css)
   ============================================================ */

/* ===== Support top bar ===== */
.support-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .9);
    font-size: .88rem;
}
.support-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    height: 40px;
}
.support-text {
    color: rgba(255, 255, 255, .8);
}
.support-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--white);
    font-weight: 600;
    transition: opacity .2s ease;
}
.support-phone svg { flex-shrink: 0; }
.support-phone strong { font-weight: 800; }
.support-phone:hover { opacity: .85; }

@media (max-width: 560px) {
    .support-text { display: none; }
    .support-inner { justify-content: center; }
}

/* header extras */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--white);
    font-weight: 600;
    font-size: .95rem;
    padding: 8px 14px;
    border-radius: 8px;
    transition: background .2s ease;
}
.back-link:hover { background: rgba(255, 255, 255, .16); }

/* ===== Sky hero ===== */
.quote-hero {
    width: 100%;
    position: relative;
    min-height: calc(80vh - 74px);
    padding: 60px 0 80px;
    background:
        linear-gradient(180deg, rgba(58, 57, 57, 0.514), rgba(58, 52, 52, 0.562)),
        url('https://images.unsplash.com/photo-1500534623283-312aade485b7?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
}
.quote-wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 530px) minmax(0, 345px);
    justify-content: center;
    gap: 60px;
    align-items: start;
}

/* ===== Quote form panel ===== */
.quote-panel {
    background: rgba(255, 255, 255, .96);
    border-radius: 16px;
    padding: 26px 26px 24px;
    box-shadow: 0 20px 50px rgba(90, 60, 80, .22);
    backdrop-filter: blur(4px);
}

/* From / To block */
.qf-fromto {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}
/* override engine .field look for the clean boxed style */
.quote-form .field {
    background: var(--white);
    border: 1.5px solid #e3e8ec;
    border-radius: 10px;
    padding: 10px 16px;
}
.quote-form .field:hover { background: var(--white); border-color: #cfd8de; }
.quote-form .field:focus-within {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.quote-form .field .field-label {
    font-size: .72rem;
    color: #9aa7ad;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}
.quote-form .field { position: relative; cursor: default; }
.quote-form .field input {
    font-size: 1rem;
    font-weight: 600;
    color: #263238;
}
/* From / To are read-only: not editable, no text caret */
.quote-form .field input[readonly] {
    cursor: default;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    background: transparent;
}
.quote-form .field input[readonly]::selection { background: transparent; }

/* swap button on the seam */
.qf-swap {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%) rotate(90deg);
    z-index: 6;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary);
    border: 1px solid #e3e8ec;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.18);
    transition: background .2s ease, transform .3s ease;
}
/* keep typed text clear of the swap button on the first/second field */
.qf-fromto .field { padding-right: 60px; }

/* generic fields */
.qf-field { display: flex; flex-direction: column; margin-bottom: 14px; }
.qf-field label {
    font-size: .78rem;
    font-weight: 600;
    color: #6b7780;
    margin-bottom: 6px;
}
.qf-field > input {
    font-family: inherit;
    font-size: 1rem;
    color: #263238;
    padding: 13px 16px;
    border: 1.5px solid #e3e8ec;
    border-radius: 10px;
    background: var(--white);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.qf-field > input::placeholder { color: #aeb8bd; }
.qf-field > input:focus {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.qf-field > input.invalid {
    border-color: #e11d48;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, .1);
}
.qf-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* phone input with flag */
.phone-input {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e3e8ec;
    border-radius: 10px;
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.phone-input:focus-within {
   border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.phone-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    background: #f4f6f7;
    border-right: 1.5px solid #e3e8ec;
    font-size: .9rem;
    font-weight: 700;
    color: #4b565c;
    white-space: nowrap;
}
.phone-flag img { border-radius: 2px; display: block; }
.phone-input input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
    color: #263238;
    padding: 13px 14px;
}

.err {
    color: #e11d48;
    font-size: .76rem;
    font-weight: 600;
    min-height: 12px;
    margin-top: 4px;
}

.qf-error-box {
    background: rgba(225, 29, 72, .08);
    color: #e11d48;
    font-size: .85rem;
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 12px;
}
.qf-submit {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    font-family: inherit;
    font-weight: 700;
    font-size: 1.02rem;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 4px;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.qf-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.qf-terms {
    text-align: center;
    font-size: .78rem;
    color: #9aa7ad;
    margin-top: 12px;
}

/* success */
.quote-success { text-align: center; padding: 14px 6px; }
.quote-success .success-ico {
    width: 72px; height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(0,139,139,.3);
}
.quote-success h2 { font-size: 1.3rem; color: var(--black); margin-bottom: 10px; }
.quote-success p { color: var(--grey); line-height: 1.6; margin-bottom: 20px; }

/* ===== Price card ===== */
.price-card {
    background: rgba(255, 255, 255, .96);
    border-radius: 16px;
    padding: 24px 24px 22px;
    box-shadow: 0 20px 50px rgba(90, 60, 80, .22);
    text-align: center;
    backdrop-filter: blur(4px);
    margin-top: 26px;
}
/* route header at the top of the price card */
.pc-route {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef1f2;
}
.pc-route .pc-city {
    font-size: .95rem;
    font-weight: 700;
    color: var(--black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42%;
}
.pc-route .pc-plane {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 139, 139, .12);
    color: var(--primary);
    flex-shrink: 0;
}

/* searched trip details list */
.pc-details {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}
.pc-details li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-top: 1px solid #eef1f2;
    font-size: .9rem;
}
.pc-details li[hidden] { display: none; }
.pc-details .pcd-ico {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(0, 139, 139, .1);
    color: var(--primary);
    flex-shrink: 0;
}
.pc-details .pcd-label {
    color: #6b7780;
    margin-right: auto;
}
.pc-details .pcd-value {
    font-weight: 700;
    color: var(--black);
    text-align: right;
}

.pc-expiry {
    font-size: .92rem;
    color: #6b7780;
    margin-bottom: 4px;
}
.pc-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 16px;
}
.pc-callsave {
    display: block;
    border: 1px dashed var(--primary);
    color: var(--black);
    font-weight: 700;
    font-size: .88rem;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    transition: background .2s ease;
}
.pc-callsave svg { vertical-align: -2px; margin-right: 4px; }

.pc-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 14px;
}
.pc-old {
    font-size: 1rem;
    color: #9aa7ad;
    text-decoration: line-through;
}
.pc-new {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.pc-new sup { font-size: 1rem; }
.pc-per {
    font-size: .72rem;
    color: #6b7780;
    text-align: left;
    line-height: 1.2;
}
.pc-triptype {
    font-size: .9rem;
    color: #4b565c;
    padding: 12px 0;
    border-top: 1px solid #eef1f2;
    border-bottom: 1px solid #eef1f2;
    margin-bottom: 12px;
}
.pc-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.pc-stars { color: #00b67a; letter-spacing: 1px; }
.pc-score { font-size: .85rem; font-weight: 600; color: #4b565c; }
.pc-tp { font-size: .85rem; font-weight: 800; color: #00b67a; }
.pc-modify {
    display: inline-block;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: underline;
}

.phone_numBox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    padding: 14px 22px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(0, 139, 139, .18);
    box-shadow: 0 10px 26px rgba(90, 60, 80, .18);
    backdrop-filter: blur(6px);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.phone_numBox:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 14px 30px rgba(0, 139, 139, .22);
}

.suport_txt {
    font-size: .92rem;
    font-weight: 600;
    color: #5c6b6b;
}

.phone_numBox a {
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    letter-spacing: .3px;
    transition: color .2s ease;
}
.phone_numBox a:hover { color: var(--primary); }

/* icon chip in front of the number */
.phone_numBox a svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    animation: phone-ring 2.2s ease-in-out infinite;
}
@keyframes phone-ring {
    0%, 92%, 100% { transform: rotate(0); }
    94%  { transform: rotate(-12deg); }
    96%  { transform: rotate(12deg); }
    98%  { transform: rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) {
    .phone_numBox a svg { animation: none; }
}


/* the autocomplete menu inherits engine.css .ac-menu styles */

/* ===== Responsive ===== */
@media (max-width: 860px) {
    .quote-wrap { grid-template-columns: minmax(0, 460px); gap: 24px; }
    .price-card { margin-top: 0; }
    .quote-hero { padding: 40px 0 60px; }
}
@media (max-width: 520px) {
    .qf-two { grid-template-columns: 1fr; }
    .back-link span { display: none; }
}

/* ===== Thank-you modal ===== */
.ty-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(6, 30, 30, .55);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s;
}
.ty-overlay[hidden] { display: none; }
.ty-overlay.show { opacity: 1; visibility: visible; }

.ty-modal {
    position: relative;
    width: min(440px, 100%);
    background: var(--white);
    border-radius: 20px;
    padding: 40px 34px 32px;
    text-align: center;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .3);
    transform: translateY(16px) scale(.96);
    transition: transform .3s cubic-bezier(.2, .8, .3, 1);
}
.ty-overlay.show .ty-modal { transform: translateY(0) scale(1); }

.ty-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f0f4f4;
    color: #6b7780;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background .2s ease, color .2s ease;
}
.ty-close:hover { background: #e2e9e9; color: var(--black); }

.ty-badge {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--primary);
    box-shadow: 0 10px 26px rgba(0, 139, 139, .35);
    animation: ty-pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
@keyframes ty-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.ty-modal h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 10px;
}
.ty-modal p {
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 22px;
}

.ty-call {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 139, 139, .1);
    color: var(--primary-dark);
    font-size: .92rem;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: background .2s ease;
}
.ty-call:hover { background: rgba(0, 139, 139, .16); }
.ty-call strong { font-weight: 800; }

.ty-home {
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

@media (max-width: 480px) {
    .ty-modal { padding: 34px 22px 26px; }
    .ty-modal h2 { font-size: 1.3rem; }
    .ty-call { font-size: .85rem; }
}
