/* TCY retreat booking pages.
   Dark, photographic, mostly black and white; square edges and thin rules.
   Sits inside the original Divi header/footer; everything is scoped to .tcy. */
.tcy {
  --ink: #f2f0eb;
  --ink-2: rgba(242, 240, 235, .74);
  --ink-3: rgba(242, 240, 235, .5);
  --rule: rgba(242, 240, 235, .18);
  --rule-2: rgba(242, 240, 235, .4);
  --lime: #d9ff4a;
  --panel: rgba(12, 12, 14, .55);
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  position: relative; isolation: isolate; overflow: hidden;
  color: var(--ink); font-family: var(--text); font-size: 16px; line-height: 1.6;
  padding: 72px 0 110px; background: #0c0c0e;
}
#main-content:has(.tcy) { background: #0c0c0e; }

/* the poster photo, blurred and darkened, as the backdrop */
.tcy-bg {
  position: absolute; inset: -40px; z-index: -1; pointer-events: none;
  background: url("/conference/poster.jpg") center 30% / cover no-repeat;
  filter: blur(28px) saturate(.9) brightness(.5);
}
.tcy-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,12,14,.35) 0%, rgba(12,12,14,.8) 45%, #0c0c0e 85%);
}

/* Divi resets inside our area */
.tcy h1, .tcy h2, .tcy h3, .tcy p, .tcy li, .tcy legend, .tcy label, .tcy dt, .tcy dd {
  font-family: var(--text); color: inherit; padding: 0;
}
.tcy p { margin: 0 0 1em; }
.tcy b, .tcy strong { color: var(--ink); font-weight: 600; }
.tcy ul { list-style: none; padding: 0; margin: 0; }
.tcy a { color: var(--ink); }

.tcy-wrap { width: min(1040px, calc(100% - 32px)); margin: 0 auto; }

/* panels: frosted, square, one thin rule */
.tcy-glass {
  background: var(--panel);
  border: 1px solid var(--rule);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* ---------- hero ---------- */
.tcy-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: end; margin-bottom: 64px; }
.tcy .tcy-eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.tcy .tcy-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(56px, 9vw, 120px); line-height: .9; letter-spacing: .005em; margin: 0 0 28px; color: var(--ink);
}
.tcy .tcy-title-sm { font-size: clamp(44px, 6vw, 72px); }
.tcy-glow { color: var(--lime); }
.tcy .tcy-verse { font-size: 18px; color: var(--ink-2); max-width: 32em; margin-bottom: 32px; }
.tcy-verse span { color: var(--ink-3); font-size: 14px; }
.tcy-chips { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; border-top: 1px solid var(--rule); margin: 0 0 36px !important; }
.tcy .tcy-chips li { padding: 14px 32px 0 0 !important; font-size: 15px; color: var(--ink); }
.tcy-chip-k { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.tcy-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.tcy-pill { font-size: 14px; color: var(--ink-2); }
.tcy-pill[hidden] { display: none; }
.tcy-pill.is-full { color: #ff8f8f; }
.tcy-hero-poster { padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tcy-hero-poster img { display: block; width: 100%; height: auto; box-shadow: 0 30px 60px rgba(0,0,0,.5); }

/* ---------- about ---------- */
.tcy-about { padding: 32px 36px; margin-bottom: 88px; font-size: 17px; color: var(--ink-2); }
.tcy-about p { max-width: 46em; }
.tcy-about p:last-child { margin-bottom: 0; }
.tcy .tcy-muted { color: var(--ink-3); font-size: 14px; }

/* ---------- buttons: rectangles ---------- */
.tcy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 0; font-family: var(--text); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  color: var(--ink) !important; background: transparent; border: 1px solid var(--rule-2);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tcy-btn:hover { border-color: var(--ink); }
.tcy-btn-primary { color: #0c0c0e !important; background: var(--ink); border-color: var(--ink); }
.tcy-btn-primary:hover { background: #fff; }
.tcy-btn:disabled { opacity: .55; cursor: default; }
.tcy-link { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; }
.tcy-link:hover { color: var(--ink); }

/* ---------- booking ---------- */
.tcy .tcy-h2 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(36px, 5vw, 56px); line-height: 1; margin: 0 0 32px; color: var(--ink);
}
.tcy .tcy-step {
  display: flex; align-items: baseline; gap: 14px; width: 100%;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 22px; padding-bottom: 12px; border-bottom: 1px solid var(--rule);
}
.tcy-step span { font-family: var(--display); font-size: 15px; color: var(--ink-3); letter-spacing: .04em; }
.tcy .reg-form { display: grid; gap: 28px; }
.tcy fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.tcy-ticket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); }
.tcy .tcy-ticket {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 28px; cursor: pointer;
  border: 0; outline: 1px solid transparent; outline-offset: -1px; transition: background .15s, outline-color .15s;
}
.tcy .tcy-ticket + .tcy-ticket { border-left: 1px solid var(--rule); }
.tcy-ticket:hover { background: rgba(255,255,255,.04); }
.tcy-ticket input { position: absolute; top: 28px; right: 28px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.tcy-ticket-price { font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.tcy-ticket-name { font-size: 16px; font-weight: 600; color: var(--ink); padding-right: 30px; }
.tcy-ticket-desc { font-size: 14px; color: var(--ink-2); }
.tcy-ticket-left { margin-top: 10px; font-size: 13px; letter-spacing: .04em; color: var(--ink); }
.tcy-ticket:has(input:checked) { background: rgba(255,255,255,.07); outline-color: var(--ink); }
.tcy-ticket:has(input:disabled) { opacity: .4; cursor: not-allowed; }

.tcy-panel { padding: 30px 32px; }
.tcy .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.tcy .span2 { grid-column: span 2; }
.tcy .reg-form .grid2 label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.tcy .reg-form input:not([type=radio]), .tcy .reg-form textarea, .tcy .reg-form select {
  display: block; width: 100%; box-sizing: border-box; margin-top: 6px;
  padding: 12px 0 10px; border-radius: 0; font: 400 16px/1.4 var(--text); color: var(--ink);
  background-color: transparent; border: 0; border-bottom: 1px solid var(--rule-2);
  transition: border-color .15s;
}
.tcy .reg-form textarea { padding: 10px 12px; border: 1px solid var(--rule-2); }
.tcy .reg-form select { appearance: none; -webkit-appearance: none; padding-right: 28px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.tcy .reg-form select option { color: #111; background: #fff; }
.tcy .reg-form input::placeholder, .tcy .reg-form textarea::placeholder { color: var(--ink-3); }
.tcy .reg-form input:focus, .tcy .reg-form textarea:focus, .tcy .reg-form select:focus { outline: none; border-color: var(--ink); }
.tcy .reg-form input[type=date] { color-scheme: dark; }
.tcy-choice { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.tcy .tcy-choice legend { float: left; width: 100%; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; }
.tcy .tcy-choice label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; color: var(--ink); }
.tcy-choice input { accent-color: var(--ink); margin: 0; width: 16px; height: 16px; }
.tcy .reg-form [hidden] { display: none !important; }

.tcy-submit { padding-top: 4px; }
.tcy-submit .tcy-btn { min-width: 280px; }
.tcy .form-error { color: #ff8f8f; font-weight: 500; min-height: 1.2em; margin-bottom: 14px; }
.tcy .form-note { font-size: 13px; color: var(--ink-3); margin: 16px 0 0; max-width: 560px; }

/* payment step: Stripe's form on white so it stays readable */
.tcy-pay { padding: 30px 32px; }
.tcy-pay[hidden] { display: none; }
.tcy-checkout { min-height: 420px; background: #fff; padding: 8px; }
.tcy-pay p { color: var(--ink-2); }

/* ---------- success ---------- */
.tcy-success { max-width: 760px; }
.tcy-success .tcy-panel { padding: 44px; }
.tcy-summary { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 26px 0; border-top: 1px solid var(--rule); }
.tcy-summary dt, .tcy-summary dd { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.tcy-summary dt { padding-right: 28px; color: var(--ink-3); font-size: 14px; }
.tcy-summary dd { margin: 0; font-weight: 500; }
.tcy .tcy-ref { font-family: var(--display); font-size: 22px; letter-spacing: .06em; padding: 8px 0; }
.tcy-success .tcy-cta { margin: 26px 0; gap: 12px; }

/* ---------- booking timer ---------- */
.booking-timer {
  position: fixed; right: 18px; bottom: 18px; z-index: 100000; min-width: 150px; padding: 12px 18px; text-align: left;
  font-family: "Inter", system-ui, sans-serif; color: #f2f0eb;
  background: rgba(12, 12, 14, .82); border: 1px solid rgba(242, 240, 235, .3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.booking-timer[hidden] { display: none; }
.booking-timer-label { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 240, 235, .6); }
.booking-timer-time { display: block; font-family: "Oswald", "Arial Narrow", sans-serif; font-size: 34px; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.booking-timer.urgent { background: #b3261e; border-color: #b3261e; }
.booking-timer.urgent .booking-timer-label { color: rgba(255, 255, 255, .8); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .tcy { padding-top: 44px; }
  .tcy-hero { grid-template-columns: 1fr; gap: 40px; }
  .tcy-hero-poster { max-width: 400px; }
}
@media (max-width: 640px) {
  .tcy-ticket-grid, .tcy .grid2 { grid-template-columns: 1fr; }
  .tcy .tcy-ticket + .tcy-ticket { border-left: 0; border-top: 1px solid var(--rule); }
  .tcy .span2 { grid-column: auto; }
  .tcy-chips { grid-template-columns: 1fr; }
  .tcy .tcy-chips li { padding: 12px 0 0 !important; }
  .tcy-panel, .tcy-pay, .tcy-about { padding: 24px 20px; }
  .tcy-success .tcy-panel { padding: 30px 20px; }
  .tcy-summary { grid-template-columns: 1fr; }
  .tcy-summary dt { border-bottom: 0; padding-bottom: 0; }
  .tcy-submit .tcy-btn { width: 100%; min-width: 0; }
  /* phones: timer becomes a slim bar along the top so it never covers Stripe's fields or Pay button */
  .booking-timer {
    top: 0; left: 0; right: 0; bottom: auto; min-width: 0; padding: 8px 16px;
    display: flex; align-items: center; justify-content: space-between; border-width: 0 0 1px;
  }
  .booking-timer[hidden] { display: none; }
  .booking-timer-time { font-size: 22px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .tcy-glass, .booking-timer { background: rgba(14, 14, 16, .94); }
}
