/* Book / Schedule Form Styles */

.book-page {
  background: var(--bg-alt);
  min-height: 100vh;
  padding-bottom: 5rem;
}

.book-hero {
  padding: 3.5rem 0 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(0, 86, 210, 0.18), transparent 60%),
    linear-gradient(100deg, rgba(3, 12, 30, 0.94) 0%, rgba(4, 16, 38, 0.78) 45%, rgba(4, 16, 38, 0.45) 100%),
    url('/assets/images/book-hero-bg2.webp') center / cover no-repeat;
  background-color: #0a1830;
}
.book-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), rgba(0, 86, 210, 0.25));
}
.bh-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  text-align: center;
}
@media (min-width: 980px) {
  .bh-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    text-align: left;
  }
}
.book-hero .b-form-card {
  max-width: 400px;
  margin-left: auto;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 16px;
  border-top: 4px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@media (max-width: 979px) {
  .book-hero .b-form-card { margin: 0 auto; }
}
.book-hero .form-input { padding: 0.625rem 0.875rem; font-size: 0.9375rem; }
.book-hero .form-textarea { min-height: 5rem; }
.book-hero .b-card-title { font-size: 1.125rem; margin-bottom: 1rem; }
.bh-title {
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1.125rem;
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.bh-accent {
  color: #66a9ff;
}
.bh-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}
.bh-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin: 1.5rem 0 0;
  padding: 0;
  justify-content: center;
}
@media (min-width: 980px) {
  .bh-chips { justify-content: flex-start; }
}
.bh-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
}
.bh-chips svg {
  width: 14px;
  height: 14px;
  color: #66a9ff;
}
.bh-partner {
  display: inline-block;
  margin-bottom: 1rem;
}
.bh-partner img {
  height: 64px;
  width: auto;
}

.book-section {
  padding-top: 3rem;
}
.b-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .b-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
  .b-specs-title { grid-column: 1 / -1; margin-bottom: 0; }
}

.b-specs-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.b-spec {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background: var(--bg-paper);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.b-spec:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px rgba(0, 86, 210, 0.15);
}
.b-spec-icon {
  width: 3rem;
  height: 3rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.b-spec h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.b-spec p {
  color: var(--fg-light);
  font-size: 0.9375rem;
}

.b-form-card {
  background: var(--bg-paper);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 16px 40px -20px rgba(10, 26, 51, 0.16);
  border: 1px solid var(--border-light);
}
@media (max-width: 768px) {
  .b-form-card { padding: 1.5rem; }
}

.b-card-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.b-card-title svg { color: var(--accent); }

/* Form Elements */
.service-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg-dark);
}
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  background: var(--bg-paper);
  color: var(--fg-dark);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-textarea { resize: vertical; min-height: 100px; }

.hp-field { display: none; }

.combobox { position: relative; }
.combobox__icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--fg-muted); pointer-events: none;
}
.combobox__input { padding-left: 2.75rem; padding-right: 2.5rem; }
.combobox__list {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  right: 0;
  z-index: 30;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  max-height: 16rem;
  overflow-y: auto;
}
.combobox__list li {
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.combobox__list li:hover,
.combobox__list li.is-active {
  background: #eef4ff;
  color: #0056d2;
}
.combobox__list li mark {
  background: none;
  color: inherit;
  font-weight: 700;
}
.combobox__chevron {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--fg-muted); pointer-events: none;
}

.form-message {
  font-size: 0.8125rem;
  color: #dc2626; /* red-600 */
  min-height: 1.2em;
}

.b-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Success State */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}
.form-success__icon {
  width: 4rem; height: 4rem;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.form-success__icon svg { width: 2rem; height: 2rem; }
.form-success__title { font-size: 1.5rem; margin-bottom: 1rem; }
.form-success__text { color: var(--fg-light); margin-bottom: 2rem; }

.form-error-notice {
  background: #fef2f2;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  border: 1px solid #fecaca;
}

/* Spin animation for loading */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
/* Problems We Resolve grid */
.bk-problems {
  padding: 5rem 0;
  background: var(--bg-alt);
}
.bkp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .bkp-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bkp-grid { grid-template-columns: repeat(3, 1fr); }
}
.bkp-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bkp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px rgba(0, 86, 210, 0.2);
}
.bkp-card {
  padding: 1.75rem;
}
.bkp-head {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}
.bkp-icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bkp-icon svg { width: 1.25rem; height: 1.25rem; }
.bkp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--fg-dark);
  margin: 0;
}
.bkp-desc {
  color: var(--fg-light);
  font-size: 0.9375rem;
  margin: 0;
}

/* Hardware Repair section */
.bk-hardware {
  padding: 5rem 0;
  background: var(--bg-paper);
}

/* Guides section */
.bk-guides {
  padding: 5rem 0;
  background: var(--bg-alt);
}
.bkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) {
  .bkg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .bkg-grid { grid-template-columns: repeat(3, 1fr); }
}
.bkg-card {
  background: var(--bg-paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bkg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -12px rgba(0, 86, 210, 0.18);
}
.bkg-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 0.3125rem 0.875rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.bkg-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--fg-dark);
  margin-bottom: 1rem;
}
.bkg-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bkg-step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bkg-steps li {
  position: relative;
  padding-left: 2.25rem;
  color: var(--fg-light);
  font-size: 0.9375rem;
  counter-increment: bkg-step;
}
.bkg-steps li::before {
  content: counter(bkg-step);
  position: absolute;
  left: 0;
  top: 0.0625rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* FAQ section (schedule page) */
.bk-faq {
  padding: 5rem 0;
  background: var(--bg-paper);
}
.bk-faq-inner { max-width: 800px; }
.bk-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.bk-faq .faq-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.bk-faq .faq-item[open] {
  border-color: var(--accent);
  background: var(--bg-paper);
}
.bk-faq .faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--fg-dark);
}
.bk-faq .faq-item summary::-webkit-details-marker { display: none; }
.bk-faq .faq-item summary::after {
  content: '+';
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 500;
}
.bk-faq .faq-item[open] summary::after {
  content: '−';
}
.bk-faq .faq-item p {
  padding: 0 1.5rem 1.25rem;
  color: var(--fg-light);
  font-size: 0.9375rem;
}

.bh-actions {
  margin-top: 1.75rem;
}
@media (max-width: 899px) {
  .bh-actions { display: flex; justify-content: center; }
}
#form-area {
  scroll-margin-top: 6rem;
}

/* Compact centered form (hero) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.b-card-title--center {
  justify-content: center;
  text-align: center;
}
.book-hero .service-form { gap: 0.875rem; display: flex; flex-direction: column; }
.book-hero .form-row { gap: 0.875rem; }
.book-hero .form-field { gap: 0.25rem; }
.book-hero .form-message:empty { display: none; }
.book-hero .b-submit {
  width: auto;
  align-self: center;
  padding: 0.75rem 2.5rem;
}
.form-confidential {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--fg-light);
}

/* Exact quote-form styling */
.book-hero .form-input {
  border: 1px solid #767676;
  border-radius: 8px;
  background: #ffffff;
  color: #111111;
  font-size: 1.0625rem;
  padding: 0.9375rem 1.125rem;
}
.book-hero .form-input::placeholder {
  color: #111111;
  opacity: 1;
}
.book-hero .form-input:focus {
  border-color: #2c3e93;
  box-shadow: none;
  outline: none;
}
.book-hero .combobox__icon { display: none; }
.book-hero .combobox__input { padding-left: 1.125rem; }
.book-hero .combobox__chevron { color: #111111; }
.book-hero .form-textarea { min-height: 7rem; }
.book-hero .b-card-title {
  color: #111111;
  font-weight: 800;
  font-size: 1.375rem;
}
.book-hero .b-submit {
  background: var(--accent);
  border-radius: 8px;
  padding: 0.8125rem 2.25rem;
  font-size: 1.0625rem;
  box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.35);
}
.book-hero .b-submit:hover {
  background: var(--accent-hover);
}
.book-hero .form-confidential {
  color: #111111;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* Connect & Restore */
.bk-connect {
  padding: 3.5rem 0 1rem;
}
.bk-connect-lead {
  max-width: 820px;
}

/* SEO section */
.bk-seo {
  padding: 4rem 0;
  background: #f6f8fb;
}
.bk-seo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
@media (min-width: 900px) {
  .bk-seo-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
.bk-seo-item {
  background: #ffffff;
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  padding: 1.5rem 1.625rem;
}
.bk-seo-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--navy, #0a1830);
}
.bk-seo-item p {
  color: #4a5568;
  font-size: 0.9375rem;
  line-height: 1.65;
}
