/* Sharpify Booking. Layout from Mobbin refs: Cal.com (details | month | times), Calendly (time then "Continue"),
   Apollo (success card). Brand: Montserrat, #00665E. House rules: no arrows on buttons, no "!". */
:root {
  --green: #00665E;
  --green-700: #004E48;
  --green-50: #EAF4F2;
  --green-100: #D4EAE6;
  --ink: #0F1A19;
  --text: #2B3634;
  --muted: #687472;
  --faint: #A3ADAB;
  --line: rgba(15, 26, 25, 0.09);
  --line-2: rgba(15, 26, 25, 0.16);
  --bg: #F3F5F4;
  --card: #FFFFFF;
  --slab: #050C0B;
  --danger: #B42318;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(15, 26, 25, 0.04), 0 12px 40px -12px rgba(15, 26, 25, 0.14);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.5 Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { background: var(--slab); color: #fff; }
.top-in { max-width: 1120px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 16px; }
.top img { height: 24px; display: block; }
.top .spacer { flex: 1; }
.pill-test { font-size: 11px; font-weight: 700; letter-spacing: .08em; background: #F5C542; color: #2A2200; padding: 3px 8px; border-radius: 99px; }
.lang { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 99px; padding: 3px; }
.lang a { color: #C9D4D1; text-decoration: none; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.lang a.on { background: #fff; color: var(--ink); }

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 20px 48px; }
.foot { text-align: center; font-size: 12px; color: var(--faint); padding: 0 20px 28px; }
.foot a { color: var(--muted); text-decoration: none; }

/* ---------- card ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: 320px 1fr 260px; min-height: 560px; overflow: hidden;
}
.card.two { grid-template-columns: 320px 1fr; }
.card.one { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; min-height: 0; }
.pane { padding: 28px; min-width: 0; }
.pane + .pane { border-left: 1px solid var(--line); }

/* info pane */
.hosts { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.avatars { display: flex; }
.av {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: #fff;
  border: 2px solid #fff; margin-left: -8px; flex: none;
}
.av:first-child { margin-left: 0; }
.av.k { background: #00665E; } .av.l { background: #2F5D8A; } .av.n { background: #1E1E1E; } .av.t { background: #8A5A2F; }
.av.lg { width: 44px; height: 44px; font-size: 16px; }
.hosts .who { font-size: 13px; color: var(--muted); line-height: 1.3; }
.hosts .who b { display: block; color: var(--ink); font-weight: 600; font-size: 14px; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--ink); margin: 0 0 16px; letter-spacing: -0.01em; }
.meta { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.meta li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); font-weight: 500; }
.meta svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.lead { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; }
.points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.points li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--text); }
.points li::before {
  content: ''; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--green-50)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none' stroke='%2300665E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4l2.6 2.6L9 1'/%3E%3C/svg%3E") center no-repeat;
}
.picked { margin: 4px 0 20px; padding: 14px 16px; background: var(--green-50); border-radius: 12px; }
.picked .t { font-weight: 700; color: var(--green-700); font-size: 15px; }
.picked .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.picked button { margin-top: 8px; background: none; border: 0; padding: 0; color: var(--green); font-weight: 600; font-size: 13px; text-decoration: underline; }

/* ---------- calendar ---------- */
.pane h2 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 0 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.cal-head h2 { white-space: nowrap; }
.cal-head .m { font-weight: 600; color: var(--ink); font-size: 15px; text-transform: capitalize; white-space: nowrap; margin-right: 4px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover:not(:disabled) { border-color: var(--green); color: var(--green); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 16px; height: 16px; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.wd { text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-bottom: 6px; }
.day {
  aspect-ratio: 1; max-height: 54px; border-radius: 12px; border: 0; background: transparent; color: var(--faint); font-size: 15px; font-weight: 500;
  display: grid; place-items: center; position: relative; padding: 0;
}
.day.av-day { background: var(--green-50); color: var(--green-700); font-weight: 700; }
.day.av-day:hover { background: var(--green-100); }
.day.sel { background: var(--green); color: #fff; }
.day.today::after { content: ''; position: absolute; bottom: 7px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .7; }
.day:disabled { cursor: default; }
.cal-foot { margin-top: 18px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-100); border: 1px solid var(--green); display: inline-block; }

/* ---------- times ---------- */
.times-head { font-weight: 700; color: var(--ink); font-size: 15px; margin: 4px 0 16px; }
.times-head span { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-top: 2px; }
.times { display: grid; gap: 8px; max-height: 470px; overflow-y: auto; padding: 2px 4px 2px 2px; margin: -2px -4px -2px -2px; }
.slot { display: grid; grid-template-columns: 1fr; gap: 8px; }
.slot.open { grid-template-columns: 1fr 1fr; }
.t-btn {
  height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-weight: 600; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: border-color .12s, background .12s;
}
.t-btn:hover { border-color: var(--green); color: var(--green); }
.slot.open .t-btn { background: #24302E; border-color: #24302E; color: #fff; }
.go { height: 46px; border-radius: 10px; border: 0; background: var(--green); color: #fff; font-weight: 700; font-size: 14px; animation: pop .16s ease-out; }
.go:hover { background: var(--green-700); }
@keyframes pop { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.who-mini { display: inline-flex; }
.who-mini .av { width: 18px; height: 18px; font-size: 9px; border-width: 1px; margin-left: -4px; }
.empty { color: var(--muted); font-size: 14px; padding: 12px 0; }

/* ---------- form ---------- */
.form { max-width: 520px; }
.field { margin-bottom: 16px; }
.field label, .field .lbl { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 500; color: var(--faint); }
.in {
  width: 100%; height: 46px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; padding: 0 14px; font-size: 16px; line-height: 24px;
  transition: border-color .12s, box-shadow .12s;
}
textarea.in { height: 88px; padding: 11px 14px; resize: vertical; }
.in:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.in.bad { border-color: var(--danger); }
.phone { display: grid; grid-template-columns: 124px 1fr; gap: 8px; }
.choice { display: grid; gap: 8px; }
.choice label {
  display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2);
  font-weight: 500; font-size: 14px; margin: 0; cursor: pointer; color: var(--text);
}
.choice input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.choice label:has(input:checked) { border-color: var(--green); background: var(--green-50); color: var(--green-700); font-weight: 600; }
.err { color: var(--danger); font-size: 12px; margin-top: 5px; }
.consent { font-size: 12px; color: var(--muted); margin: 6px 0 18px; line-height: 1.5; }
.btn {
  height: 50px; border-radius: 10px; border: 0; background: var(--green); color: #fff; font-weight: 700; font-size: 15px; padding: 0 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
}
.btn:hover { background: var(--green-700); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: #fff; }
.btn.danger { background: var(--danger); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 14px; line-height: 1.5; margin-bottom: 18px; background: #FFF7E6; border: 1px solid #F5D9A0; color: #5C4300; }
.notice.bad { background: #FDECEA; border-color: #F5C2BD; color: #7A1D14; }
.notice .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.notice .btn { height: 40px; font-size: 14px; padding: 0 16px; }
.team-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #1E2B29; color: #E4ECEA; border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.team-bar select, .team-bar input { height: 34px; border-radius: 8px; border: 0; padding: 0 10px; color: var(--ink); font-size: 13px; }

/* ---------- done / manage ---------- */
.done { padding: 40px 36px 36px; text-align: center; }
.check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 0 auto 20px; animation: bounce .5s cubic-bezier(.2,1.4,.4,1); }
.check svg { width: 34px; height: 34px; color: #fff; }
.check svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .2s ease-out forwards; }
@keyframes bounce { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: 26px; margin-bottom: 8px; }
.done .sub { color: var(--muted); margin: 0 0 26px; font-size: 15px; }
.box { text-align: left; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 18px; }
.box .row { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 18px; align-items: start; }
.box .row + .row { border-top: 1px solid var(--line); }
.box svg { width: 20px; height: 20px; color: var(--green); margin-top: 1px; }
.box .k { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.box .v { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 2px; word-break: break-word; }
.box .v a { font-weight: 600; }
.addcal { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 4px 0 22px; }
.addcal a, .addcal button { height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.addcal a:hover, .addcal button:hover { border-color: var(--green); color: var(--green); }
.small-links { font-size: 13px; color: var(--muted); }
.small-links a, .small-links button { color: var(--muted); background: none; border: 0; padding: 0; text-decoration: underline; font-size: 13px; }
.prep { margin-top: 28px; text-align: left; }
.prep h3 { font-size: 15px; color: var(--ink); margin: 0 0 4px; }
.prep p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.prep-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prep-links a { display: block; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.35; }
.prep-links a span { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-top: 4px; }
.prep-links a:hover { border-color: var(--green); }
.status { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; background: var(--green-50); color: var(--green-700); margin-bottom: 14px; }
.status.off { background: #F1F1F1; color: var(--muted); }
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- photos ---------- */
img.av { object-fit: cover; background: #DDE5E3; }
.box .ph { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; margin-top: 1px; }

/* ---------- picker buttons (time zone, phone country) ---------- */
.tzbtn, .ccbtn {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent; border-radius: 10px;
  font-weight: 500; font-size: 14px; color: var(--text); padding: 6px 10px; margin: -6px -10px; text-align: left; max-width: 100%;
}
.tzbtn:hover { background: var(--green-50); }
.tzbtn .tz-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tzbtn .tz-t { color: var(--muted); font-variant-numeric: tabular-nums; }
.tzbtn .flag, .ccbtn .flag { flex: none; }
.chev { width: 12px; height: 12px; color: var(--muted); flex: none; transition: transform .15s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.ccbtn {
  margin: 0; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); background: #fff; font-size: 15px; font-weight: 600;
  justify-content: space-between; width: 100%; font-variant-numeric: tabular-nums;
}
.ccbtn:hover, .ccbtn[aria-expanded="true"] { border-color: var(--green); }
.flag { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 26, 25, .12); display: inline-block; }
.flag.none { box-shadow: none; display: inline-grid; place-items: center; color: var(--muted); }
.flag.none svg { width: 16px; height: 16px; }

/* ---------- picker (picker.js) ---------- */
.pk {
  position: fixed; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 26, 25, .06), 0 24px 60px -16px rgba(15, 26, 25, .28);
  display: flex; flex-direction: column; overflow: hidden; animation: pk-in .14s ease-out;
}
@keyframes pk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pk-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex: none; }
.pk-search svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.pk-search input { border: 0; outline: none; width: 100%; font-size: 15px; padding: 6px 0; background: transparent; }
.pk-search input::-webkit-search-cancel-button { display: none; }
.pk-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.pk-group { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 6px; }
.pk-item {
  display: grid; grid-template-columns: 22px 1fr auto 16px; align-items: center; gap: 12px; width: 100%; border: 0; background: transparent;
  border-radius: 9px; padding: 9px 10px; text-align: left; color: var(--text);
}
.pk-item.on { background: var(--green-50); }
.pk-item[aria-selected="true"] b { color: var(--green-700); }
.pk-l { min-width: 0; line-height: 1.25; }
.pk-l b { display: block; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-l span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-m { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-c svg { width: 16px; height: 16px; color: var(--green); display: block; }
.pk-empty { padding: 18px 12px; color: var(--muted); font-size: 14px; }
.pk.sheet { left: 0; right: 0; bottom: 0; top: auto; max-height: 78vh; border-radius: 18px 18px 0 0; animation: pk-up .2s ease-out; padding-bottom: env(safe-area-inset-bottom); }
@keyframes pk-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.pk-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 6px; }
.pk-head b { font-size: 16px; color: var(--ink); }
.pk-x { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F1F3F2; font-size: 22px; line-height: 1; color: var(--ink); }
.pk-scrim { position: fixed; inset: 0; background: rgba(5, 12, 11, .38); z-index: 39; animation: pk-in .15s ease-out; }
.pk.sheet .pk-item { padding: 12px 10px; }

/* language suggestion */
.lang-hint { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 10px 14px; margin-bottom: 14px; font-size: 14px; line-height: 1.4; color: var(--text); box-shadow: var(--shadow); }
.lang-hint .flag { width: 20px; height: 15px; flex: none; }
.lang-hint span { flex: 1; min-width: 0; }
.lang-hint a { font-weight: 700; color: var(--green); white-space: nowrap; }
.lang-hint button { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 0; }
.lang-hint button:hover { background: #F1F3F2; }

/* skeleton */
.sk { background: linear-gradient(90deg, #EEF1F0 25%, #F6F8F7 50%, #EEF1F0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow); z-index: 9; max-width: calc(100% - 32px); }

/* ---------- embed ---------- */
body.embed { background: transparent; min-height: 0; }
body.embed main { padding: 0; max-width: none; }
body.embed .card { box-shadow: none; }

/* ---------- smaller screens ---------- */
@media (max-width: 1000px) {
  .card { grid-template-columns: 1fr 1fr; }
  .card .info { grid-column: 1 / -1; border-bottom: 1px solid var(--line); }
  .card .info + .pane { border-left: 0; }
  .card.two { grid-template-columns: 1fr; }
  .card.two .form-pane { border-left: 0; }
  .info .lead, .info .points { display: none; }
  .meta { grid-template-columns: repeat(auto-fit, minmax(150px, max-content)); gap: 8px 20px; margin-bottom: 0; }
}
@media (max-width: 700px) {
  main { padding: 16px 12px 32px; }
  .card { grid-template-columns: 1fr; border-radius: 16px; min-height: 0; }
  .pane { padding: 20px 16px; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--line); }
  .card .info { border-bottom: 0; }
  h1 { font-size: 21px; margin-bottom: 12px; }
  .times { grid-template-columns: repeat(3, 1fr); max-height: none; overflow: visible; margin: 0; padding: 0; }   /* no inner scroll box on phones: it caught swipes (Niks, 10-27) */
  .times .slot.open { grid-column: 1 / -1; }
  .day { max-height: 46px; border-radius: 10px; font-size: 14px; }
  .done { padding: 28px 16px; }
  .prep-links { grid-template-columns: 1fr; }
  .phone { grid-template-columns: 116px 1fr; }
}
