:root {
  color-scheme: light;
  --ink: #111817;
  --charcoal: #30413e;
  --muted: #667772;
  --canvas: #f4f1ea;
  --panel: #fffdfa;
  --input: #faf8f2;
  --line: #ded8cd;
  --red: #e30613;
  --red-dark: #a60510;
  --sand: #d8bf7b;
  --sand-soft: #eee3c6;
  --green: #0f766e;
  --green-soft: #dcf5ef;
  --blue-soft: #e7f0ff;
  --radius: 8px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(90deg, var(--red) 0 18%, var(--sand) 18% 100%) top / 100% 6px no-repeat,
    var(--canvas);
  color: var(--ink);
  margin: 0;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.page-shell {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(360px, 1.18fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: 100vh;
  padding: 48px 20px;
}

.profile-panel,
.booking-panel,
.loading-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(17, 24, 23, 0.08);
}

.profile-panel {
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
  position: sticky;
  top: 24px;
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.brand-logo,
.brand-fallback,
.loading-logo {
  background: var(--ink);
  border-radius: var(--radius);
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.brand-fallback {
  align-items: center;
  color: #fff;
  display: flex;
  font-size: 23px;
  font-weight: 900;
  justify-content: center;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 7vw, 62px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 18px;
}

h2 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 8px;
}

h3 {
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 6px;
}

.intro {
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  line-height: 1.55;
}

.business-meta {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.meta-item {
  display: grid;
  gap: 3px;
}

.meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.meta-value {
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.booking-panel {
  overflow: hidden;
}

.panel-header,
.form-section,
.form-footer {
  padding: 24px;
}

.panel-header {
  background: var(--ink);
  color: white;
}

.panel-header .muted {
  color: #dfd6bf;
  margin-bottom: 0;
}

.step-row {
  display: grid;
  gap: 10px;
}

.service-list,
.window-list,
.photo-grid {
  display: grid;
  gap: 10px;
}

.service-button,
.window-button,
.photo-button,
.submit-button,
.secondary-button {
  border-radius: var(--radius);
  min-height: 48px;
}

.service-button {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px;
  text-align: left;
}

.service-button.is-active {
  background: var(--sand-soft);
  border-color: var(--red);
  box-shadow: inset 4px 0 0 var(--red);
}

.service-top {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.service-price {
  color: var(--red-dark);
  font-weight: 900;
  white-space: nowrap;
}

.service-description {
  color: var(--charcoal);
  line-height: 1.5;
  margin: 8px 0 0;
}

.service-duration {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 8px;
}

.date-window-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(180px, 0.9fr) minmax(220px, 1.1fr);
}

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

.window-button {
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 900;
  padding: 12px 14px;
}

.window-button.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.field {
  display: grid;
  gap: 7px;
}

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

label {
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

input,
textarea {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 52px;
  outline: none;
  padding: 13px 14px;
  width: 100%;
}

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

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(227, 6, 19, 0.12);
}

.photo-button {
  align-items: center;
  background: var(--ink);
  border: 0;
  color: #fff;
  display: flex;
  font-weight: 900;
  justify-content: center;
  margin-top: 16px;
  padding: 0 18px;
  width: fit-content;
}

.photo-input {
  display: none;
}

.photo-grid {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  margin-top: 12px;
}

.photo-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.photo-tile img {
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  width: 100%;
}

.photo-tile button {
  background: white;
  border: 0;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 9px;
  width: 100%;
}

.consent {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  padding: 13px 14px;
}

.form-footer {
  background: white;
  border-top: 1px solid var(--line);
}

.submit-button {
  align-items: center;
  background: var(--red);
  border: 0;
  color: #fff;
  display: flex;
  font-weight: 900;
  justify-content: center;
  padding: 0 24px;
  width: 100%;
}

.submit-button:disabled {
  opacity: 0.55;
}

.secondary-button {
  background: var(--input);
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 900;
  padding: 0 18px;
}

.message {
  border-radius: var(--radius);
  font-weight: 900;
  line-height: 1.45;
  margin-bottom: 14px;
  padding: 12px 14px;
}

.message.error {
  background: #fee2e2;
  color: var(--red-dark);
}

.message.success {
  background: var(--green-soft);
  color: var(--green);
}

.hidden-trap {
  left: -9999px;
  opacity: 0;
  position: absolute;
  top: auto;
}

.loading-card {
  align-self: center;
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 460px;
  padding: 30px;
  text-align: center;
}

.loading-logo {
  margin-bottom: 18px;
}

.empty-state {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
  padding: 16px;
}

@media (max-width: 860px) {
  .page-shell {
    grid-template-columns: 1fr;
    padding: 22px 14px;
  }

  .profile-panel {
    position: static;
  }

  h1 {
    font-size: 42px;
  }

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

  .window-list {
    grid-template-columns: 1fr;
  }
}
