/* ── HQ GlobalPays v3.1 — Visual Real Family Vacation ─────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

#hqgp-booking,
#hqgp-booking * {
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica Neue', Arial, Verdana, sans-serif;
}
#hqgp-booking {
    max-width: 1120px;
    margin: 0 auto;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
    background: #fff;
}

/* ══ PROGRESS BAR ══════════════════════════════════════════════════════════ */
.hqgp-progress {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 28px 0 32px;
    gap: 0;
}
.hqgp-progress-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 120px;
    position: relative;
    cursor: default;
}
.hqgp-progress-item::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 1px;
    background: #ddd;
    z-index: 0;
}
.hqgp-progress-item:last-child::before { display: none; }
.hqgp-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #ddd;
    background: #fff;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: all .25s;
}
.hqgp-step-label {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
    text-align: center;
}
.hqgp-progress-item.active .hqgp-step-num  { border-color: #1A2F5E; color: #1A2F5E; }
.hqgp-progress-item.active .hqgp-step-label { color: #1A2F5E; }
.hqgp-progress-item.done .hqgp-step-num    { border-color: #1A2F5E; background: #fff; color: #1A2F5E; }
.hqgp-progress-item.done::before           { background: #1A2F5E; }
.hqgp-progress-item.done                   { cursor: pointer; }

/* ══ PAINÉIS ════════════════════════════════════════════════════════════════ */
.hqgp-panel        { display: none; }
.hqgp-panel.active { display: block; }

/* ══ LAYOUT ═════════════════════════════════════════════════════════════════ */
.hqgp-layout { display: flex; gap: 20px; align-items: flex-start; }
.hqgp-main   { flex: 1; min-width: 0; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.hqgp-sidebar { width: 280px; flex-shrink: 0; position: sticky; top: 20px; font-size: 13px; color: #444; }
.hqgp-sidebar-box { border: 1px solid #e5e5e5; border-radius: 3px; background: #fff; padding: 16px 18px; margin-bottom: 12px; }
.hqgp-sidebar-title { font-size: 16px; font-weight: 700; margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid #e5e5e5; color: #1A2F5E; }
.hqgp-sidebar-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #aaa; margin: 10px 0 2px; }
.hqgp-sb-val { font-size: 13px; color: #444; line-height: 1.4; }
.hqgp-sb-val small { font-size: 11px; color: #888; display: block; }
.hqgp-sidebar hr { border: none; border-top: 1px solid #e5e5e5; margin: 10px 0; }
.hqgp-sb-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 12px; color: #555; }
.hqgp-sb-row-label { flex: 1; }
.hqgp-sb-row-val   { font-weight: 500; white-space: nowrap; }
.hqgp-sb-total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: #222; border-top: 1px solid #e5e5e5; padding-top: 8px; margin-top: 6px; }
.hqgp-sb-outstanding { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-top: 4px; color: #222; }

/* ══ STEP 1 — BUSCA ════════════════════════════════════════════════════════ */
.hqgp-search-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12);
    padding: 36px 40px 32px;
    max-width: 860px;
    margin: 0 auto;
}
.hqgp-search-intro { text-align: center; font-size: 15px; color: #555; margin: 0 0 28px; }
.hqgp-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.hqgp-field { display: flex; flex-direction: column; gap: 6px; }
.hqgp-field.hqgp-full { grid-column: 1 / -1; }
.hqgp-field label { font-size: 13px; font-weight: 700; color: #181918; line-height: 14px; margin-bottom: 4px; }
.hqgp-field input,
.hqgp-field select {
    width: 100%; height: 50px; padding: 0 14px;
    border: 1px solid #c3c3c3; border-radius: 3px;
    font-size: 14px; font-family: 'Roboto', sans-serif;
    color: #333; background: #fff;
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.hqgp-field select { background-color: #f3f3f3; cursor: pointer; }
.hqgp-field input:focus,
.hqgp-field select:focus { outline: none; border-color: #1A2F5E; box-shadow: 1px 1px 4px 0 lightgrey; }
.hqgp-field input:hover,
.hqgp-field select:hover { box-shadow: 1px 1px 4px 0 lightgrey; }

.hqgp-icon-wrap { position: relative; display: flex; }
.hqgp-icon-wrap .hqgp-ico {
    position: absolute; left: 0; top: 0; bottom: 0; width: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #EEEEEE; border-radius: 0; font-size: 13px;
    pointer-events: none; z-index: 1; border-right: 1px solid #1A2F5E;
}
.hqgp-icon-wrap input,
.hqgp-icon-wrap select { padding-left: 52px !important; }
.req { color: #1A2F5E; }

.hqgp-search-wrap { display: flex; justify-content: center; margin-top: 30px; }
.hqgp-btn-search {
    background: #1A2F5E; color: #fff;
    font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 700;
    letter-spacing: .1em; padding: 15px 80px; border: 0;
    border-radius: 25px; cursor: pointer; transition: all .3s; text-transform: uppercase;
}
.hqgp-btn-search:hover { background-image: linear-gradient(rgb(0 0 0/15%) 0 0); }

/* ══ STEP 2 — VEÍCULOS ═════════════════════════════════════════════════════ */
.hqgp-vehicles-title { font-size: 15px; font-weight: 700; color: #444; margin: 0 0 14px; }
.hqgp-vehicles-grid { display: flex; flex-direction: column; gap: 16px; }
.hqgp-vehicle-card {
    display: flex; border: 1px solid #e5e5e5; border-radius: 3px;
    background: #fff; overflow: hidden; transition: box-shadow .2s;
}
.hqgp-vehicle-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.10); cursor: pointer; }
.hqgp-vc-img {
    width: 230px; min-height: 190px; flex-shrink: 0; overflow: hidden;
    background: #f5f5f5; display: flex; align-items: center; justify-content: center;
}
.hqgp-vc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hqgp-vc-img-ph { font-size: 48px; color: #ccc; }
.hqgp-vc-body { flex: 1; padding: 20px 24px; display: flex; gap: 12px; align-items: flex-start; }
.hqgp-vc-info { flex: 1; min-width: 0; }
.hqgp-vc-name { font-size: 18px; font-weight: 700; color: #222; margin: 0 0 3px; line-height: 1.3; }
.hqgp-vc-subtitle {
    font-size: 13px;
    color: #888;
    margin: 12px 0 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.hqgp-vc-feats { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 10px; }
.hqgp-vc-feat { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #555; }
.hqgp-vc-feat-ico {
    width: 18px; height: 18px; border-radius: 50%; background: #1A2F5E;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: #fff; flex-shrink: 0;
}
.hqgp-vc-price { text-align: right; flex-shrink: 0; min-width: 155px; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.hqgp-vc-price .hqgp-pday { font-size: 24px; font-weight: 700; color: #1A2F5E; line-height: 1; }
.hqgp-vc-price .hqgp-pday span { font-size: 14px; font-weight: 400; color: #888; }
.hqgp-vc-price .hqgp-ptotal { font-size: 13px; color: #555; margin-bottom: 2px; }
.hqgp-vc-price .hqgp-pexcl { font-size: 12px; color: #888; margin-bottom: 14px; }
.hqgp-rent-btn {
    background: #fff; color: #333; font-family: 'Roboto', sans-serif;
    font-size: 13px; font-weight: 700; border: 1px solid #c3c3c3;
    border-radius: 25px; padding: 9px 18px; cursor: pointer; transition: all .3s; white-space: nowrap;
}
.hqgp-rent-btn:hover { background: #f5f5f5; }

/* ══ STEP 3 — EXTRAS ═══════════════════════════════════════════════════════ */
.hqgp-section-title { font-size: 14px; font-weight: 700; color: #1A2F5E; margin: 0; }
.hqgp-section-line { border: none; border-top: 1px solid #e5e5e5; margin: 8px 0 14px; }
.hqgp-charge-group { margin-bottom: 28px; }
.hqgp-charge-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #efefef; }
.hqgp-charge-item:last-child { border-bottom: none; }
.hqgp-ch-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; color: #1A2F5E; }
.hqgp-ch-info { flex: 1; font-size: 14px; color: #333; }
.hqgp-ch-info strong { font-weight: 500; }
.hqgp-ch-mandatory { font-size: 12px; color: #888; margin-left: 3px; }
.hqgp-ch-recommended { display: inline-block; background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; border-radius: 3px; font-size: 11px; font-weight: 700; padding: 1px 6px; margin-left: 8px; }
.hqgp-ch-pricebox { display: flex; align-items: center; gap: 7px; border: 1px solid #ddd; border-radius: 3px; padding: 8px 12px; min-width: 152px; font-size: 13px; color: #333; white-space: nowrap; flex-shrink: 0; }
.hqgp-ch-pricebox.highlighted { border-color: #a5d6a7; background: #f9fff9; }
.hqgp-ch-pricebox input[type="checkbox"] { width: 15px; height: 15px; accent-color: #1A2F5E; cursor: pointer; flex-shrink: 0; }
.hqgp-ch-pricebox select { border: none; background: transparent; font-size: 13px; padding: 0; height: auto; width: 44px; -webkit-appearance: auto; appearance: auto; color: #333; }

/* ══ STEP 4 — CUSTOMER ═════════════════════════════════════════════════════ */
.hqgp-collapsible { margin-bottom: 20px; }
.hqgp-collapsible-header { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #e5e5e5; margin-bottom: 16px; cursor: pointer; user-select: none; }
.hqgp-collapsible-header .hqgp-toggle-icon { color: #1A2F5E; font-size: 13px; transition: transform .2s; }
.hqgp-collapsible-header h3 { margin: 0; font-size: 14px; font-weight: 700; color: #1A2F5E; flex: 1; }
.hqgp-collapsible-body { display: block; }
.hqgp-collapsible.collapsed .hqgp-collapsible-body { display: none; }
.hqgp-collapsible.collapsed .hqgp-toggle-icon { transform: rotate(-90deg); }

/* ══ STEP 5 — REVIEW ═══════════════════════════════════════════════════════ */
.hqgp-review-block { margin-bottom: 20px; }
.hqgp-review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
.hqgp-review-grid:last-child { border-bottom: none; }
.hqgp-review-item { display: flex; flex-direction: column; gap: 3px; }
.hqgp-review-item label { font-size: 12px; font-weight: 700; color: #888; }
.hqgp-review-item span  { font-size: 14px; color: #333; }
.hqgp-privacy { display: flex; align-items: center; gap: 8px; margin: 20px 0; font-size: 13px; color: #555; }
.hqgp-privacy input[type="checkbox"] { width: 16px; height: 16px; accent-color: #1A2F5E; }
.hqgp-privacy a { color: #444; text-decoration: underline; }

/* ══ STEP 6 — REDIRECT ═════════════════════════════════════════════════════ */
.hqgp-payment-redirect { text-align: center; padding: 64px 20px; }
.hqgp-checkmark { font-size: 64px; color: #16a34a; margin-bottom: 16px; }
.hqgp-payment-redirect h2 { font-size: 24px; margin: 0 0 8px; color: #222; }
.hqgp-payment-redirect p  { color: #888; }

/* ══ BOTÕES ═════════════════════════════════════════════════════════════════ */
.hqgp-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; flex-wrap: wrap; }
.hqgp-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 22px; border-radius: 25px; font-family: 'Roboto', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; border: 0; transition: all .3s; }
.hqgp-btn-primary  { background: #1A2F5E; color: #fff; }
.hqgp-btn-primary:hover { background-image: linear-gradient(rgb(0 0 0/15%) 0 0); }
.hqgp-btn-secondary { background: transparent; color: #555; border: 1px solid #ddd; }
.hqgp-btn-secondary:hover { border-color: #999; }
.hqgp-btn:disabled { opacity: .5; cursor: not-allowed; }

/* ══ LOADING ════════════════════════════════════════════════════════════════ */
.hqgp-loading { text-align: center; padding: 48px 20px; }
.hqgp-spinner { width: 36px; height: 36px; border: 3px solid #e5e5e5; border-top-color: #1A2F5E; border-radius: 50%; animation: hqgpSpin .75s linear infinite; margin: 0 auto 14px; }
@keyframes hqgpSpin { to { transform: rotate(360deg); } }

/* ══ ALERTAS ════════════════════════════════════════════════════════════════ */
.hqgp-alert { padding: 12px 16px; border-radius: 3px; margin-bottom: 16px; font-size: 14px; }
.hqgp-alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.hqgp-alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #16a34a; }

/* ══ CONFIRMAÇÃO PÓS-PAGAMENTO ══════════════════════════════════════════════ */
.hqgp-confirmation { max-width: 560px; margin: 40px auto; text-align: center; padding: 48px 32px; background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.hqgp-conf-icon { font-size: 56px; margin-bottom: 16px; }
.hqgp-success   .hqgp-conf-icon { color: #16a34a; }
.hqgp-cancelled .hqgp-conf-icon { color: #dc2626; }
.hqgp-warning   .hqgp-conf-icon { color: #d97706; }
.hqgp-confirmation h2 { font-size: 26px; margin: 0 0 12px; }
.hqgp-confirmation p  { color: #666; margin-bottom: 20px; }
.hqgp-conf-details { background: #fafafa; border-radius: 3px; padding: 16px; margin: 16px 0; text-align: left; }
.hqgp-conf-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #e5e5e5; font-size: 14px; color: #444; }
.hqgp-conf-row:last-child { border: none; }
.hqgp-conf-total { font-weight: 700; color: #1A2F5E; }

/* ══ SLIDER DE IMAGENS ════════════════════════════════════════════════════════ */
.hqgp-slider { position: relative; width: 100%; height: 100%; }
.hqgp-slider-dots {
    position: absolute;
    bottom: 8px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 5px;
}
.hqgp-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: background .2s;
}
.hqgp-dot.active { background: #fff; }

/* ══ RESPONSIVO ═════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .hqgp-layout  { flex-direction: column; }
    .hqgp-sidebar { width: 100%; position: static; }
}
@media (max-width: 680px) {
    .hqgp-grid-2        { grid-template-columns: 1fr; }
    .hqgp-search-card   { padding: 20px 16px; }
    .hqgp-btn-search    { padding: 14px 40px; }
    .hqgp-vehicle-card  { flex-direction: column; }
    .hqgp-vc-img        { width: 100%; min-height: 180px; }
    .hqgp-vc-body       { flex-direction: column; }
    .hqgp-vc-price      { text-align: left; align-items: flex-start; }
    .hqgp-step-label    { display: none; }
    .hqgp-review-grid   { grid-template-columns: 1fr; }
    .hqgp-actions       { flex-direction: column-reverse; }
    .hqgp-btn           { width: 100%; justify-content: center; }
}

.hqgp-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #1A2F5E;
    border-radius: 10px;
    padding: 28px 20px;
    cursor: pointer;
    transition: background .2s, border-color .2s;
    background: #f7f9fc;
    text-align: center;
}
.hqgp-upload-area:hover {
    background: #edf1f8;
    border-color: #2d4f9e;
}
.hqgp-upload-area.has-file {
    border-style: solid;
    background: #edf6ee;
    border-color: #2e7d32;
}
.hqgp-upload-text {
    font-size: 14px;
    font-weight: 600;
    color: #1A2F5E;
}
.hqgp-upload-hint {
    font-size: 12px;
    color: #888;
}

.hqgp-collapsible-body .hqgp-field {
    margin-bottom: 12px;
}

.hqgp-field {
    gap: 3px;
}
