/* Hi-Res Homes — inline preferred-date calendar on #contact (Book a shoot). */
#contact fieldset.hrh-bookcal-fieldset > div.inline-flex {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#contact fieldset.hrh-bookcal-fieldset input[type="date"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0;
}
#contact fieldset.hrh-bookcal-fieldset label:has(> input[type="date"]) {
  font-size: 0;
  line-height: 0;
  color: transparent;
  margin: 0;
}
#contact fieldset.hrh-bookcal-fieldset label:has(> input[type="date"]) > span[aria-hidden] {
  display: none;
}
#contact fieldset.hrh-bookcal-fieldset label:has(> input[type="date"]) > span[id$="-error"] {
  font-size: 0.75rem;
  line-height: 1.25;
  color: #9f1239;
  display: block;
  margin-top: 0.25rem;
}
#contact fieldset.hrh-bookcal-fieldset > div.mt-3.grid {
  display: block;
  margin-top: 0;
}
#contact fieldset.hrh-bookcal-fieldset > div.mt-3.grid:not(:has(span[id$="-error"])) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#contact fieldset.hrh-bookcal-fieldset {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

#contact .hrh-bookcal-hint {
  margin: 0.4rem 0 0;
  max-width: 26.25rem;
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: #4a4740;
}
@media (max-width: 389px) {
  #contact .hrh-bookcal-hint {
    font-size: 0.8125rem;
  }
}
html[data-theme="dark"] #contact .hrh-bookcal-hint {
  color: #c5c0b4;
}


.hrh-bookcal {
  --hrh-cal-navy: #234786;
  --hrh-cal-gold: #dda315;
  --hrh-cal-ink: #1d2f55;
  --hrh-cal-muted: #5c6474;
  --hrh-cal-line: #e4e0d6;
  --hrh-cal-bg: #fff;
  --hrh-cal-cell: #fdfcf8;
  --hrh-cal-hover: rgba(35, 71, 134, 0.08);
  --hrh-cal-range: rgba(221, 163, 21, 0.28);
  --hrh-cal-today: #dda315;
  box-sizing: border-box;
  width: 100%;
  max-width: 26.25rem; /* 420px — fill the form column, don't outgrow the fields */
  margin-top: 0.85rem;
  margin-inline: 0;
  padding: 0.85rem 0.7rem 0.8rem;
  border: 1px solid var(--hrh-cal-line);
  border-radius: 1rem;
  background: var(--hrh-cal-bg);
  color: var(--hrh-cal-ink);
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  box-shadow: 0 10px 24px -20px rgba(35, 71, 134, 0.35);
}
.hrh-bookcal *,
.hrh-bookcal *::before,
.hrh-bookcal *::after { box-sizing: border-box; }

.hrh-bookcal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  min-height: 40px;
}
.hrh-bookcal-month {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--hrh-cal-navy);
}
.hrh-bookcal-nav btn,
.hrh-bookcal-nav button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hrh-cal-line);
  border-radius: 999px;
  background: var(--hrh-cal-cell);
  color: var(--hrh-cal-navy);
  cursor: pointer;
}
.hrh-bookcal-nav button svg {
  width: 18px;
  height: 18px;
  display: block;
}
.hrh-bookcal-nav button:hover:not(:disabled) {
  background: var(--hrh-cal-hover);
}
.hrh-bookcal-nav button:focus-visible,
.hrh-bookcal-grid td:focus-visible {
  outline: 2px solid var(--hrh-cal-navy);
  outline-offset: 2px;
}
.hrh-bookcal-nav button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.hrh-bookcal-grid {
  /* Native table layout so role="row" keeps gridcell children in the a11y tree.
     Outer border-spacing is cancelled with a negative margin so gutters stay 2px
     without insetting the grid from the field edges. */
  width: calc(100% + 4px);
  margin: -2px;
  border-collapse: separate;
  border-spacing: 2px;
  table-layout: fixed;
}
.hrh-bookcal-grid tbody tr {
  height: auto;
}
.hrh-bookcal-grid th,
.hrh-bookcal-grid td {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  vertical-align: middle;
  width: 14.2857%;
}
.hrh-bookcal-grid th {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hrh-cal-muted);
  line-height: 1.6;
  height: auto;
  padding: 0.15rem 0 0.2rem;
}
.hrh-bookcal-grid td {
  appearance: none;
  position: relative;
  display: table-cell;
  text-align: center;
  vertical-align: middle;
  width: 14.2857%;
  height: auto;
  border-radius: 0.55rem;
  color: var(--hrh-cal-ink);
  font-size: 0.92rem;
  font-weight: 550;
  cursor: pointer;
  line-height: 1;
  user-select: none;
}
/* Square cells: aspect-ratio is ignored on table-cell, so a block spacer does it. */
.hrh-bookcal-grid td::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
}
.hrh-bookcal-grid .hrh-bookcal-daynum {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hrh-bookcal-grid td[data-outside="1"] {
  visibility: hidden;
  pointer-events: none;
}
.hrh-bookcal-grid td[aria-disabled="true"] {
  color: #9aa3b2;
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.hrh-bookcal-grid td:not([aria-disabled="true"]):not([data-outside="1"]):hover {
  background: var(--hrh-cal-hover);
}
.hrh-bookcal-grid td[data-today="1"]:not([data-selected="1"]):not([data-inrange="1"]) {
  box-shadow: inset 0 0 0 2px var(--hrh-cal-gold);
  color: var(--hrh-cal-navy);
  font-weight: 700;
}
.hrh-bookcal-grid td[data-inrange="1"] {
  background: var(--hrh-cal-range);
  color: var(--hrh-cal-ink);
  border-radius: 0;
}
.hrh-bookcal-grid td[data-inrange="1"][data-range-end="start"] {
  border-radius: 0.6rem 0 0 0.6rem;
}
.hrh-bookcal-grid td[data-inrange="1"][data-range-end="end"] {
  border-radius: 0 0.6rem 0.6rem 0;
}
.hrh-bookcal-grid td[data-selected="1"] {
  background: var(--hrh-cal-navy);
  color: #fff;
  font-weight: 700;
  border-radius: 0.6rem;
  z-index: 1;
}
.hrh-bookcal-grid td[data-selected="1"][data-today="1"] {
  box-shadow: inset 0 0 0 2px var(--hrh-cal-gold);
}

.hrh-bookcal-range {
  margin: 0.7rem 0 0;
  min-height: 1.4em;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hrh-cal-navy);
  line-height: 1.4;
}
.hrh-bookcal-range[data-empty="1"] {
  font-weight: 500;
  color: var(--hrh-cal-muted);
}
.hrh-bookcal-range[data-error="1"] {
  color: #9f1239;
  font-weight: 650;
}

@media (max-width: 639px) {
  .hrh-bookcal {
    padding: 0.7rem 0.3rem 0.65rem;
  }
  .hrh-bookcal-nav button {
    width: 40px;
    height: 40px;
  }
}
@media (min-width: 640px) {
  .hrh-bookcal {
    padding: 0.9rem 0.85rem 0.85rem;
  }
  .hrh-bookcal-nav {
    min-height: 44px;
  }
  .hrh-bookcal-nav button {
    width: 44px;
    height: 44px;
  }
}

html[data-theme="dark"] .hrh-bookcal {
  --hrh-cal-navy: #9eb6e0;
  --hrh-cal-gold: #dda315;
  --hrh-cal-ink: #f4f1ea;
  --hrh-cal-muted: #c5c0b4;
  --hrh-cal-line: #3a4254;
  --hrh-cal-bg: #1a2333;
  --hrh-cal-cell: #151c28;
  --hrh-cal-hover: rgba(158, 182, 224, 0.16);
  --hrh-cal-range: rgba(221, 163, 21, 0.32);
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, 0.65);
}
html[data-theme="dark"] .hrh-bookcal-month {
  color: #9eb6e0;
}
html[data-theme="dark"] .hrh-bookcal-nav button {
  background: #151c28;
  color: #9eb6e0;
  border-color: #3a4254;
}
html[data-theme="dark"] .hrh-bookcal-nav button:focus-visible,
html[data-theme="dark"] .hrh-bookcal-grid td:focus-visible {
  outline-color: #dda315;
}
html[data-theme="dark"] .hrh-bookcal-grid td[aria-disabled="true"] {
  color: #6d7686;
}
html[data-theme="dark"] .hrh-bookcal-grid td[data-selected="1"] {
  background: #234786;
  color: #fff;
}
html[data-theme="dark"] .hrh-bookcal-range {
  color: #9eb6e0;
}
html[data-theme="dark"] .hrh-bookcal-range[data-empty="1"] {
  color: #c5c0b4;
}
html[data-theme="dark"] .hrh-bookcal-range[data-error="1"],
html[data-theme="dark"] #contact fieldset.hrh-bookcal-fieldset label:has(> input[type="date"]) > span[id$="-error"] {
  color: #f0a8b4;
}

@media (prefers-reduced-motion: reduce) {
  .hrh-bookcal-nav button,
  .hrh-bookcal-grid td {
    transition: none;
  }
}
