/* Independence Hill Tour Scheduler. Everything is scoped under .ihts so the theme (Divi) is untouched. */

.ihts {
  --ihts-green: #1b8f49;
  --ihts-forest: #126434;
  --ihts-deep: #0d4825;
  --ihts-tint: #eef2e8;
  --ihts-cream: #f5efe4;
  --ihts-line: #e0d8c5;
  --ihts-text: #2d2d2d;
  --ihts-muted: #6b7280;
  --ihts-teal: #1e7bbe;
  --ihts-error: #b42318;
  --ihts-serif: "Cormorant Garamond", Georgia, serif;
  --ihts-head: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --ihts-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  max-width: 920px;
  margin: 0 auto;
  font-family: var(--ihts-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ihts-text);
  text-align: left;
}
.ihts *, .ihts *::before, .ihts *::after { box-sizing: border-box; }
.ihts p { margin: 0; padding: 0; }
.ihts button, .ihts input, .ihts select, .ihts textarea { font: inherit; color: inherit; margin: 0; letter-spacing: normal; text-transform: none; }
.ihts button { cursor: pointer; background: none; border: 0; padding: 0; box-shadow: none; }
.ihts button:disabled { cursor: default; }
.ihts svg { width: 18px; height: 18px; display: block; }
.ihts a { color: var(--ihts-forest); text-decoration: underline; text-underline-offset: 2px; }
.ihts :focus-visible { outline: 2px solid var(--ihts-teal); outline-offset: 2px; }

.ihts__card {
  background: #fff;
  border: 1px solid var(--ihts-line);
  border-top: 4px solid var(--ihts-green);
  border-radius: 2px;
  box-shadow: 0 10px 40px rgba(13, 72, 37, 0.08);
}

/* Header */
.ihts__head { padding: 40px 40px 8px; text-align: center; }
.ihts__eyebrow {
  font-family: var(--ihts-head);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ihts-green);
}
.ihts .ihts__eyebrow--sm { font-size: 11px; letter-spacing: 0.22em; }
.ihts .ihts__title {
  font-family: var(--ihts-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  color: var(--ihts-deep);
  margin: 8px 0 10px;
  padding: 0;
}
.ihts__title:focus { outline: none; }
.ihts__sub { color: var(--ihts-muted); max-width: 520px; margin: 0 auto !important; }

/* Step indicator */
.ihts__steps {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 24px 40px 0 !important;
  padding: 0 0 20px !important;
  border-bottom: 1px solid var(--ihts-line);
}
.ihts__steps li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--ihts-head); font-weight: 600; font-size: 13px;
  color: #9ca3af; margin: 0; padding: 0; list-style: none;
}
.ihts__steps li span {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid currentColor; font-size: 12px;
}
.ihts__steps li span svg { width: 14px; height: 14px; }
.ihts__steps li.is-current { color: var(--ihts-deep); }
.ihts__steps li.is-current span { background: var(--ihts-green); border-color: var(--ihts-green); color: #fff; }
.ihts__steps li.is-done { color: var(--ihts-green); }

.ihts__body { padding: 32px 40px 36px; }

/* Step 1: calendar + times */
.ihts__pick { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }

.ihts__cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ihts__month { font-family: var(--ihts-head); font-weight: 600; font-size: 17px; color: var(--ihts-deep); }
.ihts .ihts__icon-btn {
  width: 38px; height: 38px; border-radius: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ihts-deep); border: 1px solid var(--ihts-line); background: #fff;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ihts .ihts__icon-btn:hover:not(:disabled) { background: var(--ihts-tint); border-color: var(--ihts-green); }
.ihts .ihts__icon-btn:disabled { opacity: 0.35; }

.ihts__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ihts__wd {
  text-align: center; font-family: var(--ihts-head); font-weight: 600; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ihts-muted); padding: 6px 0;
}
.ihts .ihts__day {
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: #c4c0b8;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease;
}
.ihts .ihts__day.is-open { color: var(--ihts-deep); font-weight: 600; background: var(--ihts-tint); }
.ihts .ihts__day.is-open::after {
  content: ""; position: absolute; bottom: 6px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--ihts-green);
}
.ihts .ihts__day.is-open:hover { background: #dde7d3; }
.ihts .ihts__day.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1.5px var(--ihts-line); }
.ihts .ihts__day.is-selected { background: var(--ihts-green); color: #fff; }
.ihts .ihts__day.is-selected::after { background: #fff; }

.ihts__times { border-left: 1px solid var(--ihts-line); padding-left: 40px; display: flex; flex-direction: column; }
.ihts__times-title { font-family: var(--ihts-serif); font-size: 26px; font-weight: 500; color: var(--ihts-deep); line-height: 1.2; }
.ihts__tz { font-size: 13px; margin: 2px 0 16px !important; }
.ihts__slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.ihts .ihts__slot {
  padding: 12px 8px; border: 1px solid var(--ihts-line); border-radius: 2px; background: #fff;
  font-family: var(--ihts-head); font-weight: 600; font-size: 15px; color: var(--ihts-deep); text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.ihts .ihts__slot:hover { border-color: var(--ihts-green); background: var(--ihts-tint); }
.ihts .ihts__slot.is-selected { background: var(--ihts-deep); border-color: var(--ihts-deep); color: #fff; }

/* Step 1a: what to tour */
.ihts__what { display: flex; flex-direction: column; gap: 18px; }
.ihts__what-title { font-family: var(--ihts-serif); font-size: 28px; font-weight: 500; color: var(--ihts-deep); text-align: center; }
.ihts__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ihts .ihts__choice {
  display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
  padding: 20px 22px; border: 1px solid var(--ihts-line); border-radius: 2px; background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ihts .ihts__choice:hover { border-color: var(--ihts-green); background: var(--ihts-tint); }
.ihts__choice-name { font-family: var(--ihts-head); font-weight: 700; font-size: 17px; color: var(--ihts-deep); }
.ihts__choice-note { font-size: 14px; color: var(--ihts-forest); font-weight: 600; }
.ihts__choice-len { font-size: 14px; color: var(--ihts-muted); }
.ihts .ihts__choice:last-child:nth-child(odd) { grid-column: 1 / -1; align-items: center; text-align: center; }
.ihts__touring {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 0 18px; margin-bottom: 22px; border-bottom: 1px solid var(--ihts-line);
}
.ihts__touring p { font-family: var(--ihts-head); font-weight: 600; color: var(--ihts-deep); display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ihts__summary-what { font-size: 15px; color: var(--ihts-forest); font-weight: 600; margin-top: 2px !important; }

/* Buttons */
.ihts .ihts__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: 2px;
  font-family: var(--ihts-head); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  text-decoration: none; line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ihts .ihts__btn--primary { background: var(--ihts-green); color: #fff; box-shadow: 0 4px 14px rgba(27, 143, 73, 0.3); }
.ihts .ihts__btn--primary:hover:not(:disabled) { background: var(--ihts-forest); transform: translateY(-1px); }
.ihts .ihts__btn--primary:disabled { background: #b9c9b4; box-shadow: none; }
.ihts .ihts__btn--outline { border: 1.5px solid var(--ihts-deep); color: var(--ihts-deep); background: #fff; }
.ihts .ihts__btn--outline:hover { background: var(--ihts-deep); color: #fff; }
.ihts .ihts__continue { width: 100%; margin-top: auto; }
.ihts .ihts__link { color: var(--ihts-forest); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Step 2: details */
.ihts__summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--ihts-tint); border-left: 3px solid var(--ihts-green);
  padding: 14px 20px; margin-bottom: 28px;
}
.ihts__summary-when { font-family: var(--ihts-serif); font-size: 22px; font-weight: 600; color: var(--ihts-deep); line-height: 1.25; }

.ihts__form { display: flex; flex-direction: column; gap: 18px; }
.ihts__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ihts__field label {
  display: block; margin-bottom: 6px;
  font-family: var(--ihts-head); font-weight: 600; font-size: 14px; color: var(--ihts-deep);
}
.ihts__opt { font-weight: 500; color: var(--ihts-muted); font-size: 13px; }
.ihts .ihts__field input, .ihts .ihts__field select, .ihts .ihts__field textarea {
  width: 100%; padding: 13px 14px; border: 1px solid #d6cfbd; border-radius: 2px;
  background: #fff; font-size: 16px; line-height: 1.4; color: var(--ihts-text); box-shadow: none; height: auto;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ihts .ihts__field select {
  -webkit-appearance: none; appearance: none;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230d4825' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 14px;
  cursor: pointer;
}
.ihts .ihts__field textarea { resize: vertical; min-height: 92px; }
.ihts .ihts__field input:focus, .ihts .ihts__field select:focus, .ihts .ihts__field textarea:focus {
  outline: none; border-color: var(--ihts-green); box-shadow: 0 0 0 3px rgba(27, 143, 73, 0.15);
}
.ihts .ihts__field.has-error input { border-color: var(--ihts-error); }
.ihts__err { color: var(--ihts-error); font-size: 13px; margin-top: 5px !important; }


.ihts__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ihts .ihts__submit { width: 100%; padding: 18px 28px; font-size: 15px; }
.ihts__fine { font-size: 13px; color: var(--ihts-muted); text-align: center; }

/* Step 3: confirmation */
.ihts__done { text-align: center; max-width: 520px; margin: 0 auto; }
.ihts__done-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ihts-green); color: #fff; display: flex; align-items: center; justify-content: center;
}
.ihts__done-icon svg { width: 30px; height: 30px; }
.ihts .ihts__done-title { font-family: var(--ihts-serif); font-weight: 500; font-size: 34px; color: var(--ihts-deep); margin: 0 0 8px; padding: 0; line-height: 1.2; }
.ihts__done-when { font-family: var(--ihts-head); font-weight: 600; font-size: 18px; color: var(--ihts-forest); margin-bottom: 14px !important; line-height: 1.5; }
.ihts__done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 24px 0 28px; }
.ihts__done-actions .ihts__btn { padding: 13px 20px; font-size: 12px; }
.ihts__done-where { border-top: 1px solid var(--ihts-line); padding-top: 22px; display: grid; gap: 6px; }

/* Shared */
.ihts__muted { color: var(--ihts-muted); }
.ihts__alert {
  background: #fdf4e7; border-left: 3px solid #c9a227; color: #5b4a12;
  padding: 12px 16px; margin-bottom: 20px; font-size: 15px;
}
.ihts__overlay {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(13, 72, 37, 0.45); animation: ihts-fade .2s ease-out;
}
.ihts .ihts__popup {
  background: #fff; border-top: 4px solid var(--ihts-green); border-radius: 6px; max-width: 420px; width: 100%;
  padding: 30px 28px 24px; text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25); animation: ihts-pop .25s ease-out;
}
.ihts .ihts__popup-title { font-family: var(--ihts-serif); font-weight: 600; font-size: 28px; line-height: 1.15; color: var(--ihts-deep); margin: 6px 0 12px; }
.ihts .ihts__popup p { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.ihts .ihts__popup .ihts__btn { width: 100%; }
.ihts .ihts__popup .ihts__popup-call { margin: 16px 0 0; font-size: 14px; color: var(--ihts-muted); }
@keyframes ihts-fade { from { opacity: 0; } }
@keyframes ihts-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.ihts__loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 64px 0; color: var(--ihts-muted); }
.ihts__spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--ihts-tint); border-top-color: var(--ihts-green);
  animation: ihts-spin 0.8s linear infinite; display: inline-block;
}
.ihts__spinner--light { border-color: rgba(255, 255, 255, 0.35); border-top-color: #fff; }
@keyframes ihts-spin { to { transform: rotate(360deg); } }

.ihts__foot {
  border-top: 1px solid var(--ihts-line); background: var(--ihts-cream);
  padding: 14px 24px; text-align: center; font-size: 15px; color: var(--ihts-muted);
}
.ihts__foot a { font-weight: 600; white-space: nowrap; }

/* Mobile */
@media (max-width: 760px) {
  .ihts__head { padding: 28px 20px 4px; }
  .ihts .ihts__title { font-size: 32px; }
  .ihts__steps { margin: 18px 16px 0 !important; gap: 14px; padding-bottom: 16px !important; }
  .ihts__steps li { font-size: 12px; gap: 6px; }
  .ihts__body { padding: 22px 16px 26px; }
  .ihts__pick { grid-template-columns: 1fr; gap: 24px; }
  .ihts__times { border-left: 0; padding-left: 0; border-top: 1px solid var(--ihts-line); padding-top: 22px; }
  .ihts__slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ihts__wd span { display: none; }
  .ihts__row { grid-template-columns: 1fr; }
  .ihts__choices { grid-template-columns: 1fr; }
  .ihts__summary { padding: 12px 16px; }
  .ihts__summary-when { font-size: 19px; }
}
@media (max-width: 380px) {
  .ihts__slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ihts__steps li { font-size: 0; }
  .ihts__steps li span { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ihts *, .ihts *::before, .ihts *::after { transition: none !important; animation-duration: 0.01ms !important; }
}
