/* MCC appointment booking widget — namespaced twb-. Inherits the host page font. */
.twb, .twb * { box-sizing: border-box; }
.twb {
  --twb-accent: #1a1a1a;
  --twb-accent-text: #ffffff;
  --twb-border: #d9d9d9;
  --twb-muted: #6b6b6b;
  --twb-bg: #ffffff;
  --twb-error: #b00020;
  --twb-radius: 4px;
  color: #1a1a1a;
  background: var(--twb-bg);
  font-size: 15px;
  line-height: 1.45;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}
.twb-hidden { display: none !important; }
.twb h2, .twb h3 { margin: 0 0 14px; font-weight: 600; letter-spacing: .02em; }
.twb h3 { font-size: 17px; text-transform: uppercase; }
.twb-step { padding: 8px 0 24px; }
.twb-step + .twb-step { border-top: 1px solid var(--twb-border); padding-top: 24px; }
.twb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.twb-grid .twb-full { grid-column: 1 / -1; }
.twb-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.twb-field .twb-req { color: var(--twb-error); }
.twb input[type="text"], .twb input[type="email"], .twb input[type="tel"], .twb select, .twb textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--twb-border); border-radius: var(--twb-radius);
  font: inherit; color: inherit; background: #fff; appearance: none; -webkit-appearance: none;
}
.twb select { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23444' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 12px center; padding-right: 32px; }
.twb textarea { min-height: 90px; resize: vertical; }
.twb input:focus, .twb select:focus, .twb textarea:focus { outline: 2px solid var(--twb-accent); outline-offset: 1px; }
.twb-field.is-invalid input, .twb-field.is-invalid select { border-color: var(--twb-error); }
.twb-field-error { color: var(--twb-error); font-size: 12px; margin-top: 4px; }
.twb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; }
.twb-check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.twb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.twb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; }
.twb-btn {
  display: inline-block; padding: 13px 28px; border: 1px solid var(--twb-accent); border-radius: var(--twb-radius);
  background: var(--twb-accent); color: var(--twb-accent-text); font: inherit; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer; transition: opacity .15s;
}
.twb-btn:hover { opacity: .88; }
.twb-btn[disabled] { opacity: .5; cursor: default; }
.twb-btn-ghost { background: transparent; color: var(--twb-accent); }
.twb-link { background: none; border: 0; padding: 0; color: var(--twb-muted); font: inherit; font-size: 13px;
  text-decoration: underline; cursor: pointer; text-align: left; line-height: 1.35; }
.twb-note { color: var(--twb-muted); font-size: 13px; }
.twb-banner { background: #b00020; color: #fff; padding: 10px 14px; border-radius: var(--twb-radius); margin: 0 0 16px; font-size: 14px; }
.twb-check-rep { border-top: 1px dashed var(--twb-border); padding-top: 12px; }
.twb-alert { padding: 12px 14px; border-radius: var(--twb-radius); margin: 0 0 16px; font-size: 14px; }
.twb-alert-error { background: #fdecee; color: var(--twb-error); }

/* step 2 */
.twb-sched-title { font-size: 15px; margin-bottom: 4px; }
.twb-sched-sub { color: var(--twb-muted); font-size: 13px; margin-bottom: 16px; }
.twb-datetime { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; }
.twb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.twb-cal-nav { background: none; border: 1px solid var(--twb-border); border-radius: 50%; width: 32px; height: 32px;
  font-size: 18px; line-height: 1; cursor: pointer; color: inherit; }
.twb-cal-nav[disabled] { opacity: .3; cursor: default; }
.twb-cal-month { font-weight: 600; }
.twb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.twb-cal-dow { text-align: center; font-size: 11px; color: var(--twb-muted); text-transform: uppercase; padding: 4px 0; }
.twb-cal-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; font: inherit; font-size: 14px;
  color: var(--twb-muted); cursor: default; }
.twb-cal-day.is-avail { color: inherit; background: #f1f1f1; cursor: pointer; font-weight: 600; }
.twb-cal-day.is-avail:hover { background: #e2e2e2; }
.twb-cal-day.is-selected { background: var(--twb-accent); color: var(--twb-accent-text); }
.twb-cal-loading { text-align: center; padding: 30px 0; color: var(--twb-muted); }
.twb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; align-content: start; }
.twb-slot { padding: 10px 6px; border: 1px solid var(--twb-border); border-radius: var(--twb-radius); background: #fff;
  font: inherit; font-size: 14px; cursor: pointer; }
.twb-slot:hover { border-color: var(--twb-accent); }
.twb-slot.is-selected { background: var(--twb-accent); color: var(--twb-accent-text); border-color: var(--twb-accent); }
.twb-slots-empty { grid-column: 1 / -1; color: var(--twb-muted); font-size: 14px; }
.twb-selected-summary { margin: 18px 0 0; font-weight: 600; }

/* success */
.twb-success { text-align: center; padding: 30px 12px; }
.twb-success h2 { font-size: 24px; }
.twb-success p { margin: 6px 0; }

/* modal mode */
.twb-modal { position: fixed; inset: 0; z-index: 99999; display: none; }
.twb-modal.is-open { display: block; }
.twb-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.twb-modal-box { position: relative; margin: 4vh auto; width: min(960px, calc(100% - 24px)); max-height: 92vh; overflow: auto;
  background: var(--twb-bg, #fff); border-radius: 6px; padding: 24px; }
.twb-modal-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; }
.twb-busy { position: relative; }
.twb-busy::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.6); }

@media (max-width: 680px) {
  .twb-grid, .twb-datetime { grid-template-columns: 1fr; }
  .twb-btn { width: 100%; text-align: center; }
}

/* ── container-aware layout: stack when the host column is narrow (e.g. Duda 600px hero column) ── */
.twb { container-type: inline-size; }
@container (max-width: 700px) {
  .twb-grid, .twb-datetime { grid-template-columns: 1fr; }
  .twb-btn { width: 100%; text-align: center; }
}

/* ── stacked / placeholder-label layout (data-layout="stacked") ── */
.twb--stacked .twb-grid { grid-template-columns: 1fr; gap: 13px; }
.twb--placeholders .twb-field > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.twb--placeholders .twb-field { position: relative; }
.twb--compact .twb-step-title-1 { display: none; }

/* ── theme: tweeds (matches the Duda "Schedule An Appointment" navy panel) ── */
@font-face {
  font-family: 'Ogg-Regular';
  src: url('https://irp.cdn-website.com/bb767ba7/fonts/Ogg-Regular-a4c1_400.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
.twb--tweeds {
  --twb-navy: #12355b;
  --twb-cream: #fffcf5;
  --twb-accent: var(--twb-cream);
  --twb-accent-text: var(--twb-navy);
  --twb-border: #8596a9;
  --twb-muted: rgba(255, 255, 255, .75);
  --twb-bg: transparent;
  --twb-error: #ffb4a8;
  --twb-radius: 0;
  color: #fff;
  font-family: "Plus Jakarta Sans", "Plus Jakarta Sans Fallback", "Source Sans Pro", sans-serif;
  font-weight: 300;
  font-size: 16px;
  max-width: none;
}
.twb--tweeds h2, .twb--tweeds h3, .twb--tweeds .twb-sched-title {
  font-family: "Ogg-Regular", Georgia, "Times New Roman", serif;
  font-weight: 400; text-transform: none; letter-spacing: 0; color: #fff !important; text-align: center;
  /* !important: Duda's global heading colour otherwise wins inside the navy column */
}
.twb--tweeds h3 { font-size: 30px; line-height: 1.15; margin-bottom: 18px; }
.twb--tweeds .twb-sched-title { font-size: 26px; margin-bottom: 6px; }
.twb--tweeds .twb-sched-sub { text-align: center; color: var(--twb-muted); }
.twb--tweeds .twb-step { padding-bottom: 10px; }
.twb--tweeds .twb-step + .twb-step { border-top-color: rgba(255, 255, 255, .18); }
.twb--tweeds input[type="text"], .twb--tweeds input[type="email"], .twb--tweeds input[type="tel"],
.twb--tweeds select, .twb--tweeds textarea {
  background: transparent; color: #fff; border: 1px solid var(--twb-border); border-radius: 0;
  height: 55px; padding: 0 10px 0 25px; font-weight: 400; font-size: 16px;
}
.twb--tweeds textarea { height: 80px; padding-top: 14px; font-style: italic; }
.twb--tweeds ::placeholder { color: rgba(255, 255, 255, .7); opacity: 1; }
.twb--tweeds select { color: rgba(255, 255, 255, .7); background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23fff' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.twb--tweeds select.has-value { color: #fff; }
.twb--tweeds select option { color: #12355b; background: #fff; }
.twb--tweeds input:focus, .twb--tweeds select:focus, .twb--tweeds textarea:focus { outline: 2px solid #fff; outline-offset: 1px; }
.twb--tweeds .twb-field.is-invalid input, .twb--tweeds .twb-field.is-invalid select { border-color: var(--twb-error); }
.twb--tweeds .twb-field-error { color: var(--twb-error); }
.twb--tweeds .twb-check { color: #fff; font-size: 16px; font-weight: 300; line-height: 1.35; }
.twb--tweeds .twb-check input { accent-color: var(--twb-cream); }
.twb--tweeds .twb-alert-error { background: rgba(255, 180, 168, .15); color: #fff; border: 1px solid var(--twb-error); }
.twb--tweeds .twb-btn {
  background: var(--twb-cream); color: var(--twb-navy); border: 0; border-radius: 5px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase; padding: 10px; width: 100%;
  font-family: inherit;
}
.twb--tweeds .twb-btn:hover { opacity: 1; background: #fff; }
.twb--tweeds .twb-btn[disabled] { opacity: .45; }
.twb--tweeds .twb-actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 14px; }
.twb--tweeds .twb-link { color: #fff; text-align: center; font-size: 14px; }
.twb--tweeds .twb-note { color: var(--twb-muted); }
.twb--tweeds .twb-cal-nav { border-color: rgba(255, 255, 255, .5); color: #fff; }
.twb--tweeds .twb-cal-dow { color: var(--twb-muted); }
.twb--tweeds .twb-cal-day { color: rgba(255, 255, 255, .35); }
.twb--tweeds .twb-cal-day.is-avail { color: #fff; background: rgba(255, 255, 255, .12); }
.twb--tweeds .twb-cal-day.is-avail:hover { background: rgba(255, 255, 255, .25); }
.twb--tweeds .twb-cal-day.is-selected { background: var(--twb-cream); color: var(--twb-navy); }
.twb--tweeds .twb-cal-loading, .twb--tweeds .twb-slots-empty { color: var(--twb-muted); }
.twb--tweeds .twb-slot { background: transparent; color: #fff; border: 1px solid var(--twb-border); border-radius: 0; letter-spacing: 1px; }
.twb--tweeds .twb-slot:hover { border-color: #fff; }
.twb--tweeds .twb-slot.is-selected { background: var(--twb-cream); color: var(--twb-navy); border-color: var(--twb-cream); }
.twb--tweeds .twb-selected-summary { text-align: center; }
.twb--tweeds .twb-success h2 { font-size: 34px; }
.twb--tweeds .twb-banner { background: rgba(255, 180, 168, .2); border: 1px solid var(--twb-error); color: #fff; }
.twb--tweeds .twb-check-rep { border-top-color: rgba(255, 255, 255, .25); }
.twb--tweeds .twb-success .twb-btn { margin-top: 16px; }
.twb--tweeds .twb-busy::after { background: rgba(18, 53, 91, .55); }
.twb--tweeds .twb-modal-box { background: var(--twb-navy); }
.twb--tweeds .twb-modal-close { color: #fff; }
