:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f9fbff;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #dbe4f0;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --success-bg: #ecfdf5;
  --success-text: #065f46;
  --error-bg: #fef2f2;
  --error-text: #991b1b;
  --warn-bg: #fffbeb;
  --warn-text: #92400e;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%);
  color: var(--text);
}

body {
  min-height: 100vh;
}

.page-shell {
  width: min(1150px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1.1;
}

.hero-text {
  margin: 0;
  max-width: 700px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
}

.resort-mode-section {
  margin-top: 24px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.resort-mode-intro {
  margin-bottom: 16px;
}

.resort-mode-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 8px;
}

.resort-mode-intro h3 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.15;
  color: #ffffff;
}

.resort-mode-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.6;
}

.resort-mode-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 0;
}

.mode-btn {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mode-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.mode-btn.active {
  background: #ffffff;
  color: #1d4ed8;
  border-color: #ffffff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
  transform: scale(1.02);
}

.mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 120px;
  justify-content: center;
}

.mode-card-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.mode-card-text {
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  opacity: 0.95;
}

.extra-fields-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.resort-mode-note {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-size: 14px;
  line-height: 1.5;
}

.inquiry-booking-controls-panel {
  margin-top: 6px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid #cfe0ff;
}

.inquiry-booking-controls-header h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #0f172a;
}

.inquiry-booking-controls-header p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .extra-fields-wrap {
    grid-template-columns: 1fr;
  }

  .resort-mode-section {
    padding: 16px;
  }

  .resort-mode-intro h3 {
    font-size: 20px;
  }

  .resort-mode-switcher {
    grid-template-columns: 1fr;
  }

  .mode-btn {
    width: 100%;
  }

  .mode-card {
    min-height: 108px;
  }
}

.point-icon {
  font-weight: 700;
}

.demo-main-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-card {
  padding: 28px;
}

.info-card {
  padding: 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.centered-form-card {
  width: min(900px, 100%);
}

.calendar-panel {
  width: min(900px, 100%);
  padding: 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.pricing-preview-panel {
  width: min(900px, 100%);
  padding: 28px;
  background: linear-gradient(180deg, var(--surface) 0%, #f7fbff 100%);
}

.pricing-preview-header h2 {
  margin: 0 0 8px;
}

.pricing-preview-header p {
  margin: 0 0 18px;
}

.pricing-preview-actions {
  display: flex;
  justify-content: flex-start;
}

.pricing-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.pricing-modal-overlay.show {
  display: flex;
}

.pricing-modal-card-shell {
  width: min(100%, 860px);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border);
  padding: 22px;
  position: relative;
}

.pricing-modal-close {
  position: static;
  justify-self: end;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.pricing-modal-topbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px 48px;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.pricing-modal-title-wrap {
  text-align: center;
}

.pricing-modal-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.pricing-modal-title-wrap h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
  color: var(--text);
}

.pricing-nav-btn {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
}

.pricing-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pricing-modal-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.pricing-modal-image-wrap {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.pricing-modal-image {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.pricing-modal-info {
  display: grid;
  gap: 14px;
}

.pricing-price-badge {
  display: inline-block;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 14px;
  font-weight: 800;
}

.pricing-price-stack {
  display: grid;
  gap: 8px;
}

.pricing-price-current {
  font-size: 28px;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1.1;
}

.pricing-price-original {
  font-size: 15px;
  font-weight: 700;
  color: #6b7280;
  text-decoration: line-through;
}

.pricing-promo-badge {
  display: inline-block;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #c2410c;
  font-size: 13px;
  font-weight: 800;
}

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

.pricing-meta-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #f8fafc;
}

.pricing-meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.pricing-meta-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.pricing-section-block {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}

.pricing-section-block h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--text);
}

.pricing-feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text);
}

.pricing-feature-list li + li {
  margin-top: 6px;
}

.pricing-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.pricing-modal-footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pricing-modal-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

#selectPricingRoomBtn {
  min-width: 170px;
}

@media (max-width: 760px) {
  .pricing-modal-body {
    grid-template-columns: 1fr;
  }

  .pricing-modal-image {
    height: 240px;
  }

  .pricing-meta-grid {
    grid-template-columns: 1fr;
  }

  .pricing-modal-title-wrap h2 {
    font-size: 22px;
  }
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.section-header p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.lead-form {
  width: 100%;
}

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

.field {
  display: flex;
  flex-direction: column;
}

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

label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 14px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

.status-message {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.status-message.show {
  display: block;
}

.status-message.success {
  background: var(--success-bg);
  color: var(--success-text);
  border: 1px solid #a7f3d0;
}

.status-message.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #fecaca;
}

.status-message.warning {
  background: var(--warn-bg);
  color: var(--warn-text);
  border: 1px solid #fde68a;
}

.status-message.info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
  display: none;
}

.info-list {
  display: grid;
  gap: 16px;
}

.info-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
}

.info-item h3 {
  margin: 0 0 6px;
  font-size: 16px;
}

.info-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

@media (max-width: 900px) {
  .hero h1 {
    font-size: 32px;
  }

  .centered-form-card,
  .calendar-panel {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 100%);
    padding-top: 16px;
  }

  .hero,
  .form-card,
  .info-card {
    padding: 20px;
  }

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

  .hero h1 {
    font-size: 28px;
  }

  .section-header h2 {
    font-size: 24px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

/* Mini calendar section */
.mini-calendar-section {
  margin-top: 20px;
}

.mini-calendar-grid {
  width: 100%;
  display: block;
}

.mini-day {
  border-radius: 10px;
  padding: 10px;
  font-size: 12px;
  text-align: center;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  position: relative;
}

.mini-day.booked {
  background: #fee2e2;
  border-color: #fca5a5;
}

.mini-day.paid {
  background: #dcfce7;
  border-color: #86efac;
}

.mini-day span {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.8;
}

.mini-calendar-header {
  margin-bottom: 12px;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar-month-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  flex: 1;
  line-height: 1.2;
}

.calendar-nav-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  flex: 0 0 38px;
}

.mini-calendar-grid {
  width: 100%;
  display: block;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}

.calendar-day-name {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-bottom: 6px;
  line-height: 1.1;
}

.calendar-cell {
  min-height: 88px;
  border-radius: 12px;
  padding: 10px 8px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  position: relative;
  overflow: visible;
  z-index: 1;
}

.calendar-cell.empty {
  background: transparent;
  border: none;
}

.calendar-cell.paid {
  background: #dcfce7;
  border-color: #86efac;
}

.calendar-cell.pending {
  background: #fee2e2;
  border-color: #fca5a5;
}

.day-number {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.status {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: var(--muted);
  text-align: left;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.05);
}

.calendar-hover-card {
  position: absolute;
  left: 8px;
  top: calc(100% + 6px);
  min-width: 180px;
  max-width: 240px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.28);
  font-size: 12px;
  line-height: 1.4;
  z-index: 999;
  display: none;
  pointer-events: none;
}

.calendar-cell:hover {
  z-index: 50;
}

.calendar-cell:hover .calendar-hover-card {
  display: block;
}

.mini-calendar-loading {
  padding: 14px 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1100px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .calendar-cell {
    min-height: 62px;
  }

  .calendar-day-name {
    font-size: 11px;
  }

  .status {
    font-size: 10px;
  }
}

.calendar-cell.selected {
  border: 2px solid #2563eb;
  background: #dbeafe;
}

.calendar-cell.selected-start {
  border: 2px solid #2563eb;
  background: #dbeafe;
}

.calendar-cell.selected-end {
  border: 2px solid #2563eb;
  background: #dbeafe;
}

.selected-date-tag {
  margin-top: 6px;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  background: #ffffff;
}

.selected-date-tag-checkin {
  border: 1px solid #93c5fd;
  color: #1d4ed8;
}

.selected-date-tag-checkout {
  border: 1px solid #86efac;
  color: #166534;
}

.calendar-selection-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.calendar-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.calendar-popup-overlay.show {
  display: flex;
}

.calendar-popup-card {
  width: min(100%, 420px);
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid #dbeafe;
  text-align: center;
}

.calendar-popup-message {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.calendar-popup-btn {
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.booking-controls-panel {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.booking-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.calendar-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.calendar-popup-overlay.show {
  display: flex;
}

.calendar-popup-card {
  width: min(100%, 420px);
  background: #ffffff;
  border-radius: 18px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid #dbeafe;
  text-align: center;
}

.calendar-popup-message {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.calendar-popup-btn {
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

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

.calendar-cell.blocked-start-date {
  cursor: not-allowed;
  opacity: 0.92;
}

.calendar-cell.blocked-start-date .day-number {
  opacity: 0.95;
}

.calendar-cell.blocked-start-date:not(.booked):not(.checkout-available) {
  background: #f3f4f6;
  border-color: #d1d5db;
}

.calendar-cell.selected {
  border: 2px solid #2563eb;
  background: #dbeafe;
}