/* Rezervasyon sihirbazı */
.res-page {
    background: #f4f5f7;
    min-height: calc(100vh - 120px);
    padding: 24px 0 80px;
}

.res-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.res-toolbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: var(--cr-red);
    color: #fff;
    font-weight: 700;
    font-size: .88rem;
    cursor: pointer;
}
.res-toolbar__btn--ghost {
    background: #fff;
    color: var(--cr-navy);
    border: 1px solid #e5e7eb;
}

/* Progress */
.res-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 28px;
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.res-progress__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    position: relative;
}
.res-progress__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 22px);
    width: calc(100% - 44px);
    height: 2px;
    background: #e5e7eb;
    z-index: 0;
}
.res-progress__item.is-done:not(:last-child)::after,
.res-progress__item.is-active:not(:last-child)::after {
    background: var(--cr-red);
}
.res-progress__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--cr-muted);
    display: grid;
    place-items: center;
    font-size: .9rem;
    position: relative;
    z-index: 1;
    border: 2px solid #e5e7eb;
}
.res-progress__item.is-active .res-progress__icon,
.res-progress__item.is-done .res-progress__icon {
    background: var(--cr-red);
    color: #fff;
    border-color: var(--cr-red);
}
.res-progress__item.is-done .res-progress__icon {
    background: var(--cr-green);
    border-color: var(--cr-green);
}
.res-progress__label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--cr-muted);
    line-height: 1.3;
}
.res-progress__item.is-active .res-progress__label { color: var(--cr-red); }

.res-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

/* Özet sidebar */
.res-summary {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    position: sticky;
    top: 100px;
}
.res-summary__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: .95rem;
    margin: 0 0 16px;
    color: var(--cr-red);
}
.res-summary__block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}
.res-summary__block:last-of-type { border-bottom: none; }
.res-summary__label {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--cr-muted);
    margin-bottom: 8px;
}
.res-summary__car {
    display: flex;
    gap: 10px;
    align-items: center;
}
.res-summary__car img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    background: #1a1a1a;
}
.res-summary__car-name {
    font-weight: 700;
    font-size: .88rem;
}
.res-summary__muted { font-size: .78rem; color: var(--cr-muted); }
.res-summary__row {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    margin-bottom: 6px;
}
.res-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--cr-red);
    margin-top: 12px;
}
.res-summary__note {
    background: rgba(22,163,74,.08);
    color: var(--cr-green);
    font-size: .72rem;
    padding: 10px;
    border-radius: 8px;
    margin-top: 12px;
    line-height: 1.4;
}

/* Ana panel */
.res-panel {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.res-panel__head {
    margin-bottom: 24px;
}
.res-panel__head h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}
.res-panel__head p { margin: 0; color: var(--cr-muted); font-size: .92rem; }

.res-step { display: none; }
.res-step.is-active { display: block; }

/* Form elemanları */
.res-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.res-form-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.res-field { display: flex; flex-direction: column; gap: 6px; }
.res-field--full { grid-column: 1 / -1; }
.res-field label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--cr-navy);
}
.res-field input,
.res-field select,
.res-field textarea {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: inherit;
    font-size: .92rem;
}
.res-field input:focus,
.res-field select:focus,
.res-field textarea:focus {
    outline: none;
    border-color: var(--cr-red);
    box-shadow: 0 0 0 3px rgba(211,17,36,.1);
}
.res-field.is-error input,
.res-field.is-error select,
.res-field.is-error textarea {
    border-color: var(--cr-red);
    animation: resShake .4s;
}
@keyframes resShake {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

.res-toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}
.res-toggle-btn {
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
}
.res-toggle-btn.is-active {
    border-color: var(--cr-red);
    background: var(--cr-red);
    color: #fff;
}

.res-switch-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: .9rem;
}

.res-info-bar {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .85rem;
    color: #1e40af;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.res-warn-bar {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .85rem;
    color: #9a3412;
    margin: 16px 0;
}

/* Araç listesi */
.res-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.res-cat-btn {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-size: .82rem;
    font-weight: 700;
    cursor: pointer;
}
.res-cat-btn.is-active {
    background: var(--cr-red);
    color: #fff;
    border-color: var(--cr-red);
}

.res-car-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.res-car-item {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s;
}
.res-car-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.res-car-item__img {
    height: 140px;
    background: #1a1a1a;
    position: relative;
}
.res-car-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.res-car-item__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--cr-red);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
}
.res-car-item__body { padding: 14px; }
.res-car-item__name { font-weight: 800; margin: 0 0 8px; }
.res-car-item__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .72rem;
    color: var(--cr-muted);
    margin-bottom: 10px;
}
.res-car-item__specs span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.res-car-item__deposit {
    background: #fffbeb;
    border: 1px solid #fde68a;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: .78rem;
    margin-bottom: 12px;
}
.res-car-item__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.res-car-item__price {
    font-weight: 800;
    color: var(--cr-red);
}
.res-car-item__price small {
    display: block;
    font-weight: 500;
    color: var(--cr-muted);
    font-size: .72rem;
}

/* Teslimat kartları */
.res-delivery-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.res-delivery-card {
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
}
.res-delivery-card.is-active {
    border-color: var(--cr-red);
    background: rgba(211,17,36,.04);
}
.res-delivery-card i {
    font-size: 2rem;
    color: var(--cr-red);
    margin-bottom: 10px;
}
.res-delivery-card h3 { margin: 0 0 6px; font-size: 1rem; }
.res-delivery-card p { margin: 0; font-size: .82rem; color: var(--cr-muted); }

/* KABİS */
.res-kabis-locked {
    opacity: .5;
    pointer-events: none;
    filter: grayscale(.3);
}
.res-kabis-ok {
    background: rgba(22,163,74,.1);
    color: var(--cr-green);
    padding: 10px 14px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: none;
}
.res-kabis-ok.is-visible { display: flex; align-items: center; gap: 8px; }

/* Ödeme */
.res-payment-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}
.res-payment-box h3 { margin: 0 0 12px; font-size: 1rem; }
.res-iban {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .05em;
    background: #fff;
    padding: 12px;
    border-radius: 8px;
    border: 1px dashed var(--cr-red);
    margin: 8px 0;
    word-break: break-all;
}
.res-payment-code {
    display: inline-block;
    background: var(--cr-red);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 1.1rem;
}

.res-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s;
}
.res-upload:hover { border-color: var(--cr-red); }
.res-upload input { display: none; }
.res-upload i { font-size: 2rem; color: var(--cr-muted); margin-bottom: 8px; }

/* Nav buttons */
.res-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}
.res-nav__back {
    padding: 12px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}
.res-nav__next {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: var(--cr-red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    margin-left: auto;
}
.res-nav__next:disabled { opacity: .5; cursor: not-allowed; }

/* Modals */
.res-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.res-modal.is-open { display: flex; }
.res-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
}
.res-modal__dialog {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
}
.res-modal__dialog--wide { max-width: 680px; }
.res-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    cursor: pointer;
    font-size: 1.1rem;
}
.res-modal__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.res-intro-steps { margin: 20px 0; }
.res-intro-step {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    align-items: flex-start;
}
.res-intro-step__num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cr-red);
    color: #fff;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: .85rem;
}
.res-intro-step h4 { margin: 0 0 4px; font-size: .92rem; }
.res-intro-step p { margin: 0; font-size: .82rem; color: var(--cr-muted); line-height: 1.5; }

.res-car-confirm {
    display: flex;
    gap: 16px;
    margin: 16px 0;
    align-items: center;
}
.res-car-confirm img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}
.res-car-confirm__price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--cr-red);
}
.res-transmission-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 16px 0;
}
.res-trans-btn {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
}
.res-trans-btn.is-active {
    border-color: var(--cr-red);
    background: var(--cr-red);
    color: #fff;
}

.res-success {
    text-align: center;
    padding: 60px 20px;
}
.res-success i { font-size: 4rem; color: var(--cr-green); margin-bottom: 16px; }

.res-extras-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.res-extra-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.res-extra-card:has(input:checked) {
    border-color: var(--cr-red);
    background: rgba(211,17,36,.04);
}
.res-extra-card input { margin-top: 4px; accent-color: var(--cr-red); }
.res-extra-card__icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(211,17,36,.1); color: var(--cr-red);
    display: grid; place-items: center; flex-shrink: 0;
}
.res-extra-card__body strong { display: block; font-size: .92rem; }
.res-extra-card__body small { display: block; color: var(--cr-muted); font-size: .78rem; margin-top: 2px; }
.res-extra-card__price { display: block; font-weight: 700; color: var(--cr-red); font-size: .85rem; margin-top: 6px; }

@media (max-width: 900px) {
    .res-layout { grid-template-columns: 1fr; }
    .res-summary { position: static; }
    .res-car-list { grid-template-columns: 1fr; }
    .res-delivery-cards { grid-template-columns: 1fr; }
    .res-form-grid, .res-form-grid--3 { grid-template-columns: 1fr; }
    .res-progress__label { font-size: .58rem; }
}
