.checkout-page-body {
  background: #f7f1e7;
  color: #102019;
}

.checkout-topbar {
  padding: 156px 0 24px;
  background: #f7f1e7;
}

.checkout-topbar .container,
.booking-main.container {
  max-width: 1200px;
}

.checkout-topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #0d3f2b;
  font-weight: 600;
  text-decoration: none;
}

.checkout-topbar__back:hover {
  color: #1f5a3c;
}

.checkout-topbar__title h1 {
  margin: 0;
  color: #101820;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
}

.checkout-topbar__sub {
  margin: 10px 0 0;
  color: #314238;
  font-size: 1rem;
}

.booking-main {
  padding: 0 0 72px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}

.checkout-sections {
  min-width: 0;
}

.section-title {
  margin: 28px 0 12px;
  color: #101820;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.1;
}

.checkout-card,
.payment-method,
.summary-card {
  background: #fff;
  border: 1px solid rgba(16, 32, 25, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 32, 25, 0.08);
}

.checkout-card {
  padding: 22px;
}

.checkout-card + .checkout-card {
  margin-top: 16px;
}

.checkout-card p:last-child,
.request-only-card p:last-child {
  margin-bottom: 0;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.form-group label {
  color: #173426;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea,
.date-box input,
.summary-coupon input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(16, 32, 25, 0.22);
  border-radius: 6px;
  background: #fff;
  color: #101820;
  font: inherit;
  padding: 10px 12px;
}

.form-group textarea {
  min-height: 106px;
  resize: vertical;
}

.phone-input {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
}

.form-note {
  color: #66746b;
  font-size: 0.92rem;
}

.payment-methods {
  display: grid;
  gap: 14px;
}

.payment-method {
  display: block;
  padding: 18px;
  cursor: pointer;
}

.payment-method.is-selected {
  border-color: #1f5a3c;
  box-shadow: 0 0 0 2px rgba(31, 90, 60, 0.16);
}

.payment-method > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-method__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-method__radio {
  width: 18px;
  height: 18px;
  border: 2px solid #91a294;
  border-radius: 50%;
  flex: 0 0 auto;
}

.payment-method.is-selected .payment-method__radio {
  border: 5px solid #1f5a3c;
}

.payment-method__title {
  color: #101820;
  font-weight: 800;
}

.payment-method__icons {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.payment-method__icons img {
  width: 30px;
  height: 20px;
  object-fit: contain;
}

.payment-method__body {
  margin-top: 16px;
}

.complete-booking {
  margin-top: 28px;
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.terms-checkbox input {
  margin-top: 5px;
}

.terms-checkbox a {
  color: #0d3f2b;
  font-weight: 700;
}

.btn-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  background: #101820;
  color: #fff;
  font-weight: 800;
  padding: 14px 24px;
}

.btn-confirm:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.checkout-inline-error,
.checkout-error-card {
  margin-bottom: 16px;
  border: 1px solid #e0a2a2;
  border-radius: 8px;
  background: #fff5f5;
  color: #8a1f1f;
  padding: 14px 16px;
}

.booking-sidebar {
  position: sticky;
  top: 140px;
}

.summary-card {
  padding: 18px;
}

.property-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.property-preview img {
  width: 96px;
  height: 76px;
  border-radius: 6px;
  object-fit: cover;
}

.property-info h3,
.property-info p {
  margin: 0;
}

.property-info h3 {
  color: #7d8a81;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.property-info p {
  color: #101820;
  font-weight: 800;
}

.policy-note {
  margin-bottom: 16px;
  border-radius: 6px;
  background: #f7f1e7;
  color: #415248;
  padding: 12px;
}

.policy-note p {
  margin: 0;
}

.summary-section {
  border-top: 1px solid rgba(16, 32, 25, 0.1);
  padding-top: 16px;
  margin-top: 16px;
}

.summary-section__title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 800;
}

.summary-dates,
.date-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.date-box {
  color: #173426;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.stay-limits-hint {
  margin: 8px 0 0;
  color: #66746b;
  font-size: 0.86rem;
}

.guests-selector {
  position: relative;
}

.guests-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid rgba(16, 32, 25, 0.22);
  border-radius: 6px;
  background: #fff;
  color: #101820;
  padding: 10px 12px;
}

.guests-trigger-label {
  color: #173426;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.guests-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  width: min(320px, 92vw);
  border: 1px solid rgba(16, 32, 25, 0.14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(16, 32, 25, 0.16);
  padding: 14px;
}

.guests-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
}

.guests-row + .guests-row {
  border-top: 1px solid rgba(16, 32, 25, 0.08);
}

.guests-row__label strong,
.guests-row__label small {
  display: block;
}

.guests-row__label small {
  color: #66746b;
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(16, 32, 25, 0.22);
  border-radius: 50%;
  background: #fff;
  color: #0d3f2b;
  font-weight: 800;
}

.stepper-btn:disabled {
  color: #b6bdb8;
}

.stepper-value {
  min-width: 20px;
  text-align: center;
  font-weight: 800;
}

.guests-popover-close {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: #f0e7da;
  color: #102019;
  font-weight: 800;
  padding: 10px;
}

.summary-addon,
.summary-coupon__row,
.summary-coupon__applied,
.price-row,
.total-row,
.installments-card li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.summary-addon {
  padding: 9px 0;
}

.summary-addon__label {
  flex: 1;
}

.summary-coupon summary {
  cursor: pointer;
  font-weight: 800;
}

.summary-coupon__row {
  margin-top: 10px;
}

.summary-coupon__row button,
.summary-coupon__applied button {
  border: 0;
  border-radius: 6px;
  background: #1f5a3c;
  color: #fff;
  font-weight: 800;
  padding: 10px 14px;
}

.summary-coupon__msg {
  margin-top: 8px;
  font-size: 0.9rem;
}

.summary-coupon__msg.is-success {
  color: #1f5a3c;
}

.summary-coupon__msg.is-error {
  color: #8a1f1f;
}

.price-breakdown {
  border-top: 1px solid rgba(16, 32, 25, 0.1);
  margin-top: 16px;
  padding-top: 16px;
}

.price-row {
  color: #415248;
  margin-bottom: 10px;
}

.price-row--discount {
  color: #1f5a3c;
}

.total-row {
  border-top: 1px solid rgba(16, 32, 25, 0.14);
  margin-top: 14px;
  padding-top: 16px;
  color: #101820;
  font-size: 1.15rem;
  font-weight: 900;
}

.installments-card {
  margin-top: 14px;
  border-radius: 6px;
  background: #f7f1e7;
  padding: 12px;
}

.installments-card ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

#stripe-card-element {
  border: 1px solid rgba(16, 32, 25, 0.22);
  border-radius: 6px;
  padding: 13px 12px;
}

#stripe-card-errors {
  color: #8a1f1f;
  margin-top: 8px;
}

.status-page,
.confirmation-page {
  background: #f7f3ea;
  color: #22221f;
  padding: 156px 0 80px;
}

.status-page .container,
.confirmation-page .container {
  max-width: 1200px;
}

.status-card,
.confirmation-hero,
.confirmation-card {
  border: 1px solid rgba(16, 32, 25, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 32, 25, 0.08);
}

.status-card,
.confirmation-hero {
  text-align: center;
  padding: 34px 28px;
}

.status-card {
  max-width: 720px;
  margin: 0 auto;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  flex: 0 0 auto;
}

.status-icon svg {
  display: block;
  width: 34px;
  height: 34px;
}

.status-icon--success {
  background: #1f5a3c;
}

.status-icon--pending {
  background: #b78222;
}

.status-icon--error {
  background: #8a1f1f;
}

.status-card h1,
.confirmation-hero h1 {
  margin: 0;
  color: #22221f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 0.98;
}

.status-page__lead,
.confirmation-hero__lead {
  max-width: 760px;
  margin: 14px auto 0;
  color: #415248;
  font-size: 1.08rem;
  line-height: 1.7;
}

.status-page__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.status-page__actions .btn-confirm,
.status-card .btn-confirm {
  width: auto;
}

.status-page__hint,
.confirmation-hero__id,
.receipt-payment-method {
  color: #66746b;
  font-size: 0.92rem;
}

.confirmation-hero__id {
  margin: 12px 0 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confirmation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 30px;
  align-items: start;
  margin-top: 28px;
}

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

.confirmation-card {
  padding: 24px;
}

.confirmation-card + .confirmation-card,
.confirmation-sidebar .confirmation-card + .confirmation-card {
  margin-top: 18px;
}

.confirmation-card__title {
  margin: 0 0 16px;
  color: #22221f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.property-summary {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.property-summary img {
  width: 130px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.property-summary__info h3,
.property-summary__info p {
  margin: 0;
}

.property-summary__info h3 {
  color: #22221f;
  font-size: 1.1rem;
  font-weight: 800;
}

.property-summary__info p {
  margin-top: 4px;
  color: #66746b;
}

.trip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(16, 32, 25, 0.1);
  border-radius: 8px;
  background: rgba(16, 32, 25, 0.1);
}

.trip-grid__cell {
  min-height: 112px;
  background: #fbfaf5;
  padding: 16px;
}

.trip-grid__label {
  display: block;
  margin-bottom: 8px;
  color: #7d8a81;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trip-grid__cell strong,
.trip-grid__cell small {
  display: block;
}

.trip-grid__cell strong {
  color: #22221f;
  line-height: 1.25;
}

.trip-grid__cell small {
  margin-top: 5px;
  color: #66746b;
}

.kv-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.kv-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid rgba(16, 32, 25, 0.08);
  padding-bottom: 12px;
}

.kv-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.kv-row dt {
  color: #7d8a81;
  font-weight: 800;
}

.kv-row dd {
  margin: 0;
  color: #22221f;
  overflow-wrap: anywhere;
}

.next-steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.next-steps li {
  position: relative;
  min-height: 48px;
  padding-left: 64px;
  counter-increment: next-step;
}

.next-steps li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0d3f2b;
  color: #fff;
  content: counter(next-step);
  font-weight: 900;
}

.next-steps strong {
  display: block;
  color: #22221f;
  margin-bottom: 4px;
}

.next-steps p,
.confirmation-policy {
  margin: 0;
  color: #415248;
  line-height: 1.65;
}

.cancel-pill {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #f0e7da;
  color: #0d3f2b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 7px 12px;
  text-transform: uppercase;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.help-tile {
  display: block;
  min-width: 0;
  border: 1px solid rgba(16, 32, 25, 0.1);
  border-radius: 8px;
  color: inherit;
  padding: 14px;
  text-decoration: none;
}

.help-tile:hover {
  border-color: #1f5a3c;
  color: inherit;
}

.help-tile__label {
  display: block;
  margin-bottom: 5px;
  color: #7d8a81;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.help-tile strong {
  overflow-wrap: anywhere;
}

.confirmation-sidebar {
  position: sticky;
  top: 140px;
}

.receipt-card {
  background: #fbfaf5;
}

.receipt-row,
.receipt-total,
.receipt-installments li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #415248;
  padding: 10px 0;
}

.receipt-row + .receipt-row,
.receipt-installments {
  border-top: 1px solid rgba(16, 32, 25, 0.08);
}

.receipt-row--discount {
  color: #1f5a3c;
}

.receipt-total {
  border-top: 1px solid rgba(16, 32, 25, 0.14);
  margin-top: 10px;
  color: #22221f;
  font-size: 1.16rem;
  font-weight: 900;
}

.receipt-installments {
  margin-top: 12px;
  padding-top: 14px;
}

.receipt-installments ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.receipt-installments li {
  font-size: 0.92rem;
}

.confirmation-print,
.confirmation-cta {
  margin-top: 14px;
}

.confirmation-print {
  width: 100%;
}

@media (max-width: 991px) {
  .checkout-topbar {
    padding-top: 142px;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-sidebar,
  .confirmation-sidebar {
    position: static;
  }

  .status-page,
  .confirmation-page {
    padding-top: 142px;
  }

  .confirmation-layout {
    grid-template-columns: 1fr;
  }

  .help-grid,
  .trip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .checkout-topbar {
    padding-top: 130px;
  }

  .checkout-card,
  .summary-card {
    padding: 16px;
  }

  .form-row,
  .summary-dates,
  .date-inputs,
  .phone-input {
    grid-template-columns: 1fr;
  }

  .property-preview {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .property-preview img {
    width: 82px;
    height: 66px;
  }

  .status-page,
  .confirmation-page {
    padding: 130px 0 56px;
  }

  .status-card,
  .confirmation-hero,
  .confirmation-card {
    padding: 18px;
  }

  .status-icon {
    width: 62px;
    height: 62px;
  }

  .status-icon svg {
    width: 28px;
    height: 28px;
  }

  .property-summary,
  .trip-grid,
  .help-grid,
  .kv-row {
    grid-template-columns: 1fr;
  }

  .property-summary img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .trip-grid__cell {
    min-height: auto;
  }

  .next-steps li {
    padding-left: 54px;
  }
}
