/* ── TIDYCAL BOOKING WIDGET ───────────────────────────────────────────────────
   All rules use !important to prevent WordPress theme styles overriding them.
   Font scale: H3=48px, Body=24px, labels=16px
   ─────────────────────────────────────────────────────────────────────────── */

#tc-widget {
  background: #141414 !important;
  color: #FAF9F8 !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 300 !important;
  font-size: 24px !important;
  line-height: 1.7 !important;
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 3rem !important;
  border: 1px solid rgba(250,249,248,0.1) !important;
  box-sizing: border-box !important;
}

/* ── HEADER ── */
#tc-widget .tc-header {
  margin-bottom: 2.4rem !important;
}

#tc-widget .tc-title {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-weight: 300 !important;
  font-size: 48px !important;
  line-height: 1.1 !important;
  color: #FAF9F8 !important;
  margin: 0 0 0.5rem !important;
  padding: 0 !important;
  border: none !important;
}

#tc-widget .tc-sub {
  font-size: 24px !important;
  color: #8a8480 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 300 !important;
}

/* ── CALENDAR NAV ── */
#tc-widget .tc-cal-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 1.4rem !important;
}

#tc-widget #tc-month-label {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 24px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #FAF9F8 !important;
  font-weight: 400 !important;
}

#tc-widget .tc-nav-btn {
  background: none !important;
  border: 1px solid rgba(250,249,248,0.1) !important;
  color: #8a8480 !important;
  width: 48px !important;
  height: 48px !important;
  cursor: pointer !important;
  font-size: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

#tc-widget .tc-nav-btn:hover {
  border-color: #23AAB0 !important;
  color: #23AAB0 !important;
}

/* ── CALENDAR GRID ── */
#tc-widget #tc-calendar {
  display: grid !important;
  grid-template-columns: repeat(7, 1fr) !important;
  gap: 5px !important;
}

#tc-widget .tc-day-header {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 16px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  color: #8a8480 !important;
  text-align: center !important;
  padding: 0.5rem 0 !important;
  font-weight: 400 !important;
}

#tc-widget .tc-day {
  aspect-ratio: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 20px !important;
  color: #8a8480 !important;
  cursor: default !important;
  border: 1px solid transparent !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 300 !important;
  background: none !important;
}

#tc-widget .tc-day.tc-past {
  opacity: 0.25 !important;
}

#tc-widget .tc-day.tc-available {
  color: #FAF9F8 !important;
  cursor: pointer !important;
  border-color: rgba(250,249,248,0.1) !important;
}

#tc-widget .tc-day.tc-available:hover {
  border-color: #23AAB0 !important;
  color: #23AAB0 !important;
  background: none !important;
}

#tc-widget .tc-day.tc-selected {
  background: #23AAB0 !important;
  border-color: #23AAB0 !important;
  color: #fff !important;
}

#tc-widget .tc-day.tc-today {
  border-color: #E05112 !important;
  color: #E05112 !important;
}

#tc-widget .tc-day.tc-today.tc-selected {
  background: #23AAB0 !important;
  border-color: #23AAB0 !important;
  color: #fff !important;
}

/* ── LOADING ── */
#tc-widget .tc-loading {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: #23AAB0 !important;
  text-align: center !important;
  padding: 1.5rem 0 !important;
}

/* ── BACK BUTTON ── */
#tc-widget .tc-back-btn {
  background: none !important;
  border: none !important;
  color: #8a8480 !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 18px !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin-bottom: 1.4rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  box-shadow: none !important;
}

#tc-widget .tc-back-btn:hover {
  color: #FAF9F8 !important;
  background: none !important;
}

/* ── TIME SLOTS ── */
#tc-widget #tc-slots {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 0.8rem !important;
}

#tc-widget .tc-slot {
  padding: 1rem 0.5rem !important;
  border: 1px solid rgba(250,249,248,0.1) !important;
  text-align: center !important;
  font-size: 22px !important;
  color: #FAF9F8 !important;
  cursor: pointer !important;
  background: none !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 300 !important;
}

#tc-widget .tc-slot:hover {
  border-color: #23AAB0 !important;
  color: #23AAB0 !important;
  background: none !important;
}

#tc-widget .tc-slot.tc-selected-slot {
  background: #23AAB0 !important;
  border-color: #23AAB0 !important;
  color: #fff !important;
}

#tc-widget .tc-no-slots {
  color: #8a8480 !important;
  font-size: 24px !important;
  padding: 1.5rem 0 !important;
  grid-column: 1 / -1 !important;
  line-height: 1.6 !important;
  font-family: 'Barlow', sans-serif !important;
}

/* ── FORM ── */
#tc-widget #tc-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.4rem !important;
}

#tc-widget .tc-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.5rem !important;
}

#tc-widget .tc-field label {
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 16px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: #8a8480 !important;
  font-weight: 400 !important;
}

#tc-widget .tc-field input,
#tc-widget .tc-field textarea {
  background: rgba(250,249,248,0.04) !important;
  border: 1px solid rgba(250,249,248,0.1) !important;
  padding: 1rem 1.1rem !important;
  color: #FAF9F8 !important;
  font-family: 'Barlow', sans-serif !important;
  font-size: 24px !important;
  font-weight: 300 !important;
  outline: none !important;
  resize: none !important;
  border-radius: 0 !important;
  width: 100% !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
}

#tc-widget .tc-field textarea {
  min-height: calc(24px * 1.4 * 3 + 2rem) !important;  /* 3 lines + padding */
  height: calc(24px * 1.4 * 3 + 2rem) !important;
}

#tc-widget .tc-field input::placeholder,
#tc-widget .tc-field textarea::placeholder {
  color: #8a8480 !important;
}

#tc-widget .tc-field input:focus,
#tc-widget .tc-field textarea:focus {
  border-color: rgba(250,249,248,0.28) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── SUBMIT ── */
#tc-widget .tc-submit {
  background: #E05112 !important;
  border: none !important;
  padding: 1.1rem 2rem !important;
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif !important;
  font-size: 20px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  width: 100% !important;
  margin-top: 0.4rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#tc-widget .tc-submit:hover {
  background: #c4470f !important;
}

#tc-widget .tc-submit:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ── ERROR ── */
#tc-widget .tc-error {
  font-size: 22px !important;
  color: #E05112 !important;
  padding: 0.9rem 1.1rem !important;
  border: 1px solid rgba(224,81,18,0.3) !important;
  background: rgba(224,81,18,0.06) !important;
  line-height: 1.5 !important;
  font-family: 'Barlow', sans-serif !important;
}

/* ── CONFIRMED ── */
#tc-widget .tc-confirmed {
  text-align: center !important;
  padding: 2.5rem 0 !important;
}

#tc-widget .tc-check {
  font-size: 48px !important;
  color: #23AAB0 !important;
  margin-bottom: 1.2rem !important;
  line-height: 1 !important;
  display: block !important;
}

#tc-widget .tc-confirm-note {
  margin-top: 1.4rem !important;
  font-size: 24px !important;
  color: #8a8480 !important;
  line-height: 1.7 !important;
  max-width: 480px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  font-family: 'Barlow', sans-serif !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  #tc-widget                         { padding: 2rem 1.5rem !important; font-size: 20px !important; }
  #tc-widget .tc-title               { font-size: 36px !important; }
  #tc-widget .tc-sub                 { font-size: 20px !important; }
  #tc-widget #tc-slots               { grid-template-columns: repeat(2, 1fr) !important; }
  #tc-widget .tc-slot                { font-size: 18px !important; }
  #tc-widget .tc-field input,
  #tc-widget .tc-field textarea      { font-size: 20px !important; }
  #tc-widget .tc-no-slots            { font-size: 20px !important; }
  #tc-widget .tc-confirm-note        { font-size: 20px !important; }
}
