/* =====================================================================
   HD Solutions — shared brand theme (booking + portal)
   Palette from https://hdsolutions.ca
   Typography / spacing / balance inspired by modern product sites
   (Zoom-like line spacing, weight hierarchy, and layout breathing room)
   ===================================================================== */
:root {
  --hd-primary:        #d0752a; /* brand orange  rgb(208,117,42) */
  --hd-primary-dark:   #0d0d36; /* brand navy    rgb(13,13,54)   */
  --hd-deep-blue:      #0B0F23;
  --hd-dark-blue:      #3c5060;
  --hd-accent-blue:    #5a758e;
  --hd-accent-green:   #bfdac4;
  --hd-bg:             #f5f7fb;
  --hd-white:          #ffffff;
  --hd-text:           #0d0d36;
  --hd-muted:          #5a6b85;
  --hd-border:         #e2e8f0;
  --hd-danger:         #c22a2b;
  --hd-danger-dark:    #a02121;
  --hd-success:        #218838;
  --hd-success-light:  #bfdac4;

  --hd-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --hd-lh-tight: 1.15;
  --hd-lh-body: 1.65;
  --hd-radius: 12px;
  --hd-radius-pill: 999px;
  --hd-shadow: 0 8px 28px rgba(13, 13, 54, 0.07);
}

* { box-sizing: border-box; }

body {
  font-family: var(--hd-font);
  font-weight: 400;
  font-size: 16px;
  color: var(--hd-text);
  background: var(--hd-bg);
  margin: 0;
  line-height: var(--hd-lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4, .hd-heading {
  font-family: var(--hd-font);
  font-weight: 700;
  color: var(--hd-primary-dark);
  letter-spacing: -0.03em;
  line-height: var(--hd-lh-tight);
}

h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 0.65rem; }
h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; }

a { color: var(--hd-primary); text-decoration: none; }
a:hover { color: var(--hd-primary-dark); }

/* ----- Top bar / nav ----- */
.hd-topbar {
  background: var(--hd-white);
  border-bottom: 1px solid var(--hd-border);
  box-shadow: 0 1px 0 rgba(13,13,54,.03);
}
.hd-topbar .hd-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 20px;
  flex-wrap: wrap;
}
.hd-logo { height: 48px; width: auto; display: block; }
.hd-nav-links { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; }
.hd-nav-links a {
  font-family: var(--hd-font);
  font-weight: 500;
  font-size: .92rem;
  letter-spacing: -0.01em;
  color: var(--hd-primary-dark);
  padding: 6px 2px;
}
.hd-nav-links a:hover { color: var(--hd-primary); }
.hd-user {
  font-size: .88rem;
  color: var(--hd-muted);
  background: rgba(13,13,54,.04);
  padding: 7px 12px;
  border-radius: var(--hd-radius-pill);
  font-weight: 500;
}

/* ----- Layout ----- */
.hd-wrap { max-width: 720px; margin: 36px auto; padding: 0 20px; }
.hd-wrap-wide { max-width: 1120px; margin: 36px auto; padding: 0 24px; }

.hd-card {
  background: var(--hd-white);
  border-radius: 16px;
  border: 1px solid rgba(13,13,54,.06);
  box-shadow: var(--hd-shadow);
  padding: 36px 32px;
}

.hd-section-title {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 1.25rem;
  position: relative;
}
.hd-section-title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--hd-primary);
  border-radius: 2px;
  margin-top: 12px;
}

/* ----- Forms ----- */
.hd-field { margin-bottom: 22px; }
label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  color: var(--hd-primary-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="date"],
input[type="datetime-local"], select, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--hd-border);
  border-radius: 10px;
  font-family: var(--hd-font);
  font-size: 1rem;
  line-height: 1.4;
  background: #fff;
  color: var(--hd-text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--hd-primary);
  box-shadow: 0 0 0 4px rgba(208,117,42,.14);
}
.hd-radio-group { display: flex; gap: 22px; flex-wrap: wrap; }
.hd-radio-group label { font-weight: 400; display: flex; align-items: center; gap: 7px; margin: 0; }

/* ----- Buttons ----- */
.hd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hd-primary);
  color: #fff;
  border: none;
  border-radius: var(--hd-radius-pill);
  padding: 14px 28px;
  font-family: var(--hd-font);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -0.01em;
  text-transform: none;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  line-height: 1.2;
}
.hd-btn:hover { background: #b86422; color: #fff; box-shadow: 0 8px 20px rgba(208,117,42,.28); }
.hd-btn:disabled { background: #d9b78f; cursor: not-allowed; box-shadow: none; }
.hd-btn-block { width: 100%; }
.hd-btn-secondary { background: var(--hd-primary-dark); }
.hd-btn-secondary:hover { background: var(--hd-deep-blue); box-shadow: 0 8px 20px rgba(13,13,54,.22); }
.hd-btn-danger { background: var(--hd-danger); }
.hd-btn-danger:hover { background: var(--hd-danger-dark); box-shadow: 0 8px 20px rgba(194,42,43,.25); }
.hd-btn-success { background: var(--hd-success); }
.hd-btn-success:hover { background: #1b6f2e; }
.hd-btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ----- Pricing panel ----- */
.hd-pricing {
  background: #f7f9fc;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius);
  padding: 22px 20px;
  margin-top: 24px;
}
.hd-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--hd-muted);
}
.hd-pricing-row span:last-child { color: var(--hd-text); font-weight: 500; }
.hd-pricing-row.total {
  font-family: var(--hd-font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  border-top: 1px solid var(--hd-border);
  padding-top: 14px;
  margin-bottom: 0;
  color: var(--hd-primary-dark);
}
.hd-pricing-row.total span:last-child { color: var(--hd-primary); font-weight: 700; }

/* ----- Booking confirmation details ----- */
.hd-details {
  text-align: left;
  margin-top: 28px;
  border-top: 1px solid var(--hd-border);
  padding-top: 22px;
}
.hd-details dl {
  display: grid;
  grid-template-columns: minmax(110px, 32%) 1fr;
  gap: 10px 18px;
  margin: 0;
}
.hd-details dt {
  color: var(--hd-muted);
  font-weight: 500;
  font-size: .95rem;
}
.hd-details dd {
  margin: 0;
  color: var(--hd-text);
  line-height: 1.5;
  word-break: break-word;
}

/* ----- Tables ----- */
.hd-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--hd-shadow);
  border: 1px solid rgba(13,13,54,.06);
}
.hd-table th, .hd-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f6;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.hd-table th {
  background: var(--hd-primary-dark);
  color: #fff;
  font-family: var(--hd-font);
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: .9rem;
}
.hd-table tr:last-child td { border-bottom: none; }

/* ----- Alerts ----- */
.hd-alert {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: .95rem;
  line-height: 1.5;
}
.hd-alert-error { background: #fbe9e9; color: var(--hd-danger-dark); border: 1px solid #f0c4c4; }
.hd-alert-success { background: #e9f6ee; color: var(--hd-success); border: 1px solid #c4e6d0; }
.hd-error-msg { color: var(--hd-danger); font-size: .9rem; margin-top: 8px; display: none; line-height: 1.45; }
.hd-muted { color: var(--hd-muted); font-size: .92rem; line-height: 1.55; }

/* ----- Screenshot paste zone + preview ----- */
.hd-paste-zone {
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px dashed var(--hd-accent-blue);
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--hd-muted);
  font-size: .9rem;
  text-align: center;
  line-height: 1.55;
}
.hd-paste-zone:focus { outline: none; border-color: var(--hd-primary); box-shadow: 0 0 0 4px rgba(208,117,42,.14); }
.hd-paste-zone kbd {
  background: var(--hd-primary-dark);
  color: #fff;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: .85em;
  font-family: var(--hd-font);
  font-weight: 500;
}
.hd-file-preview {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: 10px;
  padding: 10px 12px;
}
.hd-file-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--hd-border); }
.hd-file-name { flex: 1; font-size: .9rem; color: var(--hd-text); word-break: break-all; }
.hd-file-remove {
  background: var(--hd-danger);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.1em;
  line-height: 1;
  cursor: pointer;
}
.hd-file-remove:hover { background: var(--hd-danger-dark); }

/* ----- Bookable time-slot picker ----- */
.hd-slot-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.hd-slot {
  background: #fff;
  border: 1px solid var(--hd-border);
  border-radius: var(--hd-radius-pill);
  padding: 10px 16px;
  font-family: var(--hd-font);
  font-size: .94rem;
  font-weight: 500;
  color: var(--hd-text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.hd-slot:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.hd-slot.selected {
  background: var(--hd-primary);
  border-color: var(--hd-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(208,117,42,.25);
}

/* ----- Booking wizard ----- */
.hd-wizard { max-width: 640px; margin: 0 auto; }

.hd-wizard-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 6px;
}
.hd-wizard-dot {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: default;
  padding: 4px 2px;
  font-family: var(--hd-font);
}
.hd-wizard-dot.is-reachable { cursor: pointer; }
.hd-wizard-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #eef1f6;
  color: var(--hd-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .88rem;
  transition: background .2s, color .2s, box-shadow .2s;
}
.hd-wizard-label {
  font-size: .72rem;
  color: var(--hd-muted);
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1.3;
}
.hd-wizard-dot.is-done .hd-wizard-num { background: var(--hd-success); color: #fff; }
.hd-wizard-dot.is-current .hd-wizard-num {
  background: var(--hd-primary);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(208,117,42,.16);
}
.hd-wizard-dot.is-current .hd-wizard-label {
  color: var(--hd-primary-dark);
  font-weight: 600;
}

.hd-wizard-step-title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  letter-spacing: -0.03em;
  line-height: var(--hd-lh-tight);
}
.hd-wizard-step-sub {
  color: var(--hd-muted);
  margin: 0 0 28px;
  font-size: 1.02rem;
  line-height: 1.6;
  font-weight: 400;
  max-width: 36em;
}

.hd-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 12px;
}
.hd-wizard-nav .hd-btn { flex: 1; }
.hd-wizard-nav .hd-btn-secondary { flex: 0 0 auto; padding-left: 22px; padding-right: 22px; }

/* Big tappable choice cards (service type / payment method) */
.hd-choice-group { display: flex; gap: 14px; flex-wrap: wrap; }
.hd-choice-card {
  flex: 1;
  min-width: 150px;
  border: 1.5px solid var(--hd-border);
  border-radius: 14px;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  margin: 0;
  font-weight: 400;
  background: #fff;
}
.hd-choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.hd-choice-icon { font-size: 1.7em; line-height: 1; }
.hd-choice-title {
  font-family: var(--hd-font);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hd-primary-dark);
  font-size: 1.02rem;
  line-height: 1.25;
}
.hd-choice-sub {
  font-size: .86rem;
  color: var(--hd-muted);
  line-height: 1.45;
  font-weight: 400;
}
.hd-choice-card:hover {
  border-color: var(--hd-primary);
  box-shadow: 0 6px 18px rgba(13,13,54,.06);
}
.hd-choice-card.selected {
  border-color: var(--hd-primary);
  background: rgba(208,117,42,.05);
  box-shadow: 0 0 0 3px rgba(208,117,42,.12);
}
.hd-choice-card.selected .hd-choice-title { color: var(--hd-primary); }

/* Vibrant preferred-customer upsell above the final submit button */
.hd-preferred-promo {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 22px 0 18px;
  padding: 16px 18px;
  border: 1.5px solid var(--hd-primary);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(208,117,42,.12) 0%, rgba(208,117,42,.04) 100%);
  box-shadow: 0 6px 18px rgba(208,117,42,.12);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.hd-preferred-promo:hover {
  border-color: #b86422;
  box-shadow: 0 8px 22px rgba(208,117,42,.18);
  background: linear-gradient(135deg, rgba(208,117,42,.16) 0%, rgba(208,117,42,.07) 100%);
}
.hd-preferred-promo input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--hd-primary);
  cursor: pointer;
}
.hd-preferred-promo-text {
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--hd-primary-dark);
  letter-spacing: -0.01em;
}
.hd-preferred-promo-text strong {
  font-family: var(--hd-font);
  font-weight: 700;
  color: var(--hd-primary);
  letter-spacing: -0.02em;
}
.hd-preferred-promo[hidden] { display: none !important; }

/* Pill button groups (duration / issue category) */
.hd-pill-group { display: flex; gap: 10px; flex-wrap: wrap; }
.hd-pill {
  background: #fff;
  border: 1.5px solid var(--hd-border);
  border-radius: var(--hd-radius-pill);
  padding: 11px 18px;
  font-family: var(--hd-font);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: -0.01em;
  color: var(--hd-text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.hd-pill:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.hd-pill.selected {
  background: var(--hd-primary);
  border-color: var(--hd-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(208,117,42,.22);
}
.hd-pill:disabled { opacity: .4; cursor: not-allowed; }
.hd-pill:disabled:hover { border-color: var(--hd-border); color: var(--hd-text); box-shadow: none; }

/* Horizontal date-chip strip */
.hd-date-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.hd-date-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  min-width: 64px;
  background: #fff;
  border: 1.5px solid var(--hd-border);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  font-family: var(--hd-font);
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.hd-date-chip .hd-dc-day {
  font-size: .72rem;
  color: var(--hd-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.hd-date-chip .hd-dc-num {
  font-family: var(--hd-font);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--hd-text);
  line-height: 1.2;
}
.hd-date-chip:hover { border-color: var(--hd-primary); }
.hd-date-chip.selected {
  background: var(--hd-primary);
  border-color: var(--hd-primary);
  box-shadow: 0 4px 12px rgba(208,117,42,.22);
}
.hd-date-chip.selected .hd-dc-day,
.hd-date-chip.selected .hd-dc-num { color: #fff; }
.hd-link-btn {
  background: none;
  border: none;
  color: var(--hd-primary);
  font-size: .88rem;
  font-weight: 500;
  font-family: var(--hd-font);
  cursor: pointer;
  padding: 10px 0 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Auth / login card */
.hd-center {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(208,117,42,.12), transparent 60%),
    var(--hd-bg);
}
.hd-auth-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--hd-white);
  border: 1px solid rgba(13,13,54,.06);
  border-radius: 16px;
  box-shadow: var(--hd-shadow);
  padding: 36px 32px;
}
.hd-auth-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 220px;
  margin: 0 auto 18px;
  object-fit: contain;
}
.hd-auth-card h2 {
  text-align: center;
  margin: 0 0 22px;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

@media (max-width: 640px) {
  .hd-card { padding: 26px 18px; border-radius: 14px; }
  .hd-wrap, .hd-wrap-wide { margin: 22px auto; }
  .hd-choice-card { min-width: 0; }
  .hd-wizard-label { font-size: .66rem; }
  .hd-topbar .hd-inner { padding: 12px 16px; }
  .hd-nav-links { gap: 6px 14px; }
  .hd-auth-card { padding: 28px 20px; }
  .hd-auth-logo { height: 48px; }
}
