/* ---------- Faqja e makinës ---------- */
.car-page { padding-top: 20px; padding-bottom: 72px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 18px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.car-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 32px;
    align-items: start;
}

.car-header { margin-bottom: 16px; }
.car-header h1 { font-size: clamp(28px, 4vw, 40px); }
.car-badge-inline {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    background: var(--navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 2px;
}

/* ---------- Galeria ---------- */
.gallery { margin-bottom: 24px; }
.gallery-main {
    position: relative;
    aspect-ratio: 3 / 2;
    background: #e9ecf1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-empty {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #b3bccb; font-size: 80px;
}
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(15, 31, 61, 0.7);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}
.gallery-nav:hover { background: var(--navy); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 3px 10px;
    background: rgba(15, 31, 61, 0.75);
    color: #fff;
    font-size: 12px;
    border-radius: 2px;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.gallery-thumb {
    flex: 0 0 96px;
    height: 68px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius);
    background: #e9ecf1;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.7;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--accent); opacity: 1; }

/* ---------- Panelet e përmbajtjes ---------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
}
.panel h2 { font-size: 20px; margin-bottom: 16px; }
.panel h2 i { color: var(--muted); font-size: 16px; margin-right: 6px; }
.prose { color: #3b4558; }

.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.spec-table > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}
.spec-table > div:nth-last-child(-n+2) { border-bottom: none; }
.spec-table dt { color: var(--muted); }
.spec-table dt i { width: 20px; font-size: 13px; }
.spec-table dd { font-weight: 600; color: var(--navy); text-align: right; }

.feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    list-style: none;
    font-size: 15px;
}
.feature-list li { padding-left: 2px; }

.policy { background: #fbfaf5; border-color: #ebe5d3; }

/* ---------- Karta e rezervimit ---------- */
.booking-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    scroll-margin-top: 120px;
}
.booking-price { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.booking-price .price-amount { font-size: 36px; }
.booking-price p { font-size: 13px; color: var(--muted); margin-top: 4px; }

.booking-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    list-style: none;
    margin: 16px 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.booking-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--bg);
}
.booking-steps li + li { border-left: 1px solid var(--line); }
.booking-steps li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #c9ced8;
    color: #fff;
    font-size: 12px;
    flex-shrink: 0;
}
.booking-steps li.active { background: #fff; color: var(--navy); }
.booking-steps li.active span { background: var(--accent); }
.booking-steps li.done span { background: var(--success); }

.booking-form { display: flex; flex-direction: column; gap: 14px; }
.form-title {
    font-family: var(--font);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--navy);
    margin-top: 8px;
}
.field-row { display: grid; grid-template-columns: 1fr 110px; gap: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.availability {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
}
.availability.ok { background: var(--success-bg); color: var(--success); }
.availability.no { background: var(--danger-bg); color: var(--danger); }

.estimate {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 14px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 14px;
    color: var(--muted);
}
.estimate strong { font-family: var(--font-heading); font-size: 20px; color: var(--navy); }

.alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 14px;
}
.alert i { margin-top: 3px; }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert[hidden] { display: none; }

.recap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    margin-bottom: 6px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.recap span { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.recap strong { display: block; font-size: 14px; color: var(--navy); }
.recap em { font-style: normal; font-size: 13px; color: var(--muted); }

/* sigurimi dhe ekstrat */
.option-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); }
.option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
}
.option + .option { border-top: 1px solid var(--line); }
.option input[type="radio"],
.option input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.option select {
    width: 58px;
    min-height: 36px;
    padding: 4px 6px;
    border: 1px solid #c9ced8;
    border-radius: var(--radius);
    font-size: 15px;
    background: #fff;
    flex-shrink: 0;
}
.option-text { flex: 1; min-width: 0; cursor: pointer; }
.option-text strong { display: block; font-size: 14px; color: var(--navy); }
.option-text small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.option-price { text-align: right; font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.option-price small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }

/* ngarkimi i patentës */
.license-help i { margin-right: 4px; }
.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 10px;
    border: 1px dashed #aab2c0;
    border-radius: var(--radius);
    background: var(--bg);
    text-align: center;
    cursor: pointer;
    min-width: 0;
}
.upload-box:hover { border-color: var(--navy); }
.upload-box input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box i { font-size: 24px; color: var(--muted); }
.upload-box strong { font-size: 13px; color: var(--navy); }
.upload-name { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-box.has-file { border-style: solid; border-color: var(--success); background: var(--success-bg); }
.upload-box.has-file i, .upload-box.has-file .upload-name { color: var(--success); }

.summary { border-top: 2px solid var(--navy); padding-top: 12px; margin-top: 4px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: #3b4558; }
.summary-row[hidden] { display: none; }
.summary-row.discount { color: var(--success); }
.summary-row.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}
.summary-row.total span:last-child { font-family: var(--font-heading); font-size: 24px; }

.form-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.btn.is-loading { opacity: 0.7; }
.start-over { margin-top: 14px; text-align: center; font-size: 13px; }
.start-over a { color: var(--muted); }

/* ---------- Dritarja e suksesit ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 31, 61, 0.65);
    overflow-y: auto;
}
.modal-box {
    width: 100%;
    max-width: 480px;
    background: #fff;
    border-radius: var(--radius);
    border-top: 4px solid var(--success);
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
}
.modal-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--success-bg);
    color: var(--success);
    font-size: 24px;
}
.modal-box h2 { font-size: 24px; margin-bottom: 8px; }
.modal-box > p { color: var(--muted); font-size: 15px; }
.modal-code {
    display: inline-block;
    margin: 16px 0 20px;
    padding: 8px 18px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--navy);
}
.modal-security {
    padding: 12px 14px;
    background: #fbfaf5;
    border: 1px solid #ebe5d3;
    border-radius: var(--radius);
    font-size: 14px;
    color: #5c5130;
    text-align: left;
}
.modal-security i { margin-right: 6px; }
.modal-question { margin: 16px 0 10px; font-weight: 700; color: var(--navy); }
.contact-options { display: flex; flex-direction: column; gap: 10px; }
.contact-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #c9ced8;
    border-radius: var(--radius);
    background: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.contact-option:hover { border-color: var(--navy); background: var(--bg); }
.contact-option i { font-size: 26px; width: 30px; text-align: center; color: var(--navy); }
.contact-option .fa-whatsapp { color: #128c7e; }
.contact-option strong { display: block; font-size: 15px; color: var(--navy); }
.contact-option small { display: block; font-size: 14px; color: var(--muted); word-break: break-all; }
.contact-option.selected { border-color: var(--success); background: var(--success-bg); }
.contact-option:disabled { cursor: default; }
.modal-thanks { margin-bottom: 18px; color: var(--success); font-weight: 600; }

@media (max-width: 1024px) {
    .car-layout { grid-template-columns: 1fr; }
    .booking-card { position: static; }
}

@media (max-width: 600px) {
    .panel { padding: 18px 16px; }
    .spec-table, .feature-list { grid-template-columns: 1fr; }
    .spec-table > div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
    .booking-card { padding: 18px 16px; }
    .gallery-thumb { flex-basis: 76px; height: 54px; }
    .modal-box { padding: 24px 18px; }
    .form-actions { grid-template-columns: 1fr; }
    .form-actions .btn-outline { order: 2; }
}

.feature-list li::before { content: "\2713"; color: var(--success); font-weight: 700; margin-right: 8px; }

/* ---------- Pagesa online ---------- */
.pay-box { padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); }
.pay-info { font-size: 14px; color: #3b4558; margin-bottom: 8px; }
.pay-box .pay-now { font-weight: 700; color: var(--navy); font-size: 16px; }
.pay-box .pay-now span:last-child { font-family: var(--font-heading); font-size: 22px; color: var(--accent); }
.option-price i { font-size: 22px; color: var(--navy); }
.option-price .fa-paypal { color: #003087; }
.modal-paid { margin: -6px 0 16px; color: var(--success) !important; font-weight: 600; }
/* gradiente */
.booking-card { background: linear-gradient(180deg, #ffffff 0%, #f2f4f8 100%); }
.booking-steps li { background: linear-gradient(180deg, #f1f3f6, #e6e9ee); }
.booking-steps li.active { background: linear-gradient(180deg, #ffffff, #f4f6f9); }
.estimate, .recap, .pay-box { background: linear-gradient(180deg, #f4f6f9, #e9edf2); }
.modal-box { background: linear-gradient(180deg, #ffffff 0%, #f1f3f7 100%); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3b4558; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--accent); }

.upload-box strong small { font-weight: 400; color: var(--muted); }

/* ---------- Hapi 3: pagesa ---------- */
.booking-steps.three { grid-template-columns: repeat(3, 1fr); }
.booking-steps.three li { padding: 10px 8px; font-size: 12px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; }
.pay-method {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #c9ced8;
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
}
.pay-method:hover { border-color: var(--navy); }
.pay-method:has(input:checked) { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(15, 31, 61, 0.15); background: linear-gradient(180deg, #ffffff, #f1f4f8); }
.pay-method input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--accent); }
.pay-method > i { font-size: 26px; width: 34px; text-align: center; color: var(--navy); }
.pay-method > i.fa-paypal { color: #003087; }
.pay-method strong { display: block; font-size: 15px; color: var(--navy); }
.pay-method small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
/* ---------- Telefono con prefisso ---------- */
.phone-field { position: relative; display: flex; align-items: stretch; }
.phone-field .phone-country {
    display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0;
    padding: 0 10px; border: 1px solid var(--line); border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    background: #f4f5f7; color: var(--navy); font-size: 15px; font-weight: 600; font-family: inherit; cursor: pointer;
}
.phone-field .phone-country:hover { background: #eceef2; }
.phone-field .phone-country img, .phone-list img { display: block; width: 22px; height: 16px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.phone-field .phone-country i { font-size: 10px; color: var(--muted); }
.phone-field > input[type="tel"] { flex: 1; min-width: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.phone-panel {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 50;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(15, 31, 61, 0.18);
}
.phone-panel[hidden] { display: none; }
.phone-panel .phone-search { width: 100%; padding: 10px 12px; border: none; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; font-size: 15px; font-family: inherit; }
.phone-panel .phone-search:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.phone-list { list-style: none; margin: 0; padding: 4px 0; max-height: 240px; overflow-y: auto; }
.phone-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.phone-list li:hover, .phone-list li:focus { background: #f1f3f6; outline: none; }
.phone-list li.selected { font-weight: 700; }
.phone-list li.divider { border-top: 1px solid var(--line); }
.phone-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-dial { color: var(--muted); font-variant-numeric: tabular-nums; }

/* Barra "Prenota" fissa in basso, solo su schermi piccoli */
.book-bar { display: none; }
@media (max-width: 1024px) {
    .book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line, #e5e7eb); box-shadow: 0 -4px 16px rgba(17, 26, 46, 0.08); }
    .book-bar[hidden] { display: none; }
    .book-bar-price strong { font-size: 22px; color: var(--navy, #111a2e); }
    .book-bar-price span { font-size: 13px; color: var(--muted, #6b7280); }
    .book-bar .btn { padding: 11px 22px; white-space: nowrap; }
}