/* ===========================
   Pure Esthetic – Booking Page
   Styl dopasowany do strony głównej
   =========================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
  --primary: #d4af8a; --gold-dark: #b89b72; --gold-light: #e6d5b8;
  --dark: #1a1a1a; --deep: #2c1f1a; --light: #f8f1e9; --cream: #faf6f1;
  --muted: #7a6a62; --border: rgba(212,175,138,.25); --white: #fff;
  --success: #5a8e6a; --error: #c0392b;
  --r: 8px; --shadow: 0 4px 20px rgba(0,0,0,.08); --transition: all .3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', sans-serif; background: var(--light); color: var(--deep); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── NAVBAR ── */
.bk-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #fff; box-shadow: 0 2px 15px rgba(0,0,0,.08);
  padding: 0 20px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}
.bk-logo { display: flex; align-items: center; gap: 10px; }
.bk-logo img { height: 36px; width: auto; }
.bk-logo span { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: var(--dark); }
.bk-back {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); padding: 7px 16px; border: 1.5px solid var(--border);
  border-radius: 24px; transition: var(--transition);
}
.bk-back:hover { color: var(--primary); border-color: var(--primary); }

/* ── PAGE LAYOUT ── */
.bk-page { padding-top: 72px; min-height: 100vh; }

/* ── HERO ── */
.bk-hero {
  background: radial-gradient(ellipse at center, #d7b377 0%, #c4956a 35%, #a6794e 65%, #8a5f36 100%);
  padding: 4rem 5% 3.5rem; text-align: center; position: relative; overflow: hidden;
}
.bk-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3Ccircle cx='30' cy='30' r='1.5'/%3E%3Ccircle cx='50' cy='10' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.bk-hero h1 {
  font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem);
  color: #fff; font-weight: 600; margin-bottom: .7rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); position: relative; z-index: 1;
}
.bk-hero h1 em { font-style: italic; }
.bk-hero p { color: rgba(255,255,255,.82); font-weight: 300; font-size: 1rem; position: relative; z-index: 1; }

/* ── STEPS BAR ── */
.steps-bar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 1.2rem 5%; display: flex; justify-content: center; align-items: center; gap: 0;
  position: sticky; top: 72px; z-index: 50;
}
.step { display: flex; align-items: center; gap: .7rem; padding: 0 1.2rem; opacity: .4; transition: opacity .3s; }
.step.active { opacity: 1; }
.step.done { opacity: .65; }
.step-num {
  width: 28px; height: 28px; border: 2px solid var(--primary); display: flex;
  align-items: center; justify-content: center; font-size: .72rem; font-weight: 700;
  color: var(--primary); border-radius: 50%; flex-shrink: 0;
}
.step.active .step-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.done .step-num { background: var(--dark); color: #fff; border-color: var(--dark); font-size: .7rem; }
.step.done .step-num::after { content: '✓'; }
.step-label { font-size: .73rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.step-divider { width: 30px; height: 1.5px; background: var(--border); flex-shrink: 0; }

/* ── CONTENT ── */
.bk-content { max-width: 900px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }

.section-header { margin-bottom: 2rem; }
.section-header h2 {
  font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--dark); margin-bottom: .35rem;
}
.section-header h2::after {
  content: ''; display: block; width: 44px; height: 2px; background: var(--primary); margin-top: 8px;
}
.section-header p { color: var(--muted); font-size: .9rem; margin-top: .6rem; }

/* ── CATEGORY TABS ── */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.8rem; }
.cat-tab {
  background: transparent; border: 1.5px solid var(--border); color: var(--muted);
  padding: 7px 18px; border-radius: 24px; font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; cursor: pointer; transition: all .22s;
  font-family: 'Montserrat', sans-serif;
}
.cat-tab:hover { border-color: var(--primary); color: var(--primary); }
.cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ── SERVICE SELECTION ── */
.services-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 1rem; }
.service-cat-group { display: contents; }
.service-cat-group.hidden { display: none; }
.service-option {
  border: 1.5px solid var(--border); padding: 1.5rem 1.4rem; cursor: pointer;
  transition: all .25s; background: #fff; border-radius: var(--r); position: relative;
}
.service-option:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.service-option.selected { border-color: var(--primary); background: #fff9f4; }
.service-option.selected::after {
  content: '✓'; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px;
  background: var(--primary); color: #fff; font-size: .7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.so-name { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dark); margin-bottom: .3rem; }
.so-desc { font-size: .8rem; color: var(--muted); font-weight: 300; margin-bottom: .7rem; line-height: 1.55; }
.so-meta { display: flex; gap: .8rem; font-size: .78rem; }
.so-price { color: var(--primary); font-weight: 700; font-size: .9rem; }
.so-dur { color: var(--muted); }

/* ── EMPLOYEE ── */
.employees-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.employee-option {
  border: 1.5px solid var(--border); padding: 1.4rem 1rem; cursor: pointer;
  transition: all .25s; background: #fff; border-radius: var(--r); text-align: center;
}
.employee-option:hover { border-color: var(--primary); transform: translateY(-2px); }
.employee-option.selected { border-color: var(--primary); background: #fff9f4; }
.eo-avatar {
  width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--primary));
  margin: 0 auto .9rem; display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.eo-name { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--dark); }
.eo-role { font-size: .72rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-top: .25rem; font-weight: 500; }

/* ── CALENDAR ── */
.calendar-wrap { background: #fff; border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden; }
.cal-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); }
.cal-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--dark); }
.cal-nav {
  background: none; border: 1.5px solid var(--border); width: 34px; height: 34px;
  cursor: pointer; font-size: .9rem; transition: var(--transition); border-radius: 6px; color: var(--dark);
}
.cal-nav:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-day-name {
  text-align: center; padding: .85rem 0; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.cal-day {
  text-align: center; padding: .9rem 0; cursor: pointer; transition: all .18s;
  font-size: .88rem; border: .5px solid transparent;
}
.cal-day:hover:not(.disabled):not(.empty) { background: var(--light); border-color: var(--primary); }
.cal-day.selected { background: var(--primary); color: #fff; font-weight: 600; }
.cal-day.today { font-weight: 700; color: var(--primary); }
.cal-day.disabled { color: var(--border); cursor: not-allowed; }
.cal-day.empty { cursor: default; }
.time-section { margin-top: 1.5rem; }
.time-section h3 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--dark); margin-bottom: .9rem; }
.time-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .7rem; }
.time-slot {
  border: 1.5px solid var(--border); padding: .65rem .9rem; text-align: center;
  cursor: pointer; transition: all .2s; font-size: .85rem; background: #fff; border-radius: 6px;
}
.time-slot:hover:not(.unavailable) { border-color: var(--primary); color: var(--primary); }
.time-slot.selected { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 600; }
.time-slot.unavailable { background: var(--light); color: var(--border); cursor: not-allowed; text-decoration: line-through; font-size: .8rem; }

/* ── SUMMARY ── */
.booking-summary {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r);
  overflow: hidden; margin-bottom: 2rem;
}
.summary-head {
  background: linear-gradient(135deg, var(--dark), #2d1f1a); padding: .85rem 1.3rem;
  display: flex; align-items: center; gap: .5rem;
}
.summary-head span { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1.3rem; border-bottom: 1px solid rgba(0,0,0,.04); font-size: .9rem;
}
.summary-row:last-child { border-bottom: none; font-weight: 700; color: var(--primary); }
.summary-label { color: var(--muted); font-size: .82rem; }

/* ── CLIENT FORM ── */
.client-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.form-group input, .form-group textarea, .form-group select {
  background: #fff; border: 1.5px solid var(--border); padding: .85rem 1rem;
  font-family: 'Montserrat', sans-serif; font-size: .9rem; color: var(--deep);
  outline: none; transition: border-color .2s; width: 100%; border-radius: 6px;
  -webkit-appearance: none; appearance: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(212,175,138,.12); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-err { color: var(--error); font-size: .83rem; padding: .35rem 0; display: none; }

/* ── NAV BUTTONS ── */
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.btn-primary {
  background: var(--dark); color: var(--cream); padding: .9rem 2.2rem;
  font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border: none; cursor: pointer;
  transition: all .25s; border-radius: 6px; display: inline-block;
}
.btn-primary:hover { background: var(--primary); transform: translateY(-1px); }
.btn-primary:disabled { background: var(--border); cursor: not-allowed; transform: none; }
.btn-outline {
  background: transparent; color: var(--dark); padding: .9rem 2.2rem;
  font-family: 'Montserrat', sans-serif; font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; border: 1.5px solid var(--border);
  cursor: pointer; transition: all .25s; border-radius: 6px;
}
.btn-outline:hover { background: var(--dark); color: var(--cream); border-color: var(--dark); }

/* ── SUCCESS ── */
.success-screen { text-align: center; padding: 3rem 1.5rem; }
.success-icon { font-size: 3.5rem; margin-bottom: 1.2rem; }
.success-screen h2 {
  font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--dark); margin-bottom: .8rem;
}
.success-screen p { color: var(--muted); max-width: 420px; margin: 0 auto 1.8rem; font-size: .95rem; }
.confirm-box {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r); overflow: hidden;
  max-width: 420px; margin: 0 auto 2rem; text-align: left;
}
.confirm-box-head { background: linear-gradient(135deg, var(--dark), #2d1f1a); padding: .85rem 1.3rem; }
.confirm-box-head span { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); }
#confirmBox { padding: 1.1rem 1.3rem; }
.confirm-row { display: flex; align-items: flex-start; gap: .7rem; padding: .5rem 0; border-bottom: 1px solid rgba(0,0,0,.05); font-size: .87rem; }
.confirm-row:last-child { border-bottom: none; }
.confirm-row strong { color: var(--dark); }
.confirm-row span { color: var(--muted); }

/* ── MISC ── */
.loading { text-align: center; padding: 2rem; color: var(--muted); font-size: .9rem; }
.err-msg { color: var(--error); font-size: .85rem; padding: .4rem 0; }

/* ── FOOTER ── */
.bk-footer {
  background: var(--dark); border-top: 1px solid rgba(212,175,138,.1);
  padding: 1.5rem; text-align: center;
}
.bk-footer p { font-size: .78rem; color: rgba(255,255,255,.35); }
.bk-footer a { color: var(--primary); transition: color .2s; }
.bk-footer a:hover { color: #fff; }

/* ── RESPONSIVE ── */
@media(max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .steps-bar { padding: .9rem 1rem; gap: 0; }
  .step { padding: 0 .5rem; }
  .step-label { display: none; }
  .step-divider { width: 16px; }
  .bk-content { padding: 2rem 1rem 4rem; }
  .services-list { grid-template-columns: 1fr; }
  .employees-list { grid-template-columns: repeat(2, 1fr); }
  .time-slots { grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); }
}
