:root {
  --ink: #121617;
  --charcoal: #1e2425;
  --charcoal-soft: #2a3031;
  --paper: #fbfcfc;
  --mist: #eef6f6;
  --line: #d7e5e5;
  --cyan: #16d7df;
  --cyan-dark: #078c96;
  --teal: #0c6f73;
  --sage: #dfeadf;
  --warm: #f3efe7;
  --text: #253033;
  --muted: #637173;
  --shadow: 0 18px 40px rgba(17, 28, 30, 0.13);
  --radius: 8px;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: var(--cyan);
  border-radius: var(--radius);
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin-inline: auto;
}

.narrow {
  max-width: 820px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 22, 23, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: min(270px, 58vw);
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.9rem;
  color: #f7fbfb;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan);
  outline: none;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0.65rem 0.85rem;
  color: #f7fbfb;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
}

.hero {
  color: #f7fbfb;
  background:
    radial-gradient(circle at 78% 18%, rgba(22, 215, 223, 0.2), transparent 28rem),
    radial-gradient(circle at 16% 72%, rgba(12, 111, 115, 0.32), transparent 24rem),
    linear-gradient(135deg, #121617 0%, #163739 52%, #1e2425 100%);
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.82rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.08;
}

.hero h1,
.section-dark h2,
.cta-band h2 {
  color: #ffffff;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.7rem);
  max-width: 12ch;
}

.page-hero h1 {
  max-width: 13ch;
}

h2 {
  font-size: clamp(1.8rem, 3.6vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  max-width: 66ch;
  margin: 1.2rem 0 0;
  color: inherit;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.82rem 1.1rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--ink);
  background: var(--cyan);
  box-shadow: 0 10px 22px rgba(22, 215, 223, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #49eef4;
}

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--cyan);
}

.button-danger {
  color: #ffffff;
  background: #b42318;
  border-color: #7a1b13;
}

.button-danger:hover,
.button-danger:focus-visible {
  background: #d92d20;
}

.button-small {
  min-height: 40px;
  padding: 0.62rem 0.85rem;
  font-size: 0.92rem;
}

.hero-panel,
.values-panel,
.contact-form,
.contact-details {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  color: #ffffff;
  background: rgba(18, 22, 23, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-panel img {
  width: 140px;
  margin-bottom: 1.2rem;
}

.hero-panel ul,
.services-grid ul,
.values-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.hero-panel li,
.services-grid li,
.values-panel li {
  margin: 0.45rem 0;
}

.section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.section-muted {
  background: var(--mist);
}

.section-dark {
  color: #f7fbfb;
  background: var(--charcoal);
}

.split,
.feature-row,
.about-grid,
.contact-grid,
.process {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.section-dark span,
.section-dark p {
  color: #d8e4e5;
}

.service-preview,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.service-preview article,
.services-grid article {
  min-height: 100%;
  padding: 1.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-preview article:nth-child(2),
.services-grid article:nth-child(2) {
  background: var(--warm);
}

.service-preview article:nth-child(3),
.services-grid article:nth-child(3) {
  background: var(--sage);
}

.service-preview p,
.services-grid p {
  margin: 0.85rem 0 0;
}

.service-image {
  width: calc(100% + 2.7rem);
  max-width: none;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  margin: -1.35rem -1.35rem 1.15rem;
}

.booking-service-note {
  width: 100%;
  margin: 1.5rem 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.booking-service-note a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.booking-service-card {
  min-height: 100%;
  display: block;
  padding: 1.35rem;
  color: inherit;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-service-card:nth-child(2) {
  background: var(--warm);
}

.booking-service-card:nth-child(3) {
  background: var(--sage);
}

.booking-service-card:hover,
.booking-service-card:focus-visible {
  border-color: var(--cyan-dark);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.booking-service-card p {
  margin: 0.85rem 0 0;
}

.booking-service-card-unavailable img {
  filter: grayscale(1);
}

.booking-service-card-unavailable {
  cursor: default;
}

.booking-service-card-unavailable:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}

.booking-service-card-unavailable h2::after {
  content: "Coming soon";
  display: block;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0.25rem 0.45rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.2;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-list div {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.feature-list strong,
.feature-list span {
  display: block;
}

.feature-list strong {
  color: #ffffff;
  font-size: 1.1rem;
}

.page-hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  color: #f7fbfb;
  background: linear-gradient(120deg, var(--charcoal), #11383b);
}

.page-hero h1,
.page-hero .lead {
  color: #ffffff;
}

.about-grid {
  align-items: center;
}

.about-grid p {
  margin: 1rem 0 0;
}

.values-panel {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--charcoal);
  color: #ffffff;
}

.values-panel h2 {
  color: #ffffff;
  font-size: 1.5rem;
}

.values-panel img {
  width: 96px;
  margin-bottom: 1rem;
}

.process ol {
  margin: 0;
  padding-left: 1.3rem;
}

.process li {
  margin: 0 0 1rem;
  padding-left: 0.35rem;
}

.cta-band {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: var(--teal);
  color: #ffffff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-inner p {
  margin: 0.5rem 0 0;
  color: #e6f7f7;
}

.contact-grid {
  align-items: stretch;
}

.contact-details,
.contact-form {
  padding: clamp(1.35rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--line);
}

.app-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
}

.admin-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.admin-page-actions {
  display: flex;
  margin-bottom: 1rem;
}

.admin-page-actions .button-secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--cyan-dark);
}

.admin-page-actions .button-secondary:hover,
.admin-page-actions .button-secondary:focus-visible {
  background: var(--mist);
}

.admin-page-actions-bottom {
  margin: 1rem 0 0;
}

.admin-price-panel {
  margin-top: 1.5rem;
}

.admin-service-panel-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-service-panel-header h2 {
  margin: 0;
}

.admin-service-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.admin-service-status .inline-form {
  margin-top: 0;
}

.contact-details dl {
  margin: 1.5rem 0 0;
}

.contact-details div {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}

.contact-details dt {
  color: var(--muted);
  font-weight: 800;
}

.contact-details dd {
  margin: 0.25rem 0 0;
}

.contact-details a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stack-form,
.filter-form {
  display: grid;
  gap: 1rem;
}

.filter-form {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.5fr) auto;
  align-items: end;
  margin-bottom: 1.5rem;
}

.booking-filter .booking-date-picker {
  grid-column: 1 / -1;
}

.carpet-service-options {
  display: grid;
  gap: 0.65rem;
  max-width: 34rem;
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.carpet-service-options legend {
  padding: 0 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.carpet-service-option {
  display: grid;
  grid-template-columns: 3rem 1.25rem minmax(0, 1fr);
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
}

.carpet-service-quantity {
  width: 3rem;
  min-height: 40px;
  padding: 0.45rem;
  text-align: center;
}

.carpet-service-quantity:disabled {
  color: var(--muted);
  background: var(--paper);
}

.carpet-estimate-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 17rem));
  gap: 1rem;
  margin: -0.5rem 0 1.5rem;
}

.carpet-finish-summary {
  grid-template-columns: minmax(0, 17rem);
  margin: 0 0 1rem;
}

.carpet-estimate-field {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.carpet-estimate-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.carpet-estimate-field input {
  min-height: 58px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--cyan-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(22, 215, 223, 0.18);
  font-size: 1.2rem;
  font-weight: 900;
}

.carpet-estimate-tooltip-text {
  width: min(26rem, calc(100vw - 2rem));
  white-space: pre-line;
}

.booking-date-label {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-weight: 800;
}

.booking-calendar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  max-width: 34rem;
}

.booking-calendar-months {
  display: grid;
}

.booking-calendar-month {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-calendar-month[hidden] {
  display: none;
}

.booking-calendar-header {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: 0.65rem;
}

.booking-calendar-header h2 {
  margin: 0;
  font-size: 1.05rem;
  text-align: center;
}

.booking-calendar-arrow {
  width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-calendar-arrow:hover,
.booking-calendar-arrow:focus-visible {
  background: #ffffff;
  border-color: var(--cyan-dark);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-1px);
}

.booking-calendar-arrow.is-disabled,
.booking-calendar-arrow:disabled {
  color: color-mix(in srgb, var(--muted) 65%, #ffffff);
  background: #f4f1eb;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.booking-calendar-weekdays,
.booking-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.booking-calendar-weekdays {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.booking-calendar-day,
.booking-calendar-empty {
  min-width: 0;
  min-height: 3.2rem;
}

.booking-calendar-day {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  padding: 0.35rem 0.2rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.booking-calendar-day small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.booking-calendar-day:hover,
.booking-calendar-day:focus-visible {
  background: #ffffff;
  border-color: var(--cyan-dark);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-1px);
}

.booking-calendar-day.has-bookings {
  color: #5f4600;
  background: #fff3bf;
  border-color: #f0cf61;
}

.booking-calendar-day.has-bookings small {
  color: #82630a;
}

.booking-calendar-day.is-selected {
  color: #ffffff;
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
}

.booking-calendar-day.is-selected small {
  color: rgba(255, 255, 255, 0.78);
}

.booking-calendar-day.is-too-large,
.booking-calendar-day.is-too-large:disabled {
  color: #7a1b13;
  background: #fde2df;
  border-color: #f3a19a;
}

.booking-calendar-day.is-too-large small,
.booking-calendar-day.is-too-large:disabled small {
  color: #9f2f25;
}

.booking-calendar-day:disabled {
  color: color-mix(in srgb, var(--muted) 75%, #ffffff);
  background: #f4f1eb;
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.booking-calendar-day:disabled small {
  color: color-mix(in srgb, var(--muted) 65%, #ffffff);
}

.booking-calendar-day.is-too-large:disabled {
  color: #7a1b13;
  background: #fde2df;
  border-color: #f3a19a;
  opacity: 0.9;
}

.booking-calendar-day.is-too-large:disabled small {
  color: #9f2f25;
}

.calendar-fit-message {
  max-width: 34rem;
  margin: 0.85rem 0 0;
  padding: 0.85rem 1rem;
  color: #7a1b13;
  background: #fde2df;
  border: 1px solid #f3a19a;
  border-radius: var(--radius);
  font-weight: 800;
}

.booking-calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.booking-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.calendar-legend-swatch {
  width: 0.95rem;
  height: 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

.calendar-legend-available {
  background: var(--mist);
}

.calendar-legend-booked {
  background: #fff3bf;
  border-color: #f0cf61;
}

.calendar-legend-unavailable {
  background: #f4f1eb;
}

.calendar-legend-too-large {
  background: #fde2df;
  border-color: #f3a19a;
}

.field-full,
.form-note,
.contact-form button {
  grid-column: 1 / -1;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.help-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.help-icon {
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--cyan-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.help-icon:focus-visible {
  outline: 3px solid rgba(22, 215, 223, 0.22);
  outline-offset: 2px;
}

.help-tooltip-text {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 3;
  width: min(18rem, calc(100vw - 2rem));
  padding: 0.7rem 0.8rem;
  color: #ffffff;
  background: var(--charcoal);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.25rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.help-tooltip-text::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  border: 0.45rem solid transparent;
  border-top-color: var(--charcoal);
  transform: translateX(-50%);
}

.help-tooltip:hover .help-tooltip-text,
.help-icon:focus + .help-tooltip-text {
  opacity: 1;
  transform: translate(-50%, 0);
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #b9cccc;
  border-radius: var(--radius);
  font: inherit;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan-dark);
  outline: 3px solid rgba(22, 215, 223, 0.22);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.terms-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.terms-consent input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  padding: 0;
  margin-top: 0.18rem;
  accent-color: var(--cyan-dark);
}

.checkbox-help-label {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0;
  color: inherit;
  font: inherit;
}

.furniture-help-option {
  align-items: flex-start;
}

.booking-furniture-help-field {
  margin-top: 0.45rem;
}

.furniture-help-tooltip {
  margin-top: 0.03rem;
}

.furniture-help-message {
  margin: 0.5rem 0 0 1.85rem;
}

.furniture-help-message[hidden] {
  display: none;
}

.terms-consent a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.delete-account-zone {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  text-align: center;
}

.delete-account-confirmation {
  width: min(100%, 720px);
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: #fff4f1;
  border: 1px solid #f0c4bc;
  border-radius: var(--radius);
  text-align: left;
}

.delete-account-confirmation[hidden] {
  display: none;
}

.delete-account-confirmation h2 {
  font-size: 1.35rem;
}

.delete-account-confirmation p {
  margin: 0;
}

.login-form-note,
.account-form-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.15rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 700;
}

.login-form-note a,
.account-form-note a,
.booking-message a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.62rem 0.9rem;
  color: var(--ink);
  background: var(--cyan);
  border: 2px solid var(--cyan-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 18px rgba(22, 215, 223, 0.16);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.login-form-note a:hover,
.login-form-note a:focus-visible,
.account-form-note a:hover,
.account-form-note a:focus-visible,
.booking-message a:hover,
.booking-message a:focus-visible {
  background: #49eef4;
}

.success-message {
  color: #e6f7f7;
}

.error-message {
  color: #ffe5e0;
}

.app-panel .success-message {
  color: var(--teal);
  font-weight: 700;
}

.app-panel .error-message {
  color: #9b2c1f;
  font-weight: 700;
}

.booking-message {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  margin: 0 0 1rem;
  border-radius: var(--radius);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.35;
}

.app-panel .booking-message.success-message {
  color: var(--teal);
  background: #e8fbf8;
  border: 1px solid rgba(12, 111, 115, 0.22);
}

.app-panel .booking-message.error-message {
  color: #8e2419;
  background: #fff4f1;
  border: 1px solid #f0c4bc;
}

.alert {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  background: #fff4f1;
  border: 1px solid #f0c4bc;
  border-radius: var(--radius);
}

.alert p {
  margin: 0.25rem 0;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.slot-option {
  display: grid;
  gap: 0.2rem;
  min-height: 92px;
  padding: 0.9rem;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.slot-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.slot-option:has(input:checked) {
  background: var(--cyan);
  border-color: var(--cyan-dark);
}

.slot-option strong,
.slot-option span {
  display: block;
}

.booking-list {
  display: grid;
  gap: 0.85rem;
}

.booking-list article {
  padding: 1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.booking-list strong,
.booking-list span {
  display: block;
}

.panel-action {
  width: 100%;
  margin-top: 1rem;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.85rem;
}

.inline-form select {
  width: min(100%, 180px);
}

.rejection-reason-field {
  display: grid;
  gap: 0.35rem;
  flex: 1 1 260px;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.booking-progress-field {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 1 auto;
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.booking-progress-field span {
  flex: 0 0 auto;
}

.rejection-reason-field[hidden],
.booking-progress-field[hidden] {
  display: none;
}

.rejection-reason-field input,
.booking-progress-field select {
  min-height: 44px;
}

.booking-progress-field select {
  background: #e8f7f8;
  border-color: #16aeb5;
  border-width: 2px;
  font-weight: 800;
}

.status-select {
  font-weight: 800;
  border-width: 2px;
}

.status-select.status-accepted {
  color: #ffffff;
  background: #137333;
  border-color: #0f5a28;
}

.status-select.status-pending {
  color: #2a2100;
  background: #ffd966;
  border-color: #c99700;
}

.status-select.status-rejected {
  color: #ffffff;
  background: #b42318;
  border-color: #7a1b13;
}

.booking-status {
  display: inline;
  font-weight: 800;
}

.booking-status.status-text-accepted {
  color: #137333;
}

.booking-status.status-text-pending {
  color: #9a6a00;
}

.booking-status.status-text-rejected {
  color: #b42318;
}

.inline-form .button {
  min-width: 112px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.data-table th,
.data-table td {
  padding: 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--ink);
  background: var(--mist);
}

.pricing-table th:first-child {
  width: 240px;
}

.pricing-table th[scope="row"] {
  width: 240px;
}

.pricing-table th:nth-child(2),
.pricing-table td:nth-child(2) {
  width: 130px;
  min-width: 130px;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  width: 190px;
}

.pricing-table tr.is-inactive-row {
  opacity: 0.72;
}

.pricing-actions {
  min-width: 190px;
}

.pricing-action-group {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: flex-start;
}

.pricing-action-group .button {
  margin: 0;
}

.sub-service-toggle-action {
  min-width: 90px;
}

.sub-service-toggle-action.is-disable-action {
  color: #7a1b13;
  background: #fff7f5;
  border-color: #b42318;
}

.sub-service-toggle-action.is-disable-action:hover,
.sub-service-toggle-action.is-disable-action:focus-visible {
  color: #ffffff;
  background: #b42318;
}

.sub-service-toggle-action.is-enable-action {
  color: var(--ink);
  background: var(--cyan);
  border-color: #0a8790;
  box-shadow: 0 10px 22px rgba(22, 215, 223, 0.18);
}

.sub-service-toggle-action.is-enable-action:hover,
.sub-service-toggle-action.is-enable-action:focus-visible {
  background: #49eef4;
}

.delete-sub-service-action {
  min-width: 44px;
  padding-inline: 0.8rem;
}

.service-name-input {
  display: block;
  width: min(100%, 260px);
  margin: 0;
}

.service-name-input input {
  min-height: 44px;
}

.time-input {
  display: block;
  width: min(100%, 104px);
  margin: 0;
}

.time-input input {
  min-height: 44px;
}

.price-input {
  display: flex;
  align-items: center;
  width: min(100%, 180px);
  margin: 0;
  background: var(--paper);
  border: 1px solid #b9cccc;
  border-radius: var(--radius);
  overflow: hidden;
}

.price-input span {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 0.75rem;
  color: var(--ink);
  background: var(--mist);
  border-right: 1px solid #b9cccc;
  font-weight: 800;
}

.price-input input {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  background: #ffffff;
  border: 0;
  border-radius: 0;
}

.price-input:focus-within {
  border-color: var(--cyan-dark);
  outline: 3px solid rgba(22, 215, 223, 0.22);
}

.price-input input:focus {
  outline: none;
}

.schedule-table {
  min-width: 560px;
}

.schedule-enabled-option {
  margin: 0;
}

.schedule-time-input {
  max-width: 8rem;
}

.add-row-action {
  width: min(100%, 220px);
  min-height: 52px;
  display: flex;
  margin: 1.25rem auto 0;
  color: var(--ink);
  background: var(--cyan);
  border-color: var(--cyan-dark);
  box-shadow: 0 10px 22px rgba(22, 215, 223, 0.22);
}

.add-row-action:hover,
.add-row-action:focus-visible {
  background: #49eef4;
  border-color: var(--ink);
}

.site-footer {
  color: #d8e4e5;
  background: var(--ink);
}

.footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem 1.2rem;
}

.policy-content {
  color: var(--text);
}

.policy-content h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.policy-content p,
.policy-content address,
.policy-content ul {
  margin: 1rem 0 0;
}

.policy-content address {
  font-style: normal;
}

.policy-content a {
  color: var(--cyan-dark);
  font-weight: 800;
}

.policy-updated {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 0.7rem 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.2rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }

  .hero-grid,
  .split,
  .feature-row,
  .about-grid,
  .contact-grid,
  .app-grid,
  .admin-hub-grid,
  .process {
    grid-template-columns: 1fr;
  }

  .carpet-estimate-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    max-width: 460px;
  }

  .service-preview,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .filter-form,
  .slot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(calc(100% - 1.25rem), var(--max));
  }

  .help-tooltip-text {
    left: auto;
    right: 0;
    transform: translate(0, 0.25rem);
  }

  .help-tooltip-text::after {
    left: auto;
    right: 0.35rem;
    transform: none;
  }

  .help-tooltip:hover .help-tooltip-text,
  .help-icon:focus + .help-tooltip-text {
    transform: translate(0, 0);
  }

  .brand {
    width: min(220px, 62vw);
  }

  .actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 2.25rem;
  }
}
