/* No Limit Epoxy estimate form — OCMG-style layout, NLE palette.
   Two-column section (.nle-estimate) + the booking widget (#nle-booking). */
.nle-estimate {
  --bw-ink: #141616; --bw-paper: #f5f5f0; --bw-blue: #164dff; --bw-blue-dark: #123cc9;
  --bw-line: #d8dad4; --bw-muted: #61675f; --bw-white: #fff; --bw-wash: #eef1ff; --bw-wash-line: #c9d3ff;
  padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 6vw, 88px);
  background: radial-gradient(ellipse at 90% 0, #e7ebff 0, transparent 52%),
              radial-gradient(ellipse at 0 80%, #e8ece3 0, transparent 45%), var(--bw-paper);
  color: var(--bw-ink); font-family: Arial, Helvetica, sans-serif;
}
.nle-estimate * { box-sizing: border-box; }
.nle-estimate .wrap { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.nle-estimate-layout { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr); grid-template-rows: auto 1fr; gap: 32px clamp(32px, 5vw, 72px); align-items: start; }

.nle-estimate-story { grid-column: 1; grid-row: 1; }
.nle-estimate-story .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--bw-muted); margin-bottom: 18px; display: flex; align-items: center; gap: 11px; }
.nle-estimate-story .eyebrow:before { content: ''; width: 7px; height: 7px; background: var(--bw-blue); display: inline-block; }
.nle-estimate-story h2 { font-size: clamp(40px, 4.3vw, 60px); font-weight: 700; line-height: 1.02; letter-spacing: -.055em; margin: 0; }
.nle-estimate-story h2 em { font-style: normal; color: var(--bw-blue); }
.nle-estimate-story .lead { font-size: 17px; line-height: 1.7; color: var(--bw-muted); margin: 22px 0 0; max-width: 440px; }

.nle-estimate-details { grid-column: 1; grid-row: 2; min-width: 0; }
.nle-estimate-details h3 { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.nle-estimate-method { padding: 16px 0; border-bottom: 1px solid var(--bw-line); }
.nle-estimate-method dt { color: var(--bw-muted); font-size: 12px; font-weight: 600; margin-bottom: 5px; letter-spacing: .03em; }
.nle-estimate-method dd { margin: 0; }
.nle-estimate-method a { font-size: clamp(16px, 1.6vw, 21px); font-weight: 700; border-bottom: 1px solid var(--bw-line); padding-bottom: 3px; text-decoration: none; color: inherit; }
.nle-estimate-method a:hover { color: var(--bw-blue); border-color: var(--bw-blue); }
.nle-estimate-steps { margin-top: 30px; padding: clamp(22px, 2.5vw, 30px); color: #eef1ff; background: radial-gradient(ellipse at 100% 0, #23316c, transparent 80%), var(--bw-ink); }
.nle-estimate-steps h3 { font-size: 23px; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.nle-estimate-steps ol { list-style: none; counter-reset: s; margin: 20px 0 0; padding: 0; }
.nle-estimate-steps li { counter-increment: s; position: relative; padding-left: 38px; color: #c3c8d8; font-size: 13px; line-height: 1.6; }
.nle-estimate-steps li + li { margin-top: 18px; }
.nle-estimate-steps li:before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 1px; color: #8fa8ff; font-size: 12px; font-weight: 700; }
.nle-estimate-steps strong { display: block; margin-bottom: 3px; color: #fff; font-size: 14px; }

.nle-estimate-card { grid-column: 2; grid-row: 1 / 3; min-width: 0; background: var(--bw-white); border: 1px solid var(--bw-line); box-shadow: 0 18px 60px rgba(20,22,22,.08); overflow: hidden; }
.nle-estimate-card .card-head { padding: clamp(24px, 3vw, 38px) clamp(22px, 3vw, 40px) 0; }
.nle-estimate-card .card-head:before { content: ''; display: block; width: 40px; height: 4px; background: var(--bw-blue); margin-bottom: 20px; }
.nle-estimate-card .card-title { font-size: clamp(27px, 2.7vw, 35px); font-weight: 700; line-height: 1.1; letter-spacing: -.045em; margin: 0; }
.nle-estimate-card .card-lead { margin: 12px 0 0; color: var(--bw-muted); font-size: 15px; line-height: 1.6; }

/* ---- the widget ---- */
/* Tokens are defined on the mount itself so the widget renders correctly
   anywhere (hero, standalone section, etc.) — not only inside .nle-estimate. */
#nle-booking {
  --bw-ink: #141616; --bw-blue: #164dff; --bw-blue-dark: #123cc9;
  --bw-line: #d8dad4; --bw-muted: #61675f; --bw-white: #fff;
  --bw-wash: #eef1ff; --bw-wash-line: #c9d3ff;
  color: var(--bw-ink);
}
#nle-booking .bw-body { padding: 1.4rem clamp(22px, 3vw, 40px) 2rem; }
#nle-booking .bw-form { margin: 0; }
#nle-booking .bw-required-note { margin: 0 0 1.25rem; font-size: .75rem; color: var(--bw-muted); }
#nle-booking .bw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
#nle-booking .bw-field { min-width: 0; margin-bottom: 1.1rem; }
#nle-booking .bw-field-full { grid-column: 1 / -1; }
#nle-booking .bw-field label, #nle-booking .bw-fields + * label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .8rem; }
#nle-booking input, #nle-booking select, #nle-booking textarea { width: 100%; padding: .8rem 1.1rem; border: 1px solid var(--bw-line); background: #f7f8f4; color: var(--bw-ink); font: inherit; font-weight: 500; border-radius: 0; }
#nle-booking input { min-height: 48px; }
#nle-booking select { min-height: 48px; appearance: none; -webkit-appearance: none; 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='%23141616' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.05rem center; background-size: 13px; padding-right: 2.6rem; }
#nle-booking textarea { resize: vertical; min-height: 104px; }
#nle-booking input:focus, #nle-booking select:focus, #nle-booking textarea:focus { outline: 2px solid var(--bw-blue); outline-offset: 2px; }
#nle-booking input:focus-visible, #nle-booking select:focus-visible, #nle-booking textarea:focus-visible { outline: 2px solid var(--bw-blue); outline-offset: 2px; }

/* photos */
#nle-booking .bw-photos { margin: .2rem 0 1.25rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--bw-wash-line); background: var(--bw-wash); }
#nle-booking .bw-photos-title { font-weight: 700; font-size: .9rem; margin: 0; }
#nle-booking .bw-photos-note { font-size: .76rem; color: var(--bw-muted); margin: .3rem 0 .9rem; line-height: 1.55; }
#nle-booking .bw-ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
#nle-booking .bw-ph-slot { position: relative; }
#nle-booking .bw-ph-slot .bw-file { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
#nle-booking .bw-ph-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; aspect-ratio: 1; border: 1px solid var(--bw-line); background: #fff; text-align: center; font-size: .72rem; color: var(--bw-muted); padding: 8px; overflow: hidden; }
#nle-booking .bw-ph-plus { font-size: 1.3rem; color: var(--bw-blue); line-height: 1; }
#nle-booking .bw-ph-slot.filled .bw-ph-drop { padding: 0; }
#nle-booking .bw-ph-drop img { width: 100%; height: 100%; object-fit: cover; }
#nle-booking .bw-ph-remove { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: rgba(20,22,22,.78); color: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
@media (max-width: 420px) { #nle-booking .bw-ph-grid { grid-template-columns: 1fr 1fr; } }

/* schedule */
#nle-booking .bw-schedule { margin: .25rem 0 1.3rem; padding: 1.1rem 1.25rem; border: 1px solid var(--bw-wash-line); background: var(--bw-wash); }
#nle-booking .bw-schedule-label { display: block; color: var(--bw-muted); font-size: .75rem; margin-bottom: .4rem; }
#nle-booking .bw-when-summary { font-weight: 700; font-size: .95rem; line-height: 1.5; margin: 0; }
#nle-booking .bw-schedule-hint { margin: .15rem 0 .7rem; font-size: .78rem; color: var(--bw-muted); }
#nle-booking .bw-schedule-picker { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: flex-start; }
#nle-booking .bw-schedule-picker > div { min-width: 0; }
#nle-booking .bw-schedule-picker > div:first-child { flex: 3 1 300px; max-width: 360px; }
#nle-booking .bw-schedule-picker > div:last-child { flex: 1 1 150px; max-width: 220px; }
#nle-booking .bw-help { margin: 0; color: var(--bw-muted); font-size: .85rem; }
#nle-booking .bw-cal { border: 1px solid var(--bw-line); background: #fff; min-width: 0; overflow: hidden; }
#nle-booking .bw-cal-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: .5rem .4rem; background: #dfe4ff; font-weight: 700; }
#nle-booking .bw-cal-head button { border: 0; box-shadow: none; background: none; padding: .3rem .8rem; font-size: 1rem; font-weight: 700; cursor: pointer; color: var(--bw-ink); min-height: 40px; }
#nle-booking .bw-cal-head button:disabled { opacity: .35; cursor: default; }
#nle-booking .bw-cal-title { text-align: center; font-size: .95rem; }
#nle-booking .bw-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); padding: .5rem; gap: .2rem; }
#nle-booking .bw-dow { padding: .3rem 0; text-align: center; font-weight: 700; font-size: .7rem; color: var(--bw-muted); min-width: 0; }
#nle-booking .bw-day { width: min(40px, 86%); aspect-ratio: 1; min-height: 0; margin: 2px auto; padding: 0; border: 0; box-shadow: none; background: none; text-align: center; font: inherit; font-weight: 700; line-height: 1; color: var(--bw-ink); cursor: pointer; display: grid; place-items: center; border-radius: 50%; }
#nle-booking .bw-day:hover:not(:disabled):not([aria-pressed="true"]) { background: var(--bw-wash); }
#nle-booking .bw-day:disabled { color: #c2c8bf; cursor: default; }
#nle-booking .bw-day[aria-pressed="true"] { background: var(--bw-blue); color: #fff; }
#nle-booking .bw-window-title { font-size: .8rem; font-weight: 700; margin: 0 0 .5rem; }
#nle-booking .bw-retry { border: 0; background: var(--bw-blue); color: #fff; padding: .7rem 1.4rem; font: inherit; font-weight: 700; cursor: pointer; }
#nle-booking .bw-retry:hover { background: var(--bw-blue-dark); }
#nle-booking .bw-retry:focus-visible { outline: 2px solid var(--bw-blue); outline-offset: 2px; }

/* consent + submit + states */
#nle-booking .bw-sms-consent { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; border: 1px solid var(--bw-line); background: #f7f8f4; font-size: .8rem; line-height: 1.6; cursor: pointer; margin-top: .3rem; }
#nle-booking .bw-sms-consent input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; min-height: 0; margin: .15rem 0 0; accent-color: var(--bw-blue); }
#nle-booking .bw-privacy { margin: .75rem 0 0; font-size: .75rem; line-height: 1.6; color: var(--bw-muted); }
#nle-booking .bw-privacy a { color: var(--bw-ink); text-decoration: underline; text-underline-offset: .15em; }
#nle-booking .bw-turnstile { margin: 1rem 0; display: flex; justify-content: center; }
#nle-booking .bw-turnstile:empty { display: none; }
#nle-booking .bw-btn { width: 100%; margin-top: 1.1rem; border: 0; background: var(--bw-blue); color: #fff; padding: 1rem 1.6rem; font: inherit; font-size: 1.02rem; font-weight: 700; cursor: pointer; }
#nle-booking .bw-btn:hover:not(:disabled) { background: var(--bw-blue-dark); }
#nle-booking .bw-btn:disabled { opacity: .55; cursor: default; }
#nle-booking .bw-error { margin: 0 0 1rem; padding: .7rem 1rem; background: #fdeeee; color: #8c2f2f; font-weight: 600; text-align: center; }
#nle-booking .bw-error:empty { display: none; }
#nle-booking .bw-done { padding: 3rem 1.25rem; text-align: center; }
#nle-booking .bw-done h3 { margin: 0 0 .6rem; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; }
#nle-booking .bw-done h3:focus { outline: 0; }
#nle-booking .bw-done .bw-when { font-size: 1.2rem; font-weight: 700; color: var(--bw-blue); }
#nle-booking .bw-done a, #nle-booking .bw-cal-link { color: var(--bw-blue); font-weight: 700; }

@media (max-width: 900px) {
  .nle-estimate-layout { grid-template-columns: 1fr; gap: 28px; max-width: 760px; }
  .nle-estimate-story, .nle-estimate-card, .nle-estimate-details { grid-column: 1; }
  .nle-estimate-story { grid-row: 1; } .nle-estimate-card { grid-row: 2; } .nle-estimate-details { grid-row: 3; }
}
@media (max-width: 600px) {
  .nle-estimate .wrap { width: min(1320px, calc(100% - 32px)); }
  .hero-form-grid { width: min(1320px, calc(100% - 36px)); }
  #nle-booking .bw-fields { grid-template-columns: 1fr; }
  #nle-booking .bw-body { padding: 1.25rem 18px 1.5rem; }
  #nle-booking .bw-schedule, #nle-booking .bw-photos { padding: 1rem; }
  #nle-booking .bw-cal-head button { min-height: 44px; }
  #nle-booking .bw-ph-grid { grid-template-columns: 1fr 1fr; }
  /* Let the flexible Turnstile bar span the full card so it fits on phones
     instead of falling back to the taller compact square (matches OCMG). */
  #nle-booking .bw-turnstile { margin-left: -18px; margin-right: -18px; }
}

/* ===== Homepage hero with the form card in the right column ===== */
.hero-form { position: relative; min-height: 0; height: auto; max-height: none; isolation: isolate; display: block; color: #fff; overflow: hidden; }
.hero-form .hero-media { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-form:after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,17,21,.8) 0%, rgba(8,17,21,.46) 40%, rgba(8,17,21,.14) 68%, rgba(8,17,21,0) 90%); }
.hero-form-grid { display: grid; grid-template-columns: 1fr minmax(430px, 520px); gap: clamp(32px, 4vw, 64px); align-items: start; width: min(1320px, calc(100% - 96px)); margin-inline: auto; padding: clamp(40px, 5vw, 72px) 0; }
/* Sticky so the heading/eyebrow/description stay put as the form grows + scrolls. */
.hero-content { max-width: 540px; position: sticky; top: 100px; align-self: start; }
.hero-content .eyebrow { color: #fff; }
.hero-content .eyebrow:before { background: #83a8ff; }
.hero-content h1 { font-size: clamp(48px, 5.4vw, 86px); font-weight: 700; line-height: 1.02; letter-spacing: -.055em; margin: 0 0 24px; }
.hero-content h1 em { font-style: normal; color: #a4bdff; }
.hero-content .hero-intro { font-size: 17px; line-height: 1.6; color: #e3e7e6; margin: 0 0 26px; max-width: 420px; }
.hero-content .hero-trust { display: flex; gap: 24px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #aebfcf; }
.hero-content .hero-trust b { color: #fff; display: block; font-size: 22px; letter-spacing: -.02em; text-transform: none; margin-bottom: 2px; }
.hero-card { background: #fff; color: #141616; box-shadow: 0 36px 90px rgba(0,0,0,.42); }
/* progressive disclosure: compact until the first field is focused */
.bw-collapse-hint { display: none; }
#nle-booking .bw-form.bw-collapsed .bw-collapse-hint { display: block; font-size: .8rem; color: var(--bw-muted); margin: .2rem 0 0; }
#nle-booking .bw-more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease, opacity .35s ease; }
#nle-booking .bw-more-inner { overflow: hidden; min-height: 0; margin-inline: -8px; padding-inline: 8px; }
#nle-booking .bw-form.bw-collapsed .bw-more { grid-template-rows: 0fr; opacity: 0; }
#nle-booking .bw-form.bw-collapsed .bw-fields { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { #nle-booking .bw-more { transition: none; } }
.hero-card .card-head { padding: clamp(22px, 2.4vw, 32px) clamp(20px, 2.4vw, 34px) 0; }
.hero-card .card-head:before { content: ''; display: block; width: 40px; height: 4px; background: #164dff; margin-bottom: 16px; }
.hero-card .card-title { font-size: clamp(23px, 2.1vw, 28px); font-weight: 700; line-height: 1.12; letter-spacing: -.04em; margin: 0; }
.hero-card .card-lead { margin: 8px 0 0; color: #61675f; font-size: 14px; line-height: 1.55; }
@media (max-width: 980px) {
  .hero-form-grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 0 48px; }
  .hero-content { max-width: none; position: static; }
  .hero-card { max-height: none; max-width: 600px; margin-right: auto; }
}

/* ===== 25px rounded corners (per request) ===== */
.hero-card, .nle-estimate-card,
#nle-booking input, #nle-booking select, #nle-booking textarea,
#nle-booking .bw-btn,
#nle-booking .bw-schedule, #nle-booking .bw-photos, #nle-booking .bw-sms-consent,
#nle-booking .bw-cal, #nle-booking .bw-ph-drop, #nle-booking .bw-error,
#nle-booking .bw-window-wrap select { border-radius: 25px; }
/* clip inner content to the rounded corners */
.hero-card, .nle-estimate-card, #nle-booking .bw-cal, #nle-booking .bw-ph-slot .bw-ph-drop { overflow: hidden; }
/* circular calendar day + month-nav buttons (25px would over-round these small controls) */
#nle-booking .bw-day, #nle-booking .bw-cal-head button { border-radius: 50%; }
/* textarea corners sit nicer a touch tighter */
#nle-booking textarea { border-radius: 20px; }
