.calculator-shell {
  background:
    radial-gradient(circle at top left, rgba(149, 229, 255, 0.7), rgba(149, 229, 255, 0) 30%),
    radial-gradient(circle at 95% 8%, rgba(0, 77, 166, 0.12), rgba(0, 77, 166, 0) 28%),
    linear-gradient(135deg, #f1f8ff 0%, #d8efff 30%, #f8fbff 68%, #ffffff 100%);
}

body.calculator-modal-open {
  overflow: hidden;
}

.calculator-welcome-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.calculator-welcome-modal[hidden] {
  display: none;
}

.calculator-welcome-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.calculator-welcome-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 21, 62, 0.46);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition:
    opacity 220ms ease,
    backdrop-filter 220ms ease;
}

.calculator-welcome-modal.is-visible .calculator-welcome-modal__backdrop {
  opacity: 1;
}

.calculator-welcome-modal__dialog {
  position: relative;
  width: min(100%, 36rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(237, 244, 255, 0.96)),
    #ffffff;
  box-shadow:
    0 32px 80px rgba(0, 21, 62, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.calculator-welcome-modal.is-visible .calculator-welcome-modal__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.calculator-welcome-modal__eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  border-radius: 9999px;
  background: rgba(26, 130, 255, 0.12);
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f4e8c;
}

.calculator-welcome-modal__button {
  margin-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: #00153e;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 21, 62, 0.18);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.calculator-welcome-modal__button:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.calculator-welcome-modal__button:focus-visible {
  outline: 3px solid rgba(26, 130, 255, 0.35);
  outline-offset: 4px;
}

.booking-flow-panel {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 240ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-flow-panel[hidden] {
  display: none;
}

.booking-flow-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.booking-stage-intro {
  border-radius: 1.75rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 242, 255, 0.88)),
    #ffffff;
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(7, 42, 88, 0.08);
}

.booking-stage-intro__eyebrow {
  display: inline-flex;
  border-radius: 9999px;
  background: rgba(26, 130, 255, 0.12);
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0f4e8c;
}

.booking-stage-grid {
  display: grid;
  gap: 1.5rem;
}

.booking-request-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 1.75rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(240, 247, 255, 0.92)),
    #ffffff;
  padding: 1.5rem;
  box-shadow: 0 18px 42px rgba(7, 42, 88, 0.08);
}

.booking-summary-item {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.35rem 0;
}

.booking-summary-item--empty {
  display: grid;
  gap: 0.4rem;
  padding: 0;
}

.booking-summary-item__bullet {
  font-weight: 800;
  color: #0f4e8c;
}

.booking-summary-item__name {
  font-weight: 600;
  color: #00153e;
}

.booking-summary-item__meta {
  font-size: 0.9rem;
  color: #507196;
}

.booking-field-wrap {
  display: block;
}

.booking-field-label {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #163b66;
}

input.booking-field,
textarea.booking-textarea {
  width: 100%;
  border: 1px solid #d6e3f2;
  border-radius: 0.85rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96)),
    #ffffff;
  padding: 0.9rem 0.95rem;
  color: #00153e;
  box-shadow:
    0 6px 18px rgba(7, 42, 88, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

input.booking-field::placeholder,
textarea.booking-textarea::placeholder {
  color: #8ba0b5;
}

input.booking-field:focus,
textarea.booking-textarea:focus {
  outline: none;
  border-color: #63a9ff;
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(26, 130, 255, 0.12),
    0 10px 24px rgba(26, 130, 255, 0.08);
  transform: translateY(-1px);
}

input.booking-field:disabled {
  background: #eef4fb;
  color: #6a7f94;
  box-shadow: none;
}

textarea.booking-textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.booking-switch {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.booking-switch__label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #163b66;
}

.booking-switch__control {
  position: relative;
  display: inline-flex;
}

.booking-switch__control input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.booking-switch__track {
  position: relative;
  display: inline-flex;
  width: 3.35rem;
  height: 2rem;
  align-items: center;
  border-radius: 9999px;
  background: #d7e4f4;
  box-shadow: inset 0 1px 3px rgba(7, 42, 88, 0.12);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.booking-switch__thumb {
  width: 1.45rem;
  height: 1.45rem;
  margin-left: 0.28rem;
  border-radius: 9999px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(7, 42, 88, 0.18);
  transition: transform 180ms ease;
}

.booking-switch__control input:checked + .booking-switch__track {
  background: #1a82ff;
}

.booking-switch__control input:checked + .booking-switch__track .booking-switch__thumb {
  transform: translateX(1.35rem);
}

.booking-switch__control input:focus-visible + .booking-switch__track {
  box-shadow:
    0 0 0 4px rgba(26, 130, 255, 0.14),
    inset 0 1px 3px rgba(7, 42, 88, 0.12);
}

.booking-business-fields[hidden] {
  display: none;
}

.booking-submit-button {
  border: 0;
  border-radius: 9999px;
  background: #00153e;
  padding: 0.95rem 1.5rem;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(0, 21, 62, 0.16);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    box-shadow 180ms ease;
}

.booking-submit-button:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.booking-submit-button:focus-visible {
  outline: 3px solid rgba(26, 130, 255, 0.35);
  outline-offset: 4px;
}

.calculator-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(233, 244, 255, 0.6));
  box-shadow:
    0 28px 70px rgba(7, 42, 88, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
}

.summary-card {
  background:
    linear-gradient(180deg, rgba(14, 68, 145, 0.96), rgba(4, 36, 92, 0.92)),
    #032f73;
  box-shadow: 0 24px 55px rgba(0, 31, 83, 0.26);
}

.window-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(7, 42, 88, 0.08);
}

.window-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(7, 42, 88, 0.12);
}

.window-image-shell {
  background:
    radial-gradient(circle at top, rgba(199, 242, 255, 0.9), rgba(199, 242, 255, 0) 55%),
    linear-gradient(180deg, rgba(246, 250, 255, 1), rgba(232, 242, 255, 0.9));
}

.window-card,
.qty-button,
.qty-value,
.selected-item,
.booking-action {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

.qty-button,
.booking-action {
  touch-action: manipulation;
}

.booking-action {
  border: 0;
}

.booking-action:disabled {
  pointer-events: none;
}

.qty-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.booking-action.is-disabled {
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.booking-action-desktop.is-disabled {
  background: rgba(255, 255, 255, 0.14);
  color: rgba(225, 236, 255, 0.55);
}

.booking-action-mobile.is-disabled {
  background: #ccdae8;
  color: #6a7f94;
}

@media (min-width: 1100px) {
  .booking-stage-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.35fr);
  }
}

@media (max-width: 640px) {
  .calculator-welcome-modal {
    padding: 1rem;
  }

  .calculator-welcome-modal__dialog {
    border-radius: 1.75rem;
    padding: 1.5rem;
  }

  .calculator-welcome-modal__button {
    width: 100%;
  }

  .booking-request-card,
  .booking-stage-intro {
    padding: 1.25rem;
  }

  .booking-submit-button {
    width: 100%;
  }
}
