/* Rezervasyon — site mavisi, 3 adımlı sihirbaz */
:root {
  --site-font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rez-bg: #e8f0f8;
  --rez-card: #ffffff;
  --rez-border: #cfe0f2;
  --rez-border-strong: #94a3b8;
  --rez-text: #0f172a;
  --rez-muted: #64748b;
  --rez-primary: #0a5392;
  --rez-primary-dark: #083a66;
  --rez-accent: #1d8dd8;
  --rez-ring: rgba(10, 83, 146, 0.22);
  --rez-radius: 18px;
  --rez-radius-sm: 12px;
  --rez-shadow: 0 20px 50px rgba(15, 23, 42, 0.09);
}

.rez-page-wrap {
  padding-top: 4px;
  padding-bottom: 40px;
}

.reservation-body {
  font-family: var(--site-font-sans);
  margin: 0;
  padding: 24px 16px 32px;
  background:
    radial-gradient(ellipse 100% 80% at 50% -20%, rgba(10, 83, 146, 0.12), transparent 50%),
    linear-gradient(180deg, #f0f6fc 0%, var(--rez-bg) 35%, #f8fafc 100%);
  color: var(--rez-text);
}

.reservation-container {
  max-width: 1180px;
  margin: auto;
  background-color: var(--rez-card);
  padding: 0;
  border: 1px solid var(--rez-border);
  border-radius: 24px;
  box-shadow: var(--rez-shadow);
  overflow: hidden;
}

.reservation-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.rez-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rez-primary);
  text-decoration: none;
}

.rez-back-link:hover {
  color: var(--rez-primary-dark);
  text-decoration: underline;
}

.rez-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.rez-step-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  border: none;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--rez-muted);
  font-family: var(--site-font-sans);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rez-step-btn::before {
  content: attr(data-rez-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.65rem;
  background: #e2e8f0;
  color: #475569;
}

.rez-step-btn.is-active {
  background: rgba(10, 83, 146, 0.12);
  color: var(--rez-primary-dark);
  box-shadow: 0 0 0 1px rgba(10, 83, 146, 0.15);
}

.rez-step-btn.is-active::before {
  background: var(--rez-primary);
  color: #fff;
}

.rez-step-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.rez-tab-panel {
  display: none;
  animation: rezFade 0.35s ease;
}

.rez-tab-panel.is-active {
  display: block;
}

@keyframes rezFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rez-booking-step1 {
  grid-template-columns: 1fr !important;
}

.rez-panel2-inner {
  max-width: 460px;
  margin: 0 auto;
}

.rez-flow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  margin-top: 4px;
}

.rez-flow-footer--single {
  justify-content: flex-end;
}

.rez-flow-spacer {
  flex: 1;
}

.rez-flow-next {
  font-weight: 800 !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
}

.rez-onay-screen {
  text-align: center;
  padding: 48px 24px 56px;
  max-width: 420px;
  margin: 0 auto;
}

.rez-onay-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe 0%, #bfdbfe 100%);
  color: var(--rez-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 12px 32px rgba(10, 83, 146, 0.18);
}

.rez-onay-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--rez-text);
}

.rez-onay-text {
  margin: 0;
  color: var(--rez-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .rez-steps {
    width: 100%;
    justify-content: center;
  }
}

.reservation-brand-bar {
  background: linear-gradient(115deg, #062a4a 0%, #0a5392 42%, #0c4a6e 100%);
  padding: 22px 26px 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.reservation-brand-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #93c5fd;
  margin-bottom: 8px;
}

.reservation-brand-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.6vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.35;
}

.reservation-inner {
  padding: 26px 24px 32px;
}

.btn-reservation-pay {
  background: linear-gradient(180deg, var(--rez-primary) 0%, var(--rez-primary-dark) 100%) !important;
  border: none !important;
  font-weight: 800 !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  box-shadow: 0 10px 28px rgba(10, 83, 146, 0.35) !important;
}

.btn-reservation-pay:hover {
  filter: brightness(1.06);
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  gap: 28px;
  align-items: start;
}

.main-forms {
  min-width: 0;
}

.sidebar-summary {
  min-width: 0;
  position: relative;
}

.form-section {
  margin-bottom: 22px;
  background: var(--rez-card);
  border: 1px solid var(--rez-border);
  border-radius: var(--rez-radius-sm);
  padding: 22px 22px 14px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.form-section:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  border-color: #bfdbfe;
}

.form-section h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #0f2744;
  letter-spacing: -0.02em;
  position: relative;
}

.form-section h2::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--rez-primary) 0%, var(--rez-accent) 100%);
  border-radius: 2px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1e293b;
}

.form-group label.required::after {
  content: " *";
  color: #dc2626;
  font-weight: 700;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--rez-border-strong);
  border-radius: 10px;
  box-sizing: border-box;
  font-size: 15px;
  font-weight: 500;
  background-color: #ffffff;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset;
  height: 44px;
}

.form-control,
.form-select {
  border: 1.5px solid var(--rez-border-strong) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03) inset !important;
  height: 44px !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--rez-primary) !important;
  box-shadow: 0 0 0 3px var(--rez-ring), 0 0 0 1px rgba(0, 0, 0, 0.02) !important;
  background-color: #fff !important;
}

.form-control[readonly] {
  background-color: #f8fafc !important;
  color: #64748b !important;
  cursor: not-allowed;
}

.form-select:disabled {
  background-color: #f8fafc !important;
  opacity: 0.75;
}

textarea.form-control {
  resize: vertical;
  min-height: 88px;
  height: auto !important;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--rez-primary);
  box-shadow: 0 0 0 3px var(--rez-ring);
}

.form-group input::placeholder {
  color: #64748b;
  font-weight: 450;
}

.room-options {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.room-type-selector {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
}

.room-type {
  border: 2px solid var(--rez-border);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  min-width: 130px;
  justify-content: center;
}

.room-type:hover {
  border-color: var(--rez-primary);
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.15);
}

.room-type-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--rez-primary);
}

.room-type-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.room-type-label {
  line-height: 1.2;
}

.room-type.active .room-type-icon {
  color: var(--rez-accent);
}

.room-type.active {
  border-color: var(--rez-primary);
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  box-shadow: 0 4px 14px rgba(10, 83, 146, 0.18);
}

.guest-form-wrapper {
  display: none !important;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.guest-form-wrapper.visible {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

.summary-card {
  border: 1px solid var(--rez-border);
  border-radius: var(--rez-radius);
  padding: 22px;
  position: sticky;
  top: 20px;
  box-shadow: var(--rez-shadow);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.summary-card img.tour-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.summary-card .tour-date {
  font-size: 13px;
  color: var(--rez-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-card .tour-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #0f172a;
  line-height: 1.35;
}

.summary-card .price {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--rez-primary-dark);
  text-align: center;
  margin-bottom: 6px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #93c5fd;
}

.summary-card .price-note {
  font-size: 12px;
  color: var(--rez-muted);
  text-align: center;
  margin-bottom: 18px;
  font-weight: 500;
}

.summary-card .terms {
  margin: 0 0 18px 0;
  font-size: 13px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.summary-card .terms-header h6 {
  color: var(--rez-primary);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 12px !important;
}

.summary-card .terms .terms-item {
  margin-bottom: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.summary-card .terms .form-check-label {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}

.summary-card .agreement {
  font-size: 11px;
  color: var(--rez-muted);
  line-height: 1.5;
  text-align: center;
  padding: 12px;
  background: #f1f5f9;
  border-radius: 10px;
  margin-top: 12px;
}

.reservation-number {
  margin: 16px 0;
}

.reservation-number .alert {
  border-radius: 12px;
  border-color: #93c5fd;
  background: #eff6ff;
}

#corporate_fields,
#tax_fields {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  margin: 10px 0;
}

@media (max-width: 992px) {
  .booking-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar-summary {
    order: 2;
  }
  .main-forms {
    order: 1;
  }
  .summary-card {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .reservation-body {
    padding: 12px 10px 24px;
  }
  .reservation-inner {
    padding: 18px 14px 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .room-options {
    flex-direction: column;
    align-items: stretch;
  }
  .room-type-selector {
    margin-left: 0;
    justify-content: flex-start;
  }
}

@media (max-width: 576px) {
  .reservation-brand-bar {
    padding: 18px 16px 20px;
  }
  .form-section h2 {
    font-size: 0.95rem;
  }
}
