/* Kesim Atölyesi — booking demo. Warm paper, charcoal and brass. */

:root {
  --bg: #f4efe7;
  --paper: #fffdf9;
  --ink: #1d1a16;
  --muted: #6e665b;
  --line: #e4dccf;
  --line-strong: #cfc4b2;
  --dark: #16130f;
  --brass: #b0843f;
  --brass-ink: #8a6427;
  --brass-soft: #f3e7d2;
  --ok: #2f7a4f;
  --ok-soft: #e1f0e6;
  --bad: #b23a3a;
  --bad-soft: #f8e3e1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(29, 26, 22, 0.06), 0 14px 34px -18px rgba(29, 26, 22, 0.3);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "DM Serif Display", Georgia, serif;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--brass-ink);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.08;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-ink);
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
[tabindex="-1"]:focus {
  outline: none;
}

/* Demo strip + top bar */
.demo-strip {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 24px;
  background: var(--brass-soft);
  color: var(--brass-ink);
  font-size: 13px;
}
.demo-strip a {
  font-weight: 700;
  text-decoration: none;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: var(--dark);
  color: #f4efe7;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 22px;
}
.logo svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #d4b07a;
  stroke-width: 2;
  stroke-linecap: round;
}
.topbar nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.topbar nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: #cfc6b8;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.topbar nav a:hover {
  color: #fff;
}
.topbar nav a[aria-current] {
  background: rgba(244, 239, 231, 0.12);
  color: #fff;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 64px;
}

/* Buttons & forms */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn.primary {
  background: var(--dark);
  color: #fff;
}
.btn.primary:hover {
  background: #2c261f;
}
.btn.ghost {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn.ghost:hover {
  background: #f8f3eb;
}
.btn.danger {
  background: var(--bad-soft);
  color: var(--bad);
}
.btn.small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}
.link-btn {
  margin-top: 18px;
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--ink);
}
.field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.field small {
  font-weight: 500;
}
.field input,
.field select {
  font: inherit;
  font-weight: 500;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 132, 63, 0.2);
}
.field input[aria-invalid="true"] {
  border-color: var(--bad);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.error {
  color: var(--bad);
  font-weight: 600;
  font-size: 13.5px;
}
.empty {
  padding: 22px;
  border-radius: 14px;
  background: #f8f3eb;
  color: var(--muted);
  text-align: center;
}
.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  padding: 28px;
}
.card.narrow {
  max-width: 620px;
  margin-inline: auto;
  display: grid;
  gap: 16px;
}

/* Booking layout */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 28px;
  align-items: start;
}
.shop {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
  padding: 8px 4px;
}
.shop-facts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  border-top: 1px solid var(--line);
}
.shop-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.flow {
  display: grid;
  gap: 18px;
}
.stepper {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.stepper li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: #f3eee6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.stepper li span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
}
.stepper li.current {
  background: var(--dark);
  color: #fff;
}
.stepper li.current span {
  background: var(--brass);
  color: #fff;
}
.stepper li.done span {
  background: var(--brass-soft);
  color: var(--brass-ink);
}
.summary-line {
  font-size: 14px;
  font-weight: 600;
  color: var(--brass-ink);
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}
.choice {
  display: grid;
  gap: 4px;
  justify-items: start;
  text-align: left;
  padding: 18px;
  min-height: 108px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.choice:hover {
  border-color: var(--brass);
  box-shadow: 0 10px 24px -16px rgba(29, 26, 22, 0.5);
  transform: translateY(-1px);
}
.choice.selected {
  border-color: var(--dark);
  box-shadow: inset 0 0 0 1px var(--dark);
}
.choice strong {
  font-size: 16px;
}
.choice .price {
  margin-top: auto;
  font-weight: 800;
  color: var(--brass-ink);
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
}
.avatar.any {
  background: var(--dark);
  color: #d4b07a;
}
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.day {
  flex: none;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 72px;
  padding: 10px 6px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.day span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: capitalize;
}
.day strong {
  font-size: 20px;
}
.day small {
  font-size: 11px;
  color: var(--ok);
  font-weight: 700;
}
.day.selected {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}
.day.selected span,
.day.selected small {
  color: #d4b07a;
}
.day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.day:disabled small {
  color: var(--muted);
}
.slot-label {
  margin: 6px 0 -6px;
  font-size: 13px;
  color: var(--muted);
}
.slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
}
.slot {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
}
.slot:hover {
  border-color: var(--brass);
  background: var(--brass-soft);
}
.slot.selected {
  background: var(--dark);
  color: #fff;
}
.recap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 14px;
  background: #f8f3eb;
}
.recap div {
  display: grid;
}
.recap span {
  font-size: 12.5px;
}
.form {
  display: grid;
  gap: 14px;
}
.confirm {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}
.confirm .recap {
  width: 100%;
  text-align: left;
}
.check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-soft);
}
.check svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.code {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px dashed var(--brass);
  color: var(--brass-ink);
  font-weight: 600;
}
.code strong {
  margin-left: 6px;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: var(--ink);
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}

/* My appointments */
.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}
.grow {
  flex: 1 1 220px;
}
.my-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.my-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.my-list li > div {
  display: grid;
}

/* Business panel */
.panel {
  display: grid;
  gap: 20px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-head h1 {
  font-size: clamp(28px, 4vw, 38px);
  text-transform: capitalize;
}
.panel-tools,
.date-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.stat {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stat span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.stat strong {
  font-size: 26px;
  letter-spacing: -0.02em;
}
.stat i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: var(--v);
  background: var(--brass);
}
.calendar {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.cal-head,
.cal-body {
  display: grid;
  grid-template-columns: 64px repeat(var(--cols), minmax(170px, 1fr));
  min-width: calc(64px + var(--cols) * 170px);
}
.cal-head {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--line);
}
.cal-head span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  font-weight: 800;
}
.cal-head i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.cal-body {
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--line) 0 1px,
    transparent 1px 88px
  );
}
.hours {
  position: relative;
}
.hours span {
  position: absolute;
  left: 12px;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: var(--paper);
  padding: 0 2px;
}
.hours span:first-child {
  transform: none;
}
.col {
  position: relative;
  border-left: 1px solid var(--line);
}
.off {
  position: absolute;
  left: 0;
  right: 0;
  background: repeating-linear-gradient(135deg, #f1ebe1 0 6px, #f7f2ea 6px 12px);
}
.appt,
.block {
  position: absolute;
  left: 6px;
  right: 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  padding: 4px 8px;
  border-radius: 8px;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
  line-height: 1.25;
}
.appt {
  background: color-mix(in srgb, var(--c) 16%, #fff);
  box-shadow: inset 3px 0 0 var(--c);
  color: var(--ink);
}
.appt:hover {
  background: color-mix(in srgb, var(--c) 26%, #fff);
}
.appt .t {
  font-size: 11px;
  font-weight: 800;
  color: color-mix(in srgb, var(--c) 70%, #000);
}
.appt strong {
  font-size: 13px;
  white-space: nowrap;
}
.appt .s {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.appt.short .s,
.appt.tiny .s {
  display: none;
}
.appt.tiny {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding-block: 2px;
}
.appt.completed {
  opacity: 0.55;
}
.appt.noshow {
  background: var(--bad-soft);
  box-shadow: inset 3px 0 0 var(--bad);
  text-decoration: line-through;
}
.block {
  justify-content: center;
  align-items: center;
  background: repeating-linear-gradient(135deg, #e9e2d6 0 6px, #f1ebe1 6px 12px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.now-line {
  position: absolute;
  left: 56px;
  right: 0;
  height: 2px;
  background: var(--bad);
  pointer-events: none;
}
.now-line span {
  position: absolute;
  left: -50px;
  top: -9px;
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--bad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.panel-foot {
  display: flex;
  justify-content: space-between;
}

/* Dialog */
.dialog {
  width: min(460px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45);
}
.dialog::backdrop {
  background: rgba(22, 19, 15, 0.45);
  backdrop-filter: blur(2px);
}
.dialog-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}
.dialog-body header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.details {
  margin: 0;
  display: grid;
  gap: 10px;
}
.details div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
}
.details dt {
  color: var(--muted);
  font-size: 13.5px;
}
.details dd {
  margin: 0;
  font-weight: 600;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: var(--brass-soft);
  color: var(--brass-ink);
}
.badge.completed {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.noshow,
.badge.cancelled {
  background: var(--bad-soft);
  color: var(--bad);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
  z-index: 20;
}
.toast[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .book-layout {
    grid-template-columns: 1fr;
  }
  .shop {
    position: static;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  main {
    width: calc(100% - 24px);
    margin-top: 20px;
  }
  .card {
    padding: 20px 16px;
  }
  .topbar,
  .demo-strip {
    padding-inline: 14px;
  }
  .topbar nav a {
    padding: 8px 10px;
    font-size: 13px;
  }
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .choice {
    min-height: 96px;
    padding: 14px;
  }
  .stepper li {
    padding-right: 6px;
    font-size: 12px;
  }
  .stepper li:not(.current) {
    font-size: 0;
    padding-right: 6px;
    gap: 0;
  }
  .stepper li:not(.current) span {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
