:root {
  --background: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #fcfbf9;
  --text: #333333;
  --text-soft: #666666;
  --muted: #8a8a8a;
  --border: #e5e1d8;
  --primary: #0c71c3;
  --primary-strong: #0a5da1;
  --radius: 12px;
  --topbar-control-height: 40px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--background);
}

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

@keyframes bookingSoftPulse {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(12, 113, 195, 0.16);
  }
  50% {
    box-shadow: 0 12px 26px rgba(12, 113, 195, 0.28);
  }
}

@keyframes bookingShineSweep {
  0% {
    transform: translateX(-120%);
  }
  45%,
  100% {
    transform: translateX(130%);
  }
}

@keyframes bookingSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.booking-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  z-index: 100000;
  opacity: 0;
  animation: bookingFadeUp 0.46s ease-out forwards;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-wrap:visited,
.brand-wrap:hover,
.brand-wrap:focus-visible,
.brand-wrap .brand-name,
.brand-wrap .brand-tagline {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  /* border-radius: 999px; */
  background: #ffffff;
  color: var(--primary);
  /* border: 1px solid #d9e6f3; */
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  overflow: hidden;
}

.brand-logo {
  width: 132%;
  height: 132%;
  object-fit: contain;
  object-position: center;
}

.brand-stack {
  display: grid;
  gap: 3px;
}

.brand-name {
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
  font-weight: 700;
  color: var(--text);
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: var(--topbar-control-height);
  height: var(--topbar-control-height);
  border-radius: 999px;
  border: 1px solid #d8e3ef;
  background: #ffffff;
  color: #4b5563;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 8px 12px;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.top-action-link:hover,
.top-action-link:focus-visible {
  background: #f0f7ff;
  color: #0c71c3;
  border-color: #c8dbef;
  outline: none;
}

.top-action-link--status {
  background: #ecf6ff;
  color: #0c71c3;
  border-color: #bfdbf3;
  pointer-events: none;
}

.simple-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  background: #fff;
  min-height: var(--topbar-control-height);
  height: var(--topbar-control-height);
  overflow: visible;
}

.simple-select::after {
  content: '\25BE';
  position: absolute;
  right: 10px;
  pointer-events: none;
  font-size: 0.72em;
  color: #b1b1b1;
  transition: transform 0.18s ease;
}

.simple-select.is-open::after {
  transform: rotate(180deg);
}

.simple-select select {
  appearance: none;
  display: inline-flex;
  align-items: center;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 24px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: calc(var(--topbar-control-height) - 2px);
  height: calc(var(--topbar-control-height) - 2px);
  line-height: 1;
}

.simple-select.has-enhanced-select .simple-select-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.simple-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 24px 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  min-height: calc(var(--topbar-control-height) - 2px);
  height: calc(var(--topbar-control-height) - 2px);
  line-height: 1;
  white-space: nowrap;
}

.simple-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(8, 31, 62, 0.16);
  padding: 6px;
  z-index: 100001;
}

.simple-select-menu[hidden] {
  display: none;
}

.simple-select-option {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.simple-select-option:hover,
.simple-select-option:focus-visible {
  background: #edf6ff;
  color: var(--primary);
  outline: none;
}

.simple-select-option.is-selected {
  background: #e5f2ff;
  color: var(--primary);
}

.simple-select select:focus-visible {
  outline: 2px solid rgba(12, 113, 195, 0.28);
  outline-offset: 1px;
}

.simple-select-trigger:focus-visible {
  outline: 2px solid rgba(12, 113, 195, 0.28);
  outline-offset: 1px;
}

.booking-main {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 390px);
  gap: 14px;
  align-items: start;
}

.checkout-column,
.summary-column {
  opacity: 0;
  animation: bookingFadeUp 0.5s ease-out forwards;
}

.checkout-column {
  animation-delay: 0.12s;
}

.summary-column {
  animation-delay: 0.22s;
}

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

.breadcrumb {
  margin: 6px 2px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.92rem;
  color: var(--text-soft);
  opacity: 0;
  animation: bookingFadeUp 0.48s ease-out 0.18s forwards;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb strong {
  color: var(--primary);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.processing-card {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px 20px;
  display: grid;
  gap: 10px;
  box-shadow: 0 12px 26px rgba(18, 45, 72, 0.06);
  animation: bookingFadeUp 0.32s ease-out forwards;
}

.processing-card[hidden] {
  display: none !important;
}

.processing-spinner {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 3px solid #d7e3f1;
  border-top-color: var(--primary);
  animation: bookingSpin 0.9s linear infinite;
}

.processing-card h2 {
  margin: 0;
  font-size: 1.16rem;
  color: #243955;
}

.processing-message {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.96rem;
  line-height: 1.42;
}

.form-card,
.submit-card,
.summary-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.form-card:hover,
.submit-card:hover,
.summary-card:hover {
  border-color: #d8e3ef;
  box-shadow: 0 12px 28px rgba(18, 45, 72, 0.08);
  transform: translateY(-2px);
}

.checkout-form > .form-card,
.checkout-form > .submit-card {
  opacity: 0;
  animation: bookingFadeUp 0.46s ease-out forwards;
}

.checkout-form > .form-card:nth-of-type(1) {
  animation-delay: 0.2s;
}

.checkout-form > .form-card:nth-of-type(2) {
  animation-delay: 0.28s;
}

.checkout-form > .form-card:nth-of-type(3) {
  animation-delay: 0.36s;
}

.checkout-form > .submit-card {
  animation-delay: 0.44s;
}

.summary-column .summary-card {
  opacity: 0;
  animation: bookingFadeUp 0.54s ease-out 0.3s forwards;
}

.form-card,
.submit-card {
  padding: 18px;
}

.submit-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card h2,
.summary-card h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #4e5967;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.copy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.copy-toggle input {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.company-choice {
  gap: 6px;
}

.company-toggle-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.company-choice:focus-within .company-toggle-control {
  border-color: #9bc6e9;
  box-shadow: 0 0 0 3px rgba(12, 113, 195, 0.15);
}

.company-toggle-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

.company-toggle-text {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--text-soft);
}

#companyField[hidden] {
  display: none;
}

.guest-rooms-stack {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.guest-room-card {
  border: 1px solid #dbe7f1;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.guest-room-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.guest-room-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3f4d60;
}

.guest-room-count {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.guest-room-list {
  display: grid;
  gap: 10px;
}

.guest-room-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.guest-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.field-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: start;
}

.field-grid .wide {
  grid-column: 1 / -1;
}

.phone-field {
  gap: 6px;
}

.phone-field-row {
  display: grid;
  --phone-dial-width: 104px;
  grid-template-columns: var(--phone-dial-width) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.phone-field-row select {
  font-weight: 700;
  font-size: 0.93rem;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: #3f4d60;
  background: #f8fbff;
  border-color: #d7e3ef;
  text-align: left;
  white-space: nowrap;
}

.phone-field-row input {
  font-variant-numeric: tabular-nums;
}

.phone-field-row select,
.phone-field-row input {
  min-height: 48px;
}

.phone-hint {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #6b7280;
}

.payment-card {
  display: grid;
  gap: 10px;
}

.payment-description {
  margin: 0;
  color: #6a727e;
  font-size: 0.88rem;
}

.payment-element-shell {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  min-height: 56px;
}

.payment-status-text {
  margin: 0;
  min-height: 1.1rem;
  color: #5d6776;
  font-size: 0.82rem;
}

label {
  display: grid;
  gap: 6px;
  align-content: start;
  align-self: start;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

label > span,
.label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.required-label::after {
  content: ' *';
  color: #d14545;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  border-color: #9bc6e9;
  box-shadow: 0 0 0 3px rgba(12, 113, 195, 0.15);
}

.terms-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.terms-line input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.terms-line a {
  color: var(--text-soft);
  text-underline-offset: 2px;
}

.primary-btn {
  margin-top: 0;
  border: none;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  padding: 12px 14px;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.primary-btn:hover {
  background: var(--primary-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(12, 113, 195, 0.2);
}

.primary-btn:disabled {
  background: #9cc7e7;
  cursor: not-allowed;
}

#submitBookingBtn.primary-btn:not(:disabled) {
  animation: bookingSoftPulse 3s ease-in-out infinite;
}

#submitBookingBtn.primary-btn:not(:disabled)::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 18%,
    rgba(255, 255, 255, 0.34) 50%,
    transparent 82%
  );
  transform: translateX(-120%);
  animation: bookingShineSweep 4.2s ease-in-out infinite;
}

.status-text {
  min-height: 1.1rem;
  margin: 0;
  color: #586172;
  font-size: 0.86rem;
}

.summary-column {
  min-width: 0;
  position: sticky;
  top: 14px;
  align-self: start;
}

.summary-card {
  overflow: hidden;
}

.summary-card h2 {
  padding: 16px 16px 14px;
}

#summaryImage {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #e1e7ef;
}

.summary-body {
  padding: 14px 16px 16px;
}

.summary-body h3 {
  margin: 0 0 12px;
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.summary-dates {
  border-top: 1px solid #e7e9ef;
  border-bottom: 1px solid #e7e9ef;
  padding: 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.summary-dates strong,
.summary-line strong {
  display: block;
  margin-top: 6px;
  color: #424a55;
  font-size: 1rem;
  font-weight: 700;
}

.summary-line {
  padding: 10px 0;
  border-bottom: 1px solid #e7e9ef;
}

.summary-room-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  color: #4f5560;
  font-size: 1rem;
}

.summary-room-row strong {
  color: #484e58;
  font-size: 1rem;
  font-weight: 700;
}

.summary-breakdown {
  margin: 6px 0 0;
  color: #7a8089;
  font-size: 0.9rem;
  border-bottom: 1px solid #e7e9ef;
  padding-bottom: 10px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 10px;
}

.summary-total span {
  color: #3f444d;
  font-size: 2rem;
  font-weight: 600;
}

.summary-total strong {
  color: #3f444d;
  font-size: 2rem;
  font-weight: 700;
}

.page-footer {
  margin-top: 28px;
  padding: 16px 2px 4px;
}

.page-footer h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.footer-items {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

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

.footer-contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus-visible {
  color: var(--brand-blue);
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 18px;
}

.footer-contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

@media (max-width: 920px) {
  .booking-main {
    grid-template-columns: 1fr;
  }

  .summary-column {
    position: static;
    top: auto;
  }
}

@media (max-width: 760px) {
  .booking-shell {
    padding: 14px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }

  .brand-wrap {
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .brand-stack {
    min-width: 0;
    gap: 2px;
  }

  .brand-name {
    font-size: 1.16rem;
    line-height: 1.08;
  }

  .brand-tagline {
    font-size: 0.77rem;
  }

  .top-actions {
    width: 100%;
    display: grid;
    grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
    align-items: center;
    gap: 8px;
  }

  .top-action-link {
    grid-column: 1 / span 2;
    justify-self: start;
    min-height: 34px;
    padding: 7px 12px;
    font-size: 0.8rem;
  }

  .simple-select,
  .simple-select-trigger {
    min-height: 34px;
  }

  .simple-select select,
  .simple-select-trigger {
    font-size: 0.84rem;
    padding: 7px 22px 7px 10px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-body h3 {
    font-size: 1.6rem;
  }

  .summary-total span,
  .summary-total strong {
    font-size: 1.58rem;
  }

  .footer-items {
    gap: 12px 20px;
  }
}

@media (max-width: 560px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 8px 8px;
    padding: 10px 12px;
  }

  .brand-wrap {
    width: auto;
    gap: 8px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand-name {
    font-size: 1.08rem;
    line-height: 1.04;
  }

  .brand-tagline {
    font-size: 0.72rem;
  }

  .top-actions {
    display: contents;
  }

  .topbar .simple-select:nth-of-type(1) {
    grid-column: 2;
    grid-row: 1;
  }

  .topbar .simple-select:nth-of-type(2) {
    grid-column: 3;
    grid-row: 1;
  }

  .topbar .simple-select {
    min-height: 32px;
  }

  .topbar .simple-select select,
  .topbar .simple-select-trigger {
    font-size: 0.8rem;
    padding: 6px 20px 6px 9px;
  }

  .top-action-link {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    min-height: 32px;
    justify-content: center;
    padding: 6px 12px;
  }

  .phone-field-row select {
    font-size: 0.88rem;
  }

  .phone-field-row {
    --phone-dial-width: 108px;
  }

  .phone-hint {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar,
  .checkout-column,
  .summary-column,
  .breadcrumb,
  .checkout-form > .form-card,
  .checkout-form > .submit-card,
  .summary-column .summary-card {
    opacity: 1;
    animation: none;
  }

  .form-card,
  .submit-card,
  .summary-card,
  .primary-btn {
    transition: none;
  }

  .form-card:hover,
  .submit-card:hover,
  .summary-card:hover,
  .primary-btn:hover {
    transform: none;
    box-shadow: none;
  }

  #submitBookingBtn.primary-btn:not(:disabled),
  #submitBookingBtn.primary-btn:not(:disabled)::after {
    animation: none;
  }
}
