/* Palette lifted from csaloganyeskuvo.hu so the booker reads as the same site:
   brass #b28951, plum-grey #433e42, muted teal #90a8ad, terracotta #b9675e. */

:root {
  --gold: #b28951;
  --gold-dark: #97723f;
  --ink: #433e42;
  --ink-soft: #655e64;
  --muted: #7e8890;
  --teal: #90a8ad;
  --mist: #c7d3d6;
  --line: #e0dede;
  --paper: #ffffff;
  --sand: #faf8f5;
  --rose: #b9675e;
  --green: #4f7d5a;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(67, 62, 66, .06), 0 8px 24px rgba(67, 62, 66, .07);
}

* { box-sizing: border-box; }

/* The browser's own [hidden] rule is display:none at the lowest specificity, so
   any class that sets display (.field-row is a grid) silently defeats it and the
   element stays visible. Everything toggled by the `hidden` attribute in this app
   goes through here. */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 16px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 20px 64px; }
.wrap-narrow { max-width: 620px; }

/* header */
.site-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 22px 20px;
  margin-bottom: 32px;
}
.site-head-in {
  max-width: 940px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand {
  font-size: 19px; font-weight: 600; letter-spacing: .01em;
  color: var(--ink); text-decoration: none;
}
.brand small {
  display: block; font-size: 12px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.head-links { display: flex; gap: 18px; font-size: 14px; }

h1 { font-size: 28px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 19px; font-weight: 600; margin: 0 0 14px; }
.lead { color: var(--ink-soft); margin: 0 0 28px; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}

/* the "first free slot" hero */
.hero { text-align: center; padding: 40px 26px; }
.hero .kicker {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 12px;
}
.hero .slot { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.hero .note { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  background: var(--gold); color: #fff;
  padding: 12px 26px; border-radius: 6px;
  font: inherit; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--gold-dark); }
.btn:disabled { background: var(--mist); cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line); font-weight: 500;
}
.btn-ghost:hover { background: var(--sand); color: var(--ink); }
.btn-danger { background: transparent; color: var(--rose); border: 1px solid var(--rose); }
.btn-danger:hover { background: var(--rose); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* calendar */
.cal-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.cal-title { font-weight: 600; font-size: 17px; }
.cal-nav {
  /* Also used on <a>, which is inline by default -- without flex the glyph sits
     off-centre and gets clipped by the round border. */
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; text-decoration: none; line-height: 1;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 20px;
}
.cal-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.cal-nav:disabled { opacity: .3; cursor: not-allowed; }

.cal { width: 100%; border-collapse: collapse; }
.cal th {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); padding-bottom: 10px;
}
.cal td { text-align: center; padding: 2px; }

.day {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; max-width: 46px; margin: 0 auto;
  border-radius: 50%; border: 1px solid transparent; background: none;
  font: inherit; font-size: 14px; color: var(--ink); cursor: pointer;
  text-decoration: none; transition: all .12s;
}
.day.free { background: #fff; border-color: var(--mist); font-weight: 600; }
.day.free:hover { border-color: var(--gold); color: var(--gold-dark); }
.day.full { color: var(--mist); cursor: not-allowed; text-decoration: line-through; }
.day.chosen { background: var(--gold); border-color: var(--gold); color: #fff; }
.day.today { box-shadow: 0 0 0 2px var(--teal); }
.day.blank { visibility: hidden; }

/* legend */
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-free { background: #fff; border: 1px solid var(--mist); }
.dot-full { background: var(--line); }
.dot-blocked { background: var(--rose); }
.dot-booked { background: var(--teal); }
.dot-partial { background: var(--gold); }

/* slot picker */
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 720px) { .picker { grid-template-columns: 1fr; gap: 26px; } }

.slot-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.slot-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px;
  cursor: pointer; text-align: left; transition: all .12s;
}
.slot-btn:hover { border-color: var(--gold); background: #fffdf9; }
.slot-btn.on { border-color: var(--gold); background: var(--gold); color: #fff; }
.slot-btn small { font-size: 13px; opacity: .7; }
.empty { color: var(--muted); font-size: 14px; padding: 18px 0; }

/* forms */
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
input[type=text], input[type=email], input[type=tel], input[type=password],
input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; padding: 11px 13px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(178, 137, 81, .13);
}
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-soft); }
.check input { margin-top: 3px; flex-shrink: 0; }
.check label { font-weight: 400; margin: 0; font-size: 14px; }

/* notices */
.notice { padding: 13px 16px; border-radius: 6px; font-size: 14px; margin-bottom: 20px; }
.notice-error { background: #fdf1f0; color: #8f4740; border: 1px solid #f0d5d2; }
.notice-ok { background: #f1f7f2; color: #3d6349; border: 1px solid #d5e6da; }
.notice-info { background: #f4f7f8; color: #4d6469; border: 1px solid var(--mist); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
  color: var(--muted); border-bottom: 1px solid var(--line); padding: 0 10px 9px;
}
.tbl td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .who { font-weight: 600; }
.tbl .meta { color: var(--muted); font-size: 13px; }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
}
.tag-blocked { background: #fdf1f0; color: #8f4740; }
.tag-open { background: #f1f7f2; color: #3d6349; }

.summary {
  background: var(--sand); border: 1px solid var(--line); border-left: 3px solid var(--gold);
  border-radius: 6px; padding: 16px 18px; margin-bottom: 22px;
}
.summary .when { font-size: 18px; font-weight: 600; }
.summary .where { color: var(--muted); font-size: 14px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding-top: 8px; }
.hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
