/* Focused roofing-service callback request */
.book-page {
  --service-accent: var(--orange);
  --service-accent-hover: var(--orange-lo);
  --service-accent-soft: rgba(240, 82, 30, .09);
  --service-accent-border: rgba(240, 82, 30, .34);
  --service-accent-shadow: rgba(240, 82, 30, .24);
}
.book-page main { padding-top: var(--header-h); overflow: clip; }

.book-intake {
  padding: clamp(26px, 4vw, 52px) 0 clamp(72px, 8vw, 116px);
  background: var(--bg-deep);
}
.book-crumbs { margin: 0 2px clamp(26px, 3.4vw, 42px); }
.book-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-40); font: 400 .72rem/1.4 var(--f-mono); }
.book-crumbs li { display: flex; align-items: center; gap: 8px; }
.book-crumbs li + li::before { content: "/"; color: var(--ink-40); }
.book-crumbs a { color: var(--ink-60); text-decoration: none; transition: color .2s var(--ease); }
.book-crumbs a:hover { color: var(--orange); }
.book-crumbs [aria-current="page"] { color: var(--orange); }

.book-workspace {
  min-width: 0; overflow: hidden; border: 1px solid rgba(20, 19, 17, .17); border-radius: 8px;
  background: var(--paper); box-shadow: 0 26px 58px rgba(20, 19, 17, .1);
  display: grid;
}

/* The image panel keeps the Arizona setting visible without competing with the form. */
.book-story {
  position: relative; isolation: isolate; overflow: hidden; min-width: 0; min-height: 720px;
  padding: clamp(32px, 4.2vw, 58px); color: #fff;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
}
.book-story::after {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 11, 9, .97) 0%, rgba(12, 11, 9, .72) 48%, rgba(12, 11, 9, .25) 100%),
    linear-gradient(to right, rgba(12, 11, 9, .5), transparent 76%);
}
.book-story__img {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: 53% center; animation: book-image-in 1.5s var(--ease) both;
}
.book-story__copy { margin-top: auto; max-width: 590px; display: grid; gap: 20px; }
.book-story__copy > * { opacity: 0; transform: translateY(14px); animation: book-rise-in .72s var(--ease) forwards; }
.book-story__copy > *:nth-child(1) { animation-delay: .12s; }
.book-story__copy > *:nth-child(2) { animation-delay: .22s; }
.book-story__copy > *:nth-child(3) { animation-delay: .32s; }
.book-story__copy > *:nth-child(4) { animation-delay: .42s; }
.book-story .eyebrow { color: rgba(255,255,255,.78); display: flex; align-items: center; gap: 10px; }
.book-story .eyebrow span { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(240,82,30,.17); }
.book-story h1 { max-width: 12ch; color: #fff; font: 400 4.55rem/.95 "Instrument Serif", Georgia, serif; letter-spacing: 0; text-wrap: balance; }
.book-story__copy > p:not(.eyebrow):not(.book-story__time) { max-width: 48ch; color: rgba(255,255,255,.78); font-size: 1.02rem; line-height: 1.62; }
.book-story__time { width: fit-content; padding: 10px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: rgba(255,255,255,.82); background: rgba(12,11,9,.28); backdrop-filter: blur(10px); display: flex; align-items: center; gap: 9px; font: 400 .7rem/1.35 var(--f-mono); }
.book-story__time svg { width: 17px; height: 17px; color: var(--orange); }
.book-story__proof { padding-top: 23px; border-top: 1px solid rgba(255,255,255,.2); display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 28px; }
.book-story__proof p { min-width: 0; display: grid; gap: 5px; }
.book-story__proof strong { color: #fff; font-size: .84rem; line-height: 1.35; letter-spacing: 0; }
.book-story__proof span { color: rgba(255,255,255,.52); font: 400 .62rem/1.5 var(--f-mono); }

/* The form is the page's primary tool. */
.book-form {
  min-width: 0; padding: clamp(32px, 4.5vw, 64px); background: var(--paper);
  display: grid; align-content: center; gap: 22px;
  opacity: 0; transform: translateY(14px); animation: book-rise-in .78s .18s var(--ease) forwards;
}
.book-form__head { position: relative; padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.book-form__head > div { display: grid; gap: 9px; }
.book-form__head .eyebrow { min-height: 52px; padding-right: 72px; color: var(--orange); display: flex; align-items: center; }
.book-form__head h2 { max-width: none; font: 400 3.2rem/1 "Instrument Serif", Georgia, serif; letter-spacing: 0; }
.book-form__head div > p:last-child { max-width: 48ch; color: var(--ink-60); font-size: .98rem; line-height: 1.55; }
.book-form__mark {
  position: absolute; top: 0; right: 0; width: 52px; height: 52px; border: 1px solid var(--service-accent-border); border-radius: 8px;
  color: var(--orange); background: var(--service-accent-soft); display: grid; place-items: center;
  transform: rotate(3deg); box-shadow: 0 8px 18px rgba(20,19,17,.07);
}
.book-form__mark svg { width: 24px; height: 24px; }
.book-form__required { margin: -2px 0; color: var(--ink-60); font-size: .83rem; line-height: 1.4; }
.book-form__required span, .book-form .field label > span:not(.field__optional) { color: var(--orange); font-weight: 700; }
.book-form__row { display: grid; gap: 18px; }
.book-form .field { gap: 9px; }
.book-form .field label { color: var(--ink-80); font: 600 .87rem/1.25 var(--f-sans); }
.book-form .field__optional { float: right; margin-top: 1px; color: var(--ink-40); font: 400 .65rem/1.3 var(--f-mono); }
.book-form .field input, .book-form .field select {
  min-height: 57px; padding: 15px 16px; border-color: rgba(20,19,17,.19); border-radius: 6px;
  background-color: #fff; font-size: 1rem; line-height: 1.4;
  box-shadow: inset 0 1px 0 rgba(20,19,17,.025);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.book-form .field input::placeholder { color: #8A8378; opacity: .9; }
.book-form .field input:hover, .book-form .field select:hover { border-color: rgba(20,19,17,.38); }
.book-form .field input:focus, .book-form .field select:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--service-accent-soft); }
.book-form .field input:focus-visible, .book-form .field select:focus-visible { outline: none; }
.book-form .field--error input, .book-form .field--error select { border-color: #B53628; box-shadow: 0 0 0 3px rgba(181,54,40,.08); }
.book-form .field__hint { color: var(--ink-40); font-size: .76rem; line-height: 1.4; }
.book-form .field__err { color: #A52F23; font: 500 .76rem/1.4 var(--f-sans); }
.book-form__submit { padding-top: 4px; display: flex; align-items: center; }
.book-form__submit .btn { width: 100%; min-height: 57px; padding-inline: 24px; justify-content: center; }
.book-form__status { min-height: 1.35em; color: var(--ink-60); font: 500 .8rem/1.4 var(--f-sans); }

.book-next { background: var(--bg); }
.book-next__head { display: grid; gap: 18px; }
.book-next__head .eyebrow { color: var(--orange); }
.book-next__head .h-lg { max-width: none; font-size: 4.3rem; line-height: 1.02; }
.book-next__head > p:last-child { max-width: 56ch; color: var(--ink-60); font-size: 1.02rem; line-height: 1.62; }
.book-next__steps { margin-top: clamp(40px, 5vw, 70px); border-block: 1px solid var(--rule); display: grid; }
.book-next__steps li { min-width: 0; padding: clamp(26px, 3.5vw, 44px) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 18px; }
.book-next__steps li:last-child { border-bottom: 0; }
.book-next__steps li > span { color: var(--orange); font: 500 1.3rem/1 var(--f-mono); }
.book-next__steps li > div { display: grid; gap: 10px; }
.book-next__steps h3 { font-size: 1.24rem; line-height: 1.28; letter-spacing: 0; }
.book-next__steps p { max-width: 38ch; color: var(--ink-60); font-size: .9rem; line-height: 1.58; }
.book-next__call { padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; color: var(--ink-60); font: 400 .72rem/1.4 var(--f-mono); }
.book-next__call a { color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-sans); font-size: .9rem; font-weight: 600; transition: color .2s var(--ease); }
.book-next__call a:hover { color: var(--orange); }
.book-next__call svg { width: 19px; height: 19px; color: var(--orange); }

@keyframes book-image-in { from { transform: scale(1.055); } to { transform: scale(1); } }
@keyframes book-rise-in { to { opacity: 1; transform: translateY(0); } }

@media (min-width: 760px) {
  .book-form__row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .book-next__steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .book-next__steps li { padding-inline: clamp(22px, 3vw, 40px); border-bottom: 0; }
  .book-next__steps li + li { border-left: 1px solid var(--rule); }
  .book-next__steps li:first-child { padding-left: 0; }
  .book-next__steps li:last-child { padding-right: 0; }
}
@media (min-width: 980px) {
  .book-workspace { grid-template-columns: minmax(340px, .86fr) minmax(0, 1.14fr); }
  .book-story { min-height: 790px; }
  .book-story h1 { font-size: 4rem; }
}
@media (min-width: 1200px) {
  .book-story h1 { font-size: 4.55rem; }
}
@media (max-width: 979px) {
  .book-story { min-height: 520px; }
  .book-story h1 { max-width: 13ch; font-size: 3.9rem; }
  .book-story__copy { max-width: 680px; }
}
@media (max-width: 899px) {
  .book-page { padding-bottom: 0; }
}
@media (max-width: 680px) {
  .book-intake { padding-top: 20px; }
  .book-crumbs { margin-bottom: 22px; }
  .book-story { min-height: 450px; padding: 28px 22px; gap: 28px; }
  .book-story h1 { max-width: 11ch; font-size: 3rem; line-height: .98; }
  .book-story__copy { gap: 14px; }
  .book-story__copy > p:not(.eyebrow):not(.book-story__time) { font-size: .92rem; line-height: 1.52; }
  .book-story__time { padding: 8px 10px; font-size: .63rem; }
  .book-story__proof { padding-top: 16px; gap: 14px; }
  .book-story__proof strong { font-size: .74rem; }
  .book-story__proof span { font-size: .55rem; }
  .book-form { padding: 30px 20px 34px; gap: 19px; }
  .book-form__head { padding-bottom: 22px; }
  .book-form__head .eyebrow { min-height: 45px; padding-right: 60px; }
  .book-form__head h2 { font-size: 2.45rem; }
  .book-form__mark { width: 45px; height: 45px; }
  .book-form__mark svg { width: 21px; height: 21px; }
  .book-next__head .h-lg { max-width: none; font-size: 3rem; line-height: 1.05; }
}
@media (max-width: 380px) {
  .book-story { min-height: 470px; }
  .book-story h1 { font-size: 2.7rem; }
  .book-story__proof { grid-template-columns: 1fr; gap: 9px; }
  .book-story__proof p:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .book-story__img, .book-story__copy > *, .book-form { animation: none !important; opacity: 1 !important; transform: none !important; }
}
