/* Kiralama Koruma Paketi + checkout adımları */
.rental-wizard {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rental-wizard__steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  margin-bottom: 0.15rem;
}

.rental-wizard__progress {
  height: 4px;
  border-radius: 999px;
  background: var(--color-border, #e2e8f0);
  overflow: hidden;
}

.rental-wizard__progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.rental-wizard__phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  width: 100%;
}

.rental-phase {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  background: var(--color-surface-muted, #f8fafc);
  border: 1px solid var(--color-border, #e2e8f0);
  color: var(--color-text-muted, #64748b);
  text-align: center;
  min-width: 0;
  transition:
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.rental-phase__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.rental-phase__label {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-phase.is-active {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.12);
  transform: translateY(-1px);
}

.rental-phase.is-active .rental-phase__num {
  background: #16a34a;
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15);
}

.rental-phase.is-done {
  border-color: rgba(22, 163, 74, 0.28);
  background: rgba(22, 163, 74, 0.06);
  color: #15803d;
}

.rental-phase.is-done .rental-phase__num {
  background: #16a34a;
  color: #fff;
  font-size: 0.68rem;
}

.rental-wizard--easy .rental-form__head {
  display: block !important;
  align-items: stretch;
  margin-bottom: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border, #e2e8f0);
}

.rental-wizard--easy .rental-form__head-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rental-wizard--easy .rental-form__head h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text, #0f172a);
  line-height: 1.2;
}

.rental-wizard--easy .rental-form__sub {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  line-height: 1.35;
}

.rental-step-block h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text, #0f172a);
}

.rental-step-block__hint {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--color-text-muted, #64748b);
  line-height: 1.4;
}

[data-theme="dark"] .rental-phase {
  background: var(--color-surface-muted, #0f172a);
  border-color: var(--color-border, #1e293b);
  color: var(--color-text-muted, #94a3b8);
}

[data-theme="dark"] .rental-phase.is-active,
[data-theme="dark"] .rental-phase.is-done {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

[data-theme="dark"] .rental-phase.is-active .rental-phase__num,
[data-theme="dark"] .rental-phase.is-done .rental-phase__num {
  background: #22c55e;
  color: #fff;
}

[data-theme="dark"] .rental-wizard__progress {
  background: #1e293b;
}
.rental-protect-details,
.rental-offer-details,
.rental-terms-details {
  margin-top: 0.75rem;
  border: 1px dashed var(--color-border, #e2e8f0);
  border-radius: 12px;
  padding: 0.45rem 0.75rem 0.55rem;
  background: var(--color-surface-muted, #f8fafc);
  color: var(--color-text, inherit);
}
.rental-protect-details > summary,
.rental-offer-details > summary,
.rental-terms-details > summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--color-text-muted, #64748b);
  list-style: none;
  padding: 0.4rem 0.1rem;
  background: transparent;
}
.rental-protect-details > summary::-webkit-details-marker,
.rental-offer-details > summary::-webkit-details-marker,
.rental-terms-details > summary::-webkit-details-marker {
  display: none;
}
.rental-protect-details > summary .form-label-optional,
.rental-offer-details > summary .form-label-optional,
.rental-terms-details > summary .form-label-optional {
  color: var(--color-text-muted, #94a3b8);
  font-weight: 500;
}
.rental-wizard--easy .rental-agree {
  margin: 0.85rem 0;
}
.rental-wizard--easy .detail__rent-btn {
  margin-top: 0.35rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rental-wizard--easy .detail__rent-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rental-wizard__panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.rental-wizard__panel[hidden] { display: none !important; }
.rental-wizard__nav {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.rental-wizard__nav .btn {
  flex: 1;
  min-height: 48px;
  min-width: 0;
  font-weight: 700;
}
/* .btn display, [hidden] özniteliğini eziyordu — Geri/Devam bozuluyordu */
.rental-wizard__nav .btn[hidden] {
  display: none !important;
}

.pp-card {
  background: var(--color-surface-muted, #f8fafc);
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 16px;
  box-shadow: none;
  padding: 0.95rem 0.9rem 1.05rem;
  color: var(--color-text, #0f172a);
  animation: ppFadeIn 0.28s ease;
}
@keyframes ppFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.pp-card__head {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.pp-card__icon {
  width: 2.4rem;
  height: 2.4rem;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-primary-dark, #15803d);
  box-shadow: none;
}
.pp-card__icon svg { width: 22px; height: 22px; }
.pp-card__head-text {
  min-width: 0;
  flex: 1;
}
.pp-card__title {
  margin: 0 0 0.25rem;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text, #0f172a);
}
.pp-card__desc {
  margin: 0;
  text-align: left;
  color: var(--color-text-muted, #64748b);
  font-size: 0.84rem;
  line-height: 1.45;
}
.pp-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.pp-option {
  position: relative;
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: 14px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #0f172a);
  padding: 0.85rem 0.75rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  min-height: 100%;
}
.pp-option:hover {
  transform: translateY(-1px);
  border-color: rgba(22, 163, 74, 0.4);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.pp-option.is-selected {
  border-color: var(--color-primary, #16a34a);
  background: rgba(22, 163, 74, 0.1);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.pp-option__check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 2px solid var(--color-border, #cbd5e1);
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: transparent;
  background: var(--color-surface, #fff);
}
.pp-option.is-selected .pp-option__check {
  border-color: var(--color-primary, #16a34a);
  background: var(--color-primary, #16a34a);
  color: #fff;
}
.pp-option__title {
  margin: 0 1.4rem 0.35rem 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-text, #0f172a);
  line-height: 1.3;
}
.pp-option__desc {
  margin: 0;
  font-size: 0.78rem;
  color: var(--color-text-muted, #64748b);
  line-height: 1.45;
}
.pp-option__benefits {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.pp-option__benefits li {
  font-size: 0.74rem;
  color: var(--color-text, #334155);
  font-weight: 600;
}
.pp-option__benefits li::before {
  content: "✓ ";
  color: var(--color-primary, #16a34a);
  font-weight: 800;
}
.pp-option__fee {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: var(--color-primary-dark, #15803d);
  font-size: 0.78rem;
  font-weight: 800;
}
.pp-hint {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.8rem;
  color: #b45309;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 0.5rem 0.65rem;
}
.pp-hint[hidden] { display: none !important; }

.rental-summary__row--protection span:last-child {
  color: #1d4ed8;
  font-weight: 700;
}
.rental-summary__row--protection-none span:last-child {
  color: #94a3b8;
}

.rental-step-block h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}
.rental-step-block p {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}
.rental-terms-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.84rem;
  color: #475569;
  margin-bottom: 0.75rem;
  white-space: pre-wrap;
}
.rental-agree {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.4;
  cursor: pointer;
}
.rental-agree input { margin-top: 0.2rem; width: 18px; height: 18px; }

.rental-pay-note {
  background: linear-gradient(135deg, var(--color-rental-light, #eff6ff), #fff);
  border: 1px solid var(--color-rental-soft, #bfdbfe);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--color-rental-ink, #1e3a8a);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .pp-options { grid-template-columns: 1fr; }
  .pp-card { padding: 1rem 0.9rem 1.1rem; }
  .rental-wizard__pill { font-size: 0.6rem; padding: 0.32rem 0.48rem; }
}

/* Mobil: kiralama kutusu asla viewport dışına taşmasın */
@media (max-width: 900px) {
  body[data-page="detail"] {
    overflow-x: hidden;
  }
  body[data-page="detail"] .detail__booking-card,
  body[data-page="detail"] #rental-box,
  body[data-page="detail"] .rental-form,
  body[data-page="detail"] .rental-wizard {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  /* width:100% + yan margin taşmaya yol açıyordu */
  body[data-page="detail"] .detail-booking {
    width: auto;
    max-width: none;
    min-width: 0;
    margin-left: 0.85rem;
    margin-right: 0.85rem;
    overflow: visible;
    box-sizing: border-box;
  }
  body[data-page="detail"] .detail__booking-card {
    overflow: visible;
    padding: 0.85rem !important;
  }
  body[data-page="detail"] .rcal,
  body[data-page="detail"] #rental-calendar-mount {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
  }
  body[data-page="detail"] .rcal-weekdays,
  body[data-page="detail"] .rcal-grid,
  body[data-page="detail"] .rcal-week-row {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

/* ---- Karanlık mod: koruma / teslim detayları ---- */
[data-theme="dark"] .rental-protect-details,
[data-theme="dark"] .rental-offer-details,
[data-theme="dark"] .rental-terms-details {
  background: var(--color-surface-muted, #0f172a) !important;
  border-color: var(--color-border, #1e293b) !important;
  color: var(--color-text, #f8fafc) !important;
}

[data-theme="dark"] .rental-protect-details > summary,
[data-theme="dark"] .rental-offer-details > summary,
[data-theme="dark"] .rental-terms-details > summary {
  background: transparent !important;
  color: var(--color-text-muted, #94a3b8) !important;
}

[data-theme="dark"] .pp-card {
  background: #0f172a !important;
  border-color: #1e293b !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

[data-theme="dark"] .pp-option {
  background: #111827 !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
  background-image: none !important;
}

[data-theme="dark"] .pp-option:hover {
  border-color: rgba(34, 197, 94, 0.45) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
}

[data-theme="dark"] .pp-option.is-selected {
  background: rgba(34, 197, 94, 0.14) !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15) !important;
}

[data-theme="dark"] .pp-option__title,
[data-theme="dark"] .pp-card__title,
[data-theme="dark"] .pp-option__benefits li {
  color: #f8fafc !important;
}

[data-theme="dark"] .pp-option__desc,
[data-theme="dark"] .pp-card__desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .pp-option__check {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: transparent !important;
}

[data-theme="dark"] .pp-option.is-selected .pp-option__check {
  background: #22c55e !important;
  border-color: #22c55e !important;
  color: #fff !important;
}

[data-theme="dark"] .pp-option__fee {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #86efac !important;
}

[data-theme="dark"] .pp-card__icon {
  background: rgba(34, 197, 94, 0.16) !important;
  color: #86efac !important;
}

[data-theme="dark"] .pp-hint {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #fde68a !important;
}

[data-theme="dark"] .rental-cargo-hint {
  background: var(--color-rental-light, #1e3a5f) !important;
  border-color: rgba(59, 130, 246, 0.35) !important;
  color: var(--color-rental-ink, #bfdbfe) !important;
}

[data-theme="dark"] .rental-delivery-type__card {
  background: var(--color-surface, #111827) !important;
  border-color: var(--color-border, #1e293b) !important;
  color: var(--color-text, #f8fafc) !important;
}

[data-theme="dark"] .rental-delivery-type__text strong {
  color: var(--color-text, #f8fafc) !important;
}

[data-theme="dark"] .rental-delivery-type__text small {
  color: var(--color-text-muted, #94a3b8) !important;
}
