/* ================================================================
   Woodall Showhouse Booking — Frontend Widget v1.3.7
   ================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600&family=Jost:wght@300;400;500;600&display=swap');

.wsb-widget {
  --rust:    #C4572A;
  --rust-d:  #9e4422;
  --forest:  #2C3E35;
  --cream:   #F4F0EA;
  --warm:    #FAFAF8;
  --border:  #ddd8d0;
  --muted:   #7a8a82;
  --text:    #1a2420;
  --success: #3a7a5a;
  font-family: 'Jost', sans-serif;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,.10);
}

/* ── Scoped reset — undo Elementor/theme <a> overrides inside widget ── */
.wsb-widget a,
.wsb-widget a:hover,
.wsb-widget a:visited,
.wsb-widget a:focus {
  color: inherit;
  text-decoration: none;
  background: none;
  border: none;
  outline: none;
}

/* ── Header ── */
.wsb-widget__header {
  background: var(--forest);
  padding: 16px 24px;
  color: #fff;
}
.wsb-widget__header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 300;
  letter-spacing: 0.02em; margin: 0;
}
.wsb-widget__header p {
  font-size: 11px; color: rgba(255,255,255,.55);
  margin: 2px 0 0;
}

/* ── Body ── */
.wsb-widget__body { padding: 18px 22px; }

/* ── Step indicator ── */
.wsb-steps {
  display: flex; align-items: center; margin-bottom: 16px;
}
.wsb-step { display: flex; align-items: center; gap: 5px; flex: 1; }
.wsb-step:not(:last-child)::after {
  content: ''; flex: 1; height: 1px; background: var(--border); margin: 0 5px;
}
.wsb-step__num {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--muted);
  flex-shrink: 0; transition: all .2s;
}
.wsb-step--active .wsb-step__num  { background: var(--rust);    border-color: var(--rust);    color: #fff; }
.wsb-step--done   .wsb-step__num  { background: var(--success); border-color: var(--success); color: #fff; }
.wsb-step__label { font-size: 10px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.wsb-step--active .wsb-step__label { color: var(--rust); font-weight: 600; }
.wsb-step--done   .wsb-step__label { color: var(--success); }

/* ── Panels ── */
.wsb-panel { display: none; }
.wsb-panel--active { display: block; }

/* ── Section labels ── */
.wsb-slabel {
  display: block; font-size: 9px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}

/* ── Form fields ── */
.wsb-field { margin-bottom: 10px; }
.wsb-field:last-child { margin-bottom: 0; }
.wsb-field label {
  display: block; font-size: 9px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.wsb-field input[type=text],
.wsb-field input[type=email],
.wsb-field input[type=tel],
.wsb-field select {
  width: 100%; padding: 9px 12px;
  border: 1px solid #ddd8d0 !important; border-radius: 4px !important;
  font-family: 'Jost', sans-serif !important; font-size: 13px !important;
  color: #1a2420 !important;
  background: #FAFAF8 !important;
  outline: none !important; transition: border-color .2s;
  box-sizing: border-box !important;
  -webkit-text-fill-color: #1a2420 !important;
}
.wsb-field input:focus,
.wsb-field select:focus {
  border-color: #C4572A !important;
  background: #fff !important;
  -webkit-text-fill-color: #1a2420 !important;
}
.wsb-field input::placeholder { color: #bcc5c0 !important; opacity: 1; }
.wsb-field input::-webkit-input-placeholder { color: #bcc5c0 !important; -webkit-text-fill-color: #bcc5c0 !important; }
.wsb-field input::-moz-placeholder { color: #bcc5c0 !important; opacity: 1; }
.wsb-field input:-ms-input-placeholder { color: #bcc5c0 !important; }

/* ── Buttons — use <a role=button> to bypass Elementor/form plugin interception ── */
.wsb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; cursor: pointer; user-select: none;
  -webkit-user-select: none;
}
.wsb-btn {
  padding: 9px 20px; border: none; border-radius: 20px;
  font-family: 'Jost', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  cursor: pointer; transition: all .2s;
}
.wsb-btn--primary { background: var(--rust); color: #fff; }
.wsb-btn--primary:hover { background: var(--rust-d); }
.wsb-btn--primary:disabled { background: #ccc; cursor: not-allowed; }
.wsb-btn--back {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border); border-radius: 20px;
}
.wsb-btn--back:hover { border-color: var(--muted); color: var(--text); }

.wsb-actions {
  display: flex; gap: 8px;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border);
}
.wsb-actions--right {
  justify-content: flex-end; border-top: none; padding-top: 2px; margin-top: 8px;
}

/* ── Calendar ── */
.wsb-cal {
  border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; margin-bottom: 14px;
}
.wsb-cal__nav {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 8px;
}
.wsb-cal__month { font-weight: 600; font-size: 12px; color: var(--text); }
.wsb-cal__arrow {
  background: var(--rust); border: none; border-radius: 20px;
  width: 32px; height: 22px;
  cursor: pointer; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; color: #fff; line-height: 1;
}
.wsb-cal__arrow:hover { background: var(--rust-d); }

/* Grid: fixed 32px rows — no aspect-ratio bloat */
.wsb-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: 32px;
  gap: 1px;
}
.wsb-cal__head {
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted);
  height: 22px;
}
.wsb-cal__day {
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: default; transition: all .12s;
  width: 30px; height: 30px; margin: auto;
}
.wsb-cal__day--available    { cursor: pointer; color: var(--text); }
.wsb-cal__day--available:hover { border-color: var(--rust); color: var(--rust); }
.wsb-cal__day--selected     { background: var(--rust) !important; color: #fff !important; border-color: var(--rust) !important; }
.wsb-cal__day--today        { font-weight: 700; }
.wsb-cal__day--disabled     { color: #e0e0e0; }
.wsb-cal__day--unavailable  { color: #d8d8d8; text-decoration: line-through; font-size: 10px; }
.wsb-cal__day--empty        { pointer-events: none; }

/* ── Time slots ── */
.wsb-slots {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 5px; margin-top: 8px;
}
.wsb-slot {
  padding: 7px 4px; text-align: center;
  border: 1px solid var(--border); border-radius: 4px;
  cursor: pointer; font-size: 12px; font-weight: 500;
  background: var(--warm); transition: all .15s;
}
.wsb-slot:hover:not(.wsb-slot--full):not(.wsb-slot--selected) {
  border-color: var(--rust); color: var(--rust); background: #fff;
}
.wsb-slot--selected { background: var(--rust); color: #fff; border-color: var(--rust); }
.wsb-slot--full { background: #f5f5f5; color: #bbb; cursor: not-allowed; text-decoration: line-through; font-size: 10px; }

/* ── Summary ── */
.wsb-summary {
  background: var(--cream); border-radius: 6px;
  padding: 12px 16px; margin-bottom: 14px;
}
.wsb-sumrow {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border);
}
.wsb-sumrow:last-child { border-bottom: none; }
.wsb-sumkey { font-size: 10px; color: var(--muted); font-weight: 500; }
.wsb-sumval { font-size: 12px; font-weight: 600; text-align: right; }

/* ── Success screen ── */
.wsb-success { text-align: center; padding: 8px 0 4px; }
.wsb-success__icon { font-size: 38px; margin-bottom: 10px; }
.wsb-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px; font-weight: 400; margin: 0 0 8px;
}
.wsb-success p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 0; }
.wsb-success .wsb-ref { color: var(--rust); font-weight: 700; }

/* ── Error ── */
.wsb-error {
  background: #fef0f0; border-left: 3px solid #c0392b;
  padding: 8px 12px; font-size: 12px; color: #c0392b;
  border-radius: 0 4px 4px 0; margin-bottom: 12px; display: none;
}

/* ── Loading ── */
.wsb-loader {
  text-align: center; padding: 12px;
  color: var(--muted); font-size: 12px; display: none;
}
.wsb-loader::after {
  content: '';
  display: inline-block; width: 12px; height: 12px;
  border: 2px solid var(--border); border-top-color: var(--rust);
  border-radius: 50%; animation: wsb-spin .7s linear infinite;
  margin-left: 6px; vertical-align: middle;
}
@keyframes wsb-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 520px) {
  .wsb-widget { border-radius: 0; }
  .wsb-widget__body { padding: 14px 14px; }
  .wsb-widget__header { padding: 14px 16px; }
  .wsb-slots { grid-template-columns: repeat(3, 1fr); }
  .wsb-step__label { display: none; }
  .wsb-widget__header h2 { font-size: 19px; }
  .wsb-cal__grid { grid-auto-rows: 28px; }
  .wsb-cal__day { width: 26px; height: 26px; }
}
