:root {
  --guest-bg: #f1f4fa;
  --guest-blue: #0e3fad;
  --guest-blue-2: #0e3fad;
  --guest-text: #171d2a;
  --guest-muted: #697386;
  --guest-line: #e5ebf4;
  --guest-input: #edf2fa;
}

body.hotel-guest-page {
  margin: 0;
  background: var(--guest-bg);
  color: var(--guest-text);
}

.hotel-guest-main {
  padding: 24px 0 56px;
}

.hotel-guest-search {
  margin-bottom: 30px;
}

.guest-title {
  text-align: center;
  margin: 0 auto 40px;
}

.guest-title h1 {
  margin: 0;
  font-size: clamp(1.875rem, 1.2188rem + 1.75vw, 2.75rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.guest-title p {
  margin: 10px 0 0;
  color: #747684;
  font-size: 14px;
  font-weight: 500;
}

.booking-steps {
  display: grid;
  grid-template-columns:
    14px minmax(30px, 1fr) 52px minmax(30px, 1fr)
    52px minmax(30px, 1fr) 52px minmax(30px, 1fr) 52px minmax(30px, 1fr) 14px;
  align-items: center;
  width: min(100%, 960px);
  margin: 0 auto 40px;
}

.step-dot,
.step-node {
  border-radius: 50%;
  background: #cfd7e5;
}

.step-dot {
  width: 14px;
  height: 14px;
}

.step-dot.is-done,
.step-node.is-done,
.step-node.is-active {
  background: var(--guest-blue);
}

.step-line {
  height: 2px;
  background: #cfd7e5;
}

.step-line.is-done {
  background: repeating-linear-gradient(
    90deg,
    var(--guest-blue) 0 4px,
    transparent 4px 8px
  );
}

.step-node {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  justify-self: center;
  color: #6c7688;
  font-size: 14px;
  font-weight: 900;
}

.step-node.is-done,
.step-node.is-active {
  color: #fff;
}

.step-node svg {
  width: 16px;
  height: 16px;
}

.step-node b {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  width: 110px;
  transform: translateX(-50%);
  color: #586376;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  text-align: center;
}

.step-node.is-active b {
  color: var(--guest-blue);
}

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

.guest-form-column {
  display: grid;
  gap: 24px;
}

.guest-panel,
.important-info,
.stay-card,
.coupon-card,
.price-card {
  border-radius: 8px;
  background: #fff;
}

.guest-panel {
  padding: 30px;
}

.guest-panel h2,
.panel-title-row h2,
.coupon-card h2,
.price-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #171c21;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.guest-panel h2 svg,
.panel-title-row svg {
  width: 17px;
  height: 17px;
  color: var(--guest-blue);
}

.guest-panel h2 small {
  color: #8a94a6;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.contact-grid,
.person-grid,
.arrival-grid {
  display: grid;
  gap: 18px 20px;
}

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

.person-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.guest-panel label {
  min-width: 0;
}

.guest-panel label span,
.guest-label {
  display: block;
  margin-bottom: 8px;
  color: #444653;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guest-panel input,
.guest-panel select,
.guest-panel textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  background: var(--guest-input);
  color: #172033;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
}

.guest-panel input,
.guest-panel select {
  padding: 0 14px;
}

.guest-panel textarea {
  min-height: 78px;
  padding: 18px 16px;
  resize: vertical;
}

.guest-panel input:focus,
.guest-panel select:focus,
.guest-panel textarea:focus {
  border-color: rgba(14, 63, 173, 0.32);
  background: #f7faff;
}

.phone-field > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 6px;
  background: var(--guest-input);
}

.phone-field button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: #162033;
  font-size: 12px;
  font-weight: 800;
}

.phone-field button svg {
  width: 12px;
  height: 12px;
}

.phone-field input {
  border-radius: 0;
  background: transparent;
}

.whatsapp-check {
  align-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.whatsapp-check input {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--guest-blue);
}

.whatsapp-check span {
  margin: 0 !important;
  color: #364156;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.panel-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-title-row h2 {
  margin: 0;
}

.panel-title-row > span {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--guest-blue);
  background: #e9efff;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.guest-person + .guest-person {
  margin-top: 26px;
}

.guest-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #5f697c;
}

.guest-label b {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4eaf3;
  color: #647084;
  font-size: 9px;
}

.add-child-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 0;
  color: var(--guest-blue);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.add-child-btn svg {
  width: 16px;
  height: 16px;
}

.important-info {
  display: flex;
  gap: 16px;
  padding: 22px 44px;
  background: #e8eefc;
}

.important-info > svg {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  color: var(--guest-blue);
  flex: 0 0 auto;
}

.important-info strong {
  display: block;
  color: var(--guest-blue);
  font-size: 16px;
  font-weight: 700;
}

.important-info p {
  margin: 6px 0 0;
  color: #4d586d;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.guest-summary-column {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 22px;
}

.stay-card {
  overflow: hidden;
}

.stay-image {
  position: relative;
  min-height: 118px;
  background:
    linear-gradient(180deg, rgba(16, 27, 49, 0.08), rgba(16, 27, 49, 0.12)),
    url("../images/hotel-result-pool.png") center/cover;
}

.stay-image span {
  position: absolute;
  top: 14px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  font-weight: 900;
}

.stay-image svg {
  width: 12px;
  height: 12px;
  color: #ffb000;
  fill: #ffb000;
}

.stay-body {
  padding: 22px 22px 20px;
}

.stay-body h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.stay-body > p {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 26px;
  color: #747684;
  font-size: 12px;
  font-weight: 600;
}

.stay-body p svg {
  width: 12px;
  height: 12px;
}

.stay-date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.stay-date-grid span,
.stay-room-line span,
.price-row span,
.payable-row span {
  display: block;
  color: #747684;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stay-date-grid strong,
.stay-room-line strong {
  display: block;
  margin-top: 7px;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.stay-room-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.coupon-card,
.price-card {
  padding: 22px;
}

.coupon-card h2,
.price-card h2 {
  margin-bottom: 14px;
  color: #667084;
  font-size: 11px;
}

.coupon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 10px;
}

.coupon-row input {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--guest-input);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.coupon-row button {
  border-radius: 8px;
  color: #fff;
  background: var(--guest-blue);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.coupon-tags {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.coupon-tags span {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--guest-blue);
  background: #d9e2ff;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #002a811a;
}

.price-card {
  padding-bottom: 26px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
}

.price-row span {
  color: #444653;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.price-row strong {
  font-size: 12px;
  font-weight: 600;
}

.price-row.promo span,
.price-row.promo strong {
  color: #e01f2d;
}

.payable-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 16px;
  align-items: end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--guest-line);
}

.payable-row span {
  color: #465266;
  font-size: 10px;
}

.payable-row strong {
  grid-row: 1 / span 2;
  grid-column: 1;
  color: var(--guest-blue);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
}

.payable-row small {
  grid-column: 2;
  color: #667084;
  font-size: 9px;
  font-weight: 700;
}

.continue-payment {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--guest-blue);
  box-shadow: 0 12px 24px rgba(14, 63, 173, 0.22);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  color: #687386;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trust-row svg {
  width: 12px;
  height: 12px;
}

@media (max-width: 1180px) {
  .guest-layout {
    grid-template-columns: 1fr;
  }

  .guest-summary-column {
    position: static;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    align-items: start;
  }

  .price-card {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 1024px) {
  .hotel-guest-search {
    display: none;
  }

  .hotel-guest-main {
    padding-top: 18px;
  }
}

@media (max-width: 820px) {
  .booking-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    width: min(100%, 520px);
  }

  .step-line,
  .step-dot {
    display: none;
  }

  .step-node {
    width: 36px;
    height: 36px;
  }

  .step-node b {
    width: 84px;
    font-size: 9px;
  }

  .contact-grid,
  .person-grid,
  .arrival-grid {
    grid-template-columns: 1fr;
  }

  .guest-summary-column {
    grid-template-columns: 1fr;
  }

  .price-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .hotel-results-container {
    width: min(100% - 28px, 1440px);
  }

  .guest-title {
    margin-bottom: 26px;
  }

  .booking-steps {
    margin-bottom: 34px;
  }

  .guest-panel {
    padding: 20px 16px;
  }

  .panel-title-row {
    align-items: flex-start;
  }

  .phone-field > div {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .important-info {
    padding: 18px 16px;
  }

  .stay-date-grid,
  .stay-room-line {
    gap: 16px;
  }

  .stay-body,
  .coupon-card,
  .price-card {
    padding: 18px;
  }
}
