:root {
  --primary: #0b5fff;
  --primary-dark: #0842b0;
  --primary-light: #eaf1ff;
  --dark: #0c2a5e;
  --gray: #5a6472;
  --light-bg: #ffffff;
  --border: #d7e3fb;
  --success: #1c8a4b;
  --danger: #c62828;
  --warning: #a06a00;
  --auth-blue: #465ce8;
  --auth-purple: #7615bd;
  --auth-button-blue: #4560ed;
  --auth-button-purple: #7512c2;
  --auth-input: #eaf1ff;
}
* { box-sizing: border-box; }
img, svg { max-width: 100%; height: auto; }
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light-bg);
  color: var(--dark);
  line-height: 1.5;
  overflow-x: hidden;
}
body.public-site-page {
  background-color: #f7f9fc;
  background-image:
    linear-gradient(rgba(247, 249, 252, 0.88), rgba(247, 249, 252, 0.92)),
    url("../../uploads/office.png");
  background-position: center, center;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
}
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(11, 95, 255, 0.45);
  outline-offset: 2px;
}

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 2px 10px rgba(12, 42, 94, 0.06); }
.header-inner { display: flex; align-items: center; padding: 14px clamp(16px, 3vw, 32px); gap: 24px; }
.brand { font-weight: 700; font-size: 1.25rem; color: var(--dark); }
.brand-logo { height: 42px; width: auto; display: block; border-radius: 8px; }
.main-nav { display: flex; flex: 1; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.main-nav a, .nav-dropdown-toggle { color: var(--dark); font-weight: 500; white-space: nowrap; }
.main-nav a:hover { color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown-heading { display: flex; align-items: center; gap: 2px; }
.nav-dropdown-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; background: none; border: 0; font: inherit; cursor: pointer; }
.nav-dropdown-toggle span { font-size: 0.7em; }
.nav-dropdown-menu { display: none; position: absolute; z-index: 10; top: calc(100% + 4px); left: 50%; min-width: 230px; transform: translateX(-50%); padding: 8px 0; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 22px rgba(12,42,94,0.14); }
.nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu, .nav-dropdown.open .nav-dropdown-menu { display: block; }
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 17, 33, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}
.nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-dropdown-menu a { display: block; padding: 9px 18px; font-weight: 400; }
.nav-dropdown-menu a:hover { background: var(--primary-light); text-decoration: none; }
.nav-action { padding: 8px 12px; border-radius: 6px; }
.nav-action-secondary { border: 1px solid var(--primary); }
.nav-action-primary { background: var(--primary); color: #fff !important; }
.nav-action-primary:hover { background: var(--primary-dark); text-decoration: none; }

.page-content { min-height: 60vh; padding: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 32px); }

.site-footer { 
  background: var(--dark); 
  color: #cfd8ea; 
  padding: 50px 20px 30px; 
  margin-top: 60px; 
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 640px) {
  .site-footer {
    display: none;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-title {
  margin: 0 0 12px 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-description {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

.site-footer h4 {
  margin: 0 0 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: #9db6f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-contact strong {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-weight: 600;
}

.footer-contact a {
  color: #9db6f0;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-phone-button {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9db6f0;
  font: inherit;
  cursor: pointer;
}
.footer-phone-button:hover { color: #fff; text-decoration: underline; }
.phone-choice-panel { width: min(420px, 100%); text-align: center; }
.phone-choice-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom a {
  color: #9db6f0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer p { 
  margin: 0; 
  font-size: 0.9rem; 
}

.site-footer a { 
  color: #9db6f0; 
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.hero { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; padding: 60px 30px; border-radius: 12px; margin-bottom: 30px; }
.hero h1 { margin-top: 0; font-size: 2rem; }
.hero p { max-width: 600px; opacity: 0.95; }

/* Homepage-specific sections */
.hero-home {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 24px;
  min-height: clamp(420px, 62vh, 650px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12) 0, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255,255,255,0.10) 0, transparent 40%),
    linear-gradient(135deg, var(--primary), var(--primary-dark));
}
.hero-content { max-width: 720px; margin: 0 auto; }
.hero-logo { height: 64px; width: auto; border-radius: 10px; margin-bottom: 20px; }
.hero-home h1 { font-size: 2.2rem; margin: 0 0 14px; }
.hero-home p { max-width: 560px; margin: 0 auto 26px; font-size: 1.05rem; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 13px 26px; font-size: 1rem; }
.btn-outline-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.75); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.service-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 26px 0 36px;
}
.service-chip {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 10px; text-align: center; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.service-chip:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(11,95,255,0.12); border-color: var(--primary); text-decoration: none; }
.service-chip-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.service-chip-icon svg { width: 20px; height: 20px; }

.section-heading { text-align: center; max-width: 620px; margin: 0 auto 22px; }
.section-heading h2 { margin-bottom: 6px; }

.feature-card { text-align: left; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(12,42,94,0.08); }
.icon-circle { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.icon-circle svg { width: 24px; height: 24px; }

.process-section { margin-top: 48px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.process-step { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 22px 18px; position: relative; }
.process-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff;
  font-weight: 700; margin-bottom: 12px;
}
.process-step h3 { margin: 0 0 6px; font-size: 1.02rem; }
.process-step p { margin: 0; font-size: 0.9rem; color: var(--gray); }

.cta-banner {
  text-align: center; background: var(--primary-light); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px 24px; margin-top: 48px;
}
.cta-banner h2 { margin-top: 0; }
.cta-banner p { max-width: 560px; margin: 0 auto 22px; color: var(--gray); }
.btn { display: inline-block; padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-size: 0.95rem; font-weight: 600; }
.btn:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { background: #fff; color: var(--primary); border: 1px solid var(--primary); }
.btn-danger { background: var(--danger); }
.btn-small { padding: 6px 12px; font-size: 0.85rem; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 18px; margin: 20px 0; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card h3 { margin-top: 0; }
.portfolio-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 20px 0; align-items: stretch; justify-items: stretch; grid-auto-flow: dense; }
.portfolio-gallery-item { margin: 0; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: 0 8px 18px rgba(12,42,94,0.04); width: 100%; height: 100%; display: flex; align-items: stretch; }
.portfolio-gallery-item img { display: block; width: 100%; height: 100%; min-height: 240px; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; background: linear-gradient(135deg, rgba(15,76,143,0.08), rgba(15,76,143,0.02)); border-radius: 12px; }
.job-opening { display: flex; flex-direction: column; }
.job-opening .btn { align-self: flex-start; margin-top: auto; }
.job-opening .job-share-actions .btn { align-self: auto; margin-top: 0; }
.job-share-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.job-share-actions .btn { white-space: nowrap; }
.job-share-status { flex-basis: 100%; color: var(--gray); font-size: 0.85rem; }
.job-detail-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.job-search-form { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr) auto auto; align-items: end; gap: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 10px; background: #f8faff; }
.job-search-form .form-row { margin: 0; }
.job-search-form .btn { white-space: nowrap; }
@media (max-width: 760px) { .job-search-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .job-search-form { grid-template-columns: 1fr; } .job-search-form .btn { width: 100%; } }
.service-card {
  display: flex; flex-direction: column; align-items: stretch; width: 100%;
  height: 100%;
  text-align: left; font: inherit; color: var(--dark); cursor: pointer;
  padding: 0; overflow: hidden; border-radius: 14px; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.service-card-image {
  display: block; width: 100%; height: clamp(200px, 24vw, 290px);
  margin: 0; object-fit: cover; object-position: center; border-radius: 0;
  background: linear-gradient(135deg, rgba(15,76,143,0.08), rgba(15,76,143,0.02));
}
.service-card h3,
.service-card p {
  padding-left: 20px; padding-right: 20px;
}
.service-card h3 { min-height: 2.4em; margin: 18px 0 10px; }
.service-card p { margin: 0 0 12px; line-height: 1.6; }
.service-card:hover { border-color: var(--primary); box-shadow: 0 10px 26px rgba(12,42,94,0.12); transform: translateY(-2px); }
.service-card-actions { display: flex; align-items: flex-start; margin-top: auto; min-height: 38px; padding: 0 20px 20px; }
.service-card .card-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.service-modal-panel { width: min(600px, 100%); }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12, 42, 94, 0.58); }
.modal-panel { position: relative; z-index: 1; width: min(820px, 100%); max-height: min(80vh, calc(100vh - 24px)); overflow-y: auto; overscroll-behavior: contain; background: #fff; border-radius: 14px; padding: 24px 28px 20px; box-shadow: 0 18px 50px rgba(12, 42, 94, 0.25); border: 1px solid rgba(18, 83, 155, 0.08); }
.modal-panel h2 { margin: 0 36px 10px 0; font-size: clamp(1.8rem, 2.4vw, 2.5rem); line-height: 1.2; color: var(--primary-dark); }
.modal-close { position: absolute; top: 14px; right: 16px; border: 0; background: rgba(13, 56, 100, 0.05); color: var(--gray); width: 34px; height: 34px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.modal-close:hover { background: rgba(13, 56, 100, 0.1); color: var(--primary-dark); }
.modal-panel form.stacked-form { max-width: none; margin: 14px 0 0; padding: 0; border: 0; }
.modal-panel form.stacked-form .form-row { margin-bottom: 14px; }
.modal-panel form.stacked-form .form-row label { margin-bottom: 6px; font-size: 0.82rem; color: var(--dark); font-weight: 700; }
.modal-panel form.stacked-form .form-row input,
.modal-panel form.stacked-form .form-row select,
.modal-panel form.stacked-form .form-row textarea { padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(19, 64, 115, 0.18); background: #f9fbff; box-shadow: inset 0 1px 2px rgba(17, 46, 87, 0.03); }
.modal-panel form.stacked-form .form-row input:focus,
.modal-panel form.stacked-form .form-row select:focus,
.modal-panel form.stacked-form .form-row textarea:focus { border-color: rgba(18, 83, 155, 0.4); box-shadow: 0 0 0 4px rgba(18, 83, 155, 0.08); background: #fff; outline: none; }
.marketer-terms-panel { width: min(760px, 100%); padding: 32px; }
.marketer-terms-panel h2 { font-size: clamp(1.6rem, 2vw, 2rem); }
.marketer-terms-panel > p { margin: 0; color: var(--dark); font-size: 1rem; line-height: 1.7; }
.modal-panel form.stacked-form.marketer-terms-form { display: block; margin-top: 22px; }
.marketer-terms-consent { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: #f8faff; line-height: 1.5; }
.marketer-terms-consent a { font-weight: 600; }
.marketer-terms-actions { display: flex; justify-content: flex-end; gap: 10px; }
.marketer-terms-actions .btn { min-width: 150px; text-align: center; }
.marketer-terms-actions button[type="submit"] { width: auto; }
@media (max-width: 640px) {
  .marketer-terms-panel { padding: 22px; }
  .marketer-terms-actions { flex-direction: row; }
  .marketer-terms-actions .btn { flex: 1 1 0; width: auto; min-width: 0; padding-right: 10px; padding-left: 10px; }
}
.job-application-meta { margin: 0 0 18px; padding: 16px 18px; border: 1px solid rgba(18, 83, 155, 0.12); border-radius: 10px; background: linear-gradient(135deg, rgba(18, 83, 155, 0.03), rgba(10, 160, 178, 0.03)); }
.job-application-meta__title { margin: 0 0 8px; font-weight: 800; color: var(--primary-dark); letter-spacing: 0.02em; text-transform: uppercase; font-size: 0.78rem; }
.job-application-meta p { margin: 0 0 8px; color: var(--dark); }
.job-application-meta p:last-child { margin-bottom: 0; }
@media (min-width: 641px) {
  .modal-panel form.stacked-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; row-gap: 2px; }
  .modal-panel form.stacked-form > .form-row:has(textarea),
  .modal-panel form.stacked-form > .form-grid-2,
  .modal-panel form.stacked-form > button,
  .modal-panel form.stacked-form > div:has(> button) { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .modal-panel { padding: 18px; }
  .modal-panel form.stacked-form { display: block; }
}
.modal-frame-panel { width: min(900px, 100%); height: min(850px, calc(100vh - 40px)); padding: 0; overflow: hidden; }
.modal-frame-panel iframe { width: 100%; height: 100%; border: 0; }
.modal-frame-panel:has(iframe[src*="quote"]) { width: min(1100px, 100%); height: min(480px, calc(100vh - 32px)); max-height: min(480px, calc(100vh - 32px)); }
.booking-embed-body { overflow: hidden; }
.booking-embed-body .modal { padding: 0; }
.booking-embed-body .modal-panel { box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; overflow: hidden; padding: 12px 24px 10px; border: 0; border-radius: 0; box-shadow: none; }
.booking-embed-body .modal-panel h2 { margin: 0 36px 4px 0; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.booking-embed-body .modal-panel form.stacked-form.booking-form { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: min-content; align-content: start; column-gap: 14px; row-gap: 4px; margin: 4px 0 0; overflow: hidden; }
.booking-embed-body .booking-form .form-grid-2 { display: contents; }
.booking-embed-body .booking-form .form-row { min-width: 0; margin: 0; }
.booking-embed-body .booking-form .booking-topic,
.booking-embed-body .booking-form .form-row:has(textarea),
.booking-embed-body .booking-form .checkbox-row,
.booking-embed-body .booking-form > button[type="submit"] { grid-column: 1 / -1; }
.booking-embed-body .booking-form .form-row label { margin-bottom: 2px; font-size: 0.76rem; }
.booking-embed-body .booking-form .form-row input,
.booking-embed-body .booking-form .form-row select,
.booking-embed-body .booking-form .form-row textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; height: 38px; padding: 5px 8px; font-size: 0.88rem; }
.booking-embed-body .booking-form .form-row textarea { height: 48px; min-height: 48px; }
.booking-embed-body .booking-form .checkbox-row { gap: 6px; margin: 2px 0; font-size: 0.82rem; line-height: 1.25; }
.booking-embed-body .booking-form .checkbox-row input { flex: 0 0 auto; }
.booking-embed-body .booking-form > button[type="submit"] { min-height: 40px; margin: 0; padding: 7px 14px; }
.booking-embed-body .modal-panel > .alert { flex: 0 0 auto; margin: 2px 0; }
@media (max-width: 640px) {
  .booking-embed-body .modal-panel { padding: 10px 12px 8px; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form { display: grid; column-gap: 8px; }
  .booking-embed-body .booking-form .form-row label { font-size: 0.72rem; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row input,
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row select,
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row textarea { min-height: 42px; height: 42px; padding: 4px 6px; font-size: 0.82rem; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row textarea { min-height: 48px; height: 48px; }
}
@media (max-height: 700px) {
  .booking-embed-body .modal-panel { padding-top: 6px; padding-bottom: 6px; }
  .booking-embed-body .modal-panel h2 { margin-bottom: 2px; font-size: 1.3rem; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form { margin-top: 2px; row-gap: 1px; }
  .booking-embed-body .booking-form .form-row label { margin-bottom: 1px; font-size: 0.64rem; line-height: 1; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row input,
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row select { min-height: 30px; height: 30px; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row textarea { min-height: 34px; height: 34px; }
  .booking-embed-body .booking-form .checkbox-row { margin: 0; font-size: 0.72rem; }
  .booking-embed-body .booking-form > button[type="submit"] { min-height: 34px; }
}
@media (max-height: 700px) and (min-width: 641px) {
  .booking-embed-body .modal-panel form.stacked-form.booking-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-content: start; gap: 0 8px; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row { margin: 0; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row label { margin-bottom: 0; font-size: 0.58rem; line-height: 1; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row input,
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row select { min-height: 28px; height: 28px; padding: 2px 5px; font-size: 0.78rem; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row textarea { min-height: 32px; height: 32px; padding: 2px 5px; font-size: 0.78rem; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .checkbox-row { margin: 0; font-size: 0.66rem; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form > button[type="submit"] { min-height: 30px; padding: 4px 10px; }
}
@media (max-height: 400px) and (min-width: 641px) {
  .booking-embed-body .modal-panel form.stacked-form.booking-form { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row input,
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row select { min-height: 24px; height: 24px; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form .form-row textarea { min-height: 28px; height: 28px; }
  .booking-embed-body .modal-panel form.stacked-form.booking-form > button[type="submit"] { min-height: 28px; }
}
.quote-embed-body { background: transparent; }
.quote-embed-content { padding: 14px 24px; }
.quote-embed-content > h2 { margin-bottom: 4px; font-size: clamp(1.5rem, 2vw, 1.9rem); }
.quote-embed-content .quote-survey-form { margin-top: 10px; padding: 16px 20px; }
.quote-embed-content .quote-survey-header { margin-bottom: 10px; }
.quote-embed-content .quote-survey-form .form-row { margin-bottom: 8px; }
.quote-embed-content .quote-survey-form .form-row label { margin-bottom: 4px; }
.quote-embed-content .quote-survey-form .form-grid-2 { gap: 8px 14px; }
.quote-embed-content .quote-survey-actions { margin-top: 8px; }

@media (max-width: 640px) {
  .modal { padding: 8px; }
  .modal-frame-panel { width: 100%; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .modal-frame-panel:has(iframe[src*="quote"]) { height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .quote-embed-content { padding: 12px; }
  .quote-embed-content .quote-survey-form { padding: 12px; }
}

form.stacked-form { width: 100%; max-width: 900px; margin: 24px auto 0; background: #fff; border: 1px solid rgba(19, 64, 115, 0.12); border-radius: 14px; padding: 26px; box-shadow: 0 8px 20px rgba(16, 41, 82, 0.04); }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; color: var(--dark); }
.form-row input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.form-row select,
.form-row textarea,
form:not(.stacked-form) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
form:not(.stacked-form) select,
form:not(.stacked-form) textarea {
  min-height: 44px;
  max-width: 100%;
}
.form-row input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .form-row select, .form-row textarea {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(19, 64, 115, 0.18); border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fff; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: rgba(18, 83, 155, 0.4); box-shadow: 0 0 0 4px rgba(18, 83, 155, 0.08); outline: none;
}
.form-row input[type="checkbox"], .form-row input[type="radio"] {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 1.1rem;
  padding: 0;
  accent-color: var(--primary);
}
.form-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 640px) { .form-grid-2 { grid-template-columns: 1fr; } }

.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 0.9rem; }
.alert-success { background: #e5f6ec; color: var(--success); border: 1px solid #b9e6cb; }
.alert-error { background: #fdeaea; color: var(--danger); border: 1px solid #f4c1c1; }
.alert-info { background: #e8f0fe; color: var(--primary-dark); border: 1px solid #c3d7fb; }

table.data-table { width: 100%; max-width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; table-layout: fixed; }
table.data-table th, table.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9rem; vertical-align: top; }
table.data-table th { background: var(--primary-light); font-size: 0.8rem; text-transform: uppercase; color: var(--primary-dark); letter-spacing: 0.02em; }
table.data-table tr:hover { background: var(--primary-light); }
table.data-table th:nth-child(1), table.data-table td:nth-child(1) { width: 18%; }
table.data-table th:nth-child(2), table.data-table td:nth-child(2) { width: 22%; }
table.data-table th:nth-child(3), table.data-table td:nth-child(3) { width: 20%; }
table.data-table th:nth-child(4), table.data-table td:nth-child(4) { width: 14%; }
table.data-table th:nth-child(5), table.data-table td:nth-child(5) { width: 16%; }
table.data-table th:nth-child(6), table.data-table td:nth-child(6) { width: 10%; }
table.data-table.training-requests-table td { white-space: normal; overflow-wrap: anywhere; }

@media (max-width: 860px) {
  .dash-main { padding: 18px 16px 20px; }
  .dash-topbar h1 { font-size: 1.2rem; }
  .toolbar { gap: 8px; }
  .toolbar input, .toolbar select { min-width: 0; }
}

@media (max-width: 768px) {
  .dash-sidebar { width: 180px; }
  .dash-main { margin-left: 180px; }
}

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: capitalize; }
.badge-new, .badge-pending, .badge-submitted, .badge-priced, .badge-unassigned { background: #fff2d6; color: var(--warning); }
.badge-in_review { background: #e8f0fe; color: var(--primary-dark); }
.badge-quoted, .badge-confirmed, .badge-accepted, .badge-active { background: #e0e8ff; color: var(--primary-dark); }
.badge-won, .badge-completed, .badge-enrolled, .badge-converted, .badge-paid, .badge-approved { background: #e5f6ec; color: var(--success); }
.badge-lost, .badge-cancelled, .badge-rejected, .badge-declined, .badge-failed { background: #fdeaea; color: var(--danger); }
.badge-waitlist { background: #f1e8fd; color: #6b2fb3; }
.badge-hot { background: #fdeaea; color: var(--danger); }
.badge-warm { background: #fff2d6; color: var(--warning); }
.badge-cold { background: #e8f0fe; color: var(--primary-dark); }

.dash-app { display: block; min-height: 100vh; }
.dash-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: 220px; background: var(--dark); color: #cfd8ea; padding: 24px 0; overflow-y: auto; z-index: 20; }
.dash-sidebar .brand { color: #fff; display: block; padding: 0 20px 20px; font-weight: 700; box-sizing: border-box; }
.sidebar-logo { width: 170px; max-width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 8px; }
.dash-toggle-logo { height: 22px; width: auto; vertical-align: middle; border-radius: 4px; margin-right: 6px; }
.dash-sidebar a { display: block; padding: 10px 20px; color: #cfd8ea; font-size: 0.92rem; }
.dash-sidebar a:hover, .dash-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.dash-bottom-nav { display: none; }
.dash-main { margin-left: 220px; padding: 26px 30px; min-width: 0; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.dash-topbar h1 { margin: 0; font-size: 1.4rem; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 22px; }
.kpi-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; color: inherit; text-decoration: none; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; cursor: pointer; }
.kpi-card:hover, .kpi-card:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(12, 42, 94, 0.08); border-color: rgba(11, 95, 255, 0.28); text-decoration: none; }
.kpi-card .kpi-value { font-size: 1.7rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.kpi-card .kpi-label { color: var(--gray); font-size: 0.85rem; }
.recent-activity-box { max-height: 42vh; overflow-y: auto; overflow-x: hidden; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px; }

.pagination { margin-top: 16px; display: flex; gap: 6px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 0.85rem; }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 800px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-box { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-bottom: 18px; }
.detail-box dt { font-weight: 600; color: var(--gray); font-size: 0.8rem; text-transform: uppercase; margin-top: 12px; }
.detail-box dd { margin: 2px 0 0; }

.twofa-box { max-width: 860px; width: min(100%, 860px); }
.twofa-setup-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; }
.twofa-qr-panel { display: flex; align-items: center; justify-content: center; width: 100%; padding: 14px; background: linear-gradient(135deg, rgba(11,95,255,0.04), rgba(116,105,255,0.04)); border: 1px solid var(--border); border-radius: 12px; }
.twofa-qr-image { display: block; width: 100%; max-width: 220px; height: auto; border-radius: 10px; background: #fff; }
.twofa-copy { min-width: 0; }
.twofa-secret-box, .twofa-uri-box { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 8px; background: var(--primary-light); border: 1px solid rgba(11,95,255,0.12); word-break: break-all; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.twofa-uri-label { margin-bottom: 8px; }
.twofa-uri-box { margin-top: 10px; }
.twofa-confirm-form { margin-top: 18px; }
@media (max-width: 640px) {
  .twofa-setup-grid { grid-template-columns: 1fr; }
  .twofa-qr-panel { max-width: 260px; width: 100%; margin: 0 auto; }
}

.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--primary-light); }
.login-box { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 34px; width: 100%; max-width: 380px; }
.login-box h1 { font-size: 1.3rem; margin-top: 0; }
.login-logo { max-width: 100%; height: auto; border-radius: 10px; display: block; margin: 0 auto 18px; }
.muted { color: var(--gray); font-size: 0.85rem; }
body:has(.client-auth-page) { overflow: auto; }
.client-auth-page { display: grid; place-items: center; width: 100%; min-height: 100vh; min-height: 100dvh; padding: 12px; background: linear-gradient(120deg, var(--auth-blue) 0%, #592fd0 52%, var(--auth-purple) 100%); }
.client-auth-card { width: min(100%, 600px); padding: clamp(18px, 2.7vw, 28px) clamp(20px, 4.8vw, 50px); background: #fff; border-radius: 15px; box-shadow: 0 24px 65px rgba(22, 13, 91, 0.24); text-align: center; }
.client-auth-logo { width: 76px; height: 44px; object-fit: contain; margin: 0 auto 10px; border-radius: 9px; }
.client-auth-card h1 { margin: 0 0 6px; color: var(--dark); font-size: clamp(1.7rem, 4vw, 2.25rem); line-height: 1.15; }
.client-auth-subtitle { margin: 0 0 18px; color: #748092; font-size: 1rem; }
.client-auth-form { text-align: left; }
.client-auth-field { margin-bottom: 12px; }
.client-auth-field label { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--dark); font-size: 1rem; font-weight: 600; }
.client-auth-field label span { width: 28px; color: var(--primary); font-size: 1.15rem; text-align: center; }
.client-auth-field input { width: 100%; min-height: 48px; padding: 11px 18px; border: 2px solid #dce2ea; border-radius: 11px; background: var(--auth-input); color: #16243c; font: inherit; font-size: 1rem; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.client-auth-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.14); }
.client-auth-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; margin-top: 4px; border: 0; border-radius: 11px; background: linear-gradient(100deg, var(--auth-button-blue), var(--auth-button-purple)); color: #fff; cursor: pointer; font: inherit; font-size: 1.15rem; font-weight: 700; box-shadow: 0 9px 20px rgba(83, 42, 207, 0.23); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.client-auth-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(83, 42, 207, 0.3); }
.client-auth-submit span { font-size: 1.3rem; }
.client-auth-forgot { display: block; margin-top: 16px; font-size: 0.92rem; font-weight: 600; }
.client-auth-home { display: block; margin-top: 8px; color: var(--gray); font-size: 0.82rem; }
.client-auth-card .alert { margin: 0 0 22px; text-align: left; }
@media (max-height: 700px) and (min-width: 481px) {
  .client-auth-card { margin: 12px 0; padding-top: 22px; padding-bottom: 22px; }
  .client-auth-logo { margin-bottom: 10px; }
  .client-auth-subtitle { margin-bottom: 18px; }
  .client-auth-field { margin-bottom: 14px; }
}
.client-login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 32px 20px; background: linear-gradient(135deg, #eef4ff 0%, #f8fbff 52%, #e4edff 100%); }
.client-login-box { width: min(100%, 480px); padding: clamp(28px, 5vw, 46px); background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 22px 60px rgba(12, 42, 94, 0.13); }
.client-login-logo { width: 110px; height: auto; border-radius: 10px; margin: 0 auto 26px; display: block; }
.client-login-box .client-login-eyebrow { margin-bottom: 10px; }
.client-login-box h1 { margin: 0 0 10px; font-size: 2rem; line-height: 1.1; }
.client-login-description { margin: 0 0 28px; color: var(--gray); font-size: 0.95rem; }
.client-login-home { display: block; margin-top: 14px; color: var(--gray); text-align: center; font-size: 0.82rem; }

/* ============================================================
   Responsive / mobile
   ============================================================ */

/* Public site: hamburger toggle for the main nav */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1.3rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
  color: var(--dark);
}

/* Dashboards (admin/secretary): hamburger toggle + mobile top bar */
.dash-toggle {
  display: none;
  width: 100%;
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.dash-toggle .hamburger-icon { margin-right: 8px; }

/* Scrollable tables on narrow screens instead of squeezed/broken layout */
@media (max-width: 560px) {
  .toolbar { display: flex; flex-wrap: wrap; width: 100%; }
  .toolbar input { flex: 1 1 220px; min-width: 0; }
  .toolbar select { flex: 0 0 150px; min-width: 0; }
  .toolbar button, .toolbar a { flex: 0 0 auto; }
  table.data-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
}

@media (max-width: 720px) {
  body.menu-open { overflow: hidden; }
  .site-header {
    position: sticky;
    z-index: 70;
  }
  .header-inner {
    position: relative;
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    font-size: 1.5rem;
  }
  .nav-backdrop { display: block; }
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 360px);
    max-height: calc(100dvh - 72px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 4px;
    padding: max(18px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
    margin: 0;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 24px rgba(12,42,94,0.14);
    transform: translateX(102%);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
  }
  .main-nav.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav > a,
  .main-nav > .nav-dropdown {
    flex: 0 0 auto;
    width: 100%;
  }
  .main-nav > a,
  .nav-dropdown-heading {
    min-height: 48px;
    justify-content: flex-start;
  }
  .main-nav a,
  .nav-dropdown-toggle {
    margin: 0;
    padding: 12px;
    border: 0;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.35;
    color: var(--dark);
    white-space: normal;
  }
  .main-nav > a,
  .nav-dropdown-heading {
    display: flex;
    align-items: center;
    border-radius: 8px;
    background: transparent;
  }
  .main-nav > a:hover,
  .nav-dropdown-heading:hover {
    color: var(--primary);
    background: var(--primary-light);
  }
  .nav-dropdown-heading {
    gap: 4px;
    overflow: visible;
  }
  .nav-dropdown-heading > a {
    flex: 1;
    padding: 12px;
    color: var(--dark);
  }
  .nav-dropdown-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    padding: 8px;
    color: var(--primary);
    background: transparent;
    border: 0;
  }
  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    bottom: auto;
    width: 100%;
    max-height: min(45vh, 360px);
    overflow-y: auto;
    padding: 4px 4px 4px 12px;
    background: #f8faff;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
  }
  .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { display: none; }
  .nav-dropdown.open .nav-dropdown-menu, .nav-dropdown-toggle[aria-expanded="true"] ~ .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px;
    font-size: 0.95rem;
    color: var(--dark);
    border-left: 0;
    border-radius: 6px;
    background: transparent;
  }
  .nav-dropdown-menu a:hover { background: var(--primary-light); }
  .nav-action,
  .nav-action-primary {
    margin-top: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-dark) !important;
  }
  .main-nav .nav-action-primary { background: var(--primary); color: #fff !important; }
  .nav-action-primary:hover {
    background: var(--primary-dark);
    color: #fff !important;
  }
  .header-inner { flex-wrap: wrap; gap: 10px; }

  .hero { padding: 34px 20px; }
  .hero h1 { font-size: 1.5rem; }
  .hero-home { padding: 40px 18px; }
  .hero-home h1 { font-size: 1.6rem; }
  .hero-logo { height: 52px; }
  .cta-banner { padding: 28px 16px; }

  form.stacked-form { padding: 18px; }
  form.stacked-form .btn,
  form.stacked-form button[type="submit"],
  form.stacked-form input[type="submit"] { width: 100%; min-height: 46px; }

  .badge-actions .btn, .btn { width: auto; }
}

@media (max-width: 860px) {
  .dash-sidebar { width: 190px; }
  .dash-main { margin-left: 190px; padding: 20px 18px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .detail-box { padding: 16px; }
}

@media (max-width: 480px) {
  .dash-app { display: block; min-height: 0; }
  .recent-activity-box { max-height: 36vh; }
  .dash-toggle {
    display: block;
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 120;
    width: auto;
    padding: 12px 18px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(4, 15, 35, 0.28);
  }
  .dash-sidebar {
    display: none;
    position: fixed;
    top: auto;
    left: 0;
    bottom: 80px;
    z-index: 110;
    width: min(88vw, 330px);
    max-height: calc(100dvh - 120px);
    padding: 10px 0 12px;
    overflow-y: auto;
    border-radius: 0 12px 12px 0;
    box-shadow: 8px 0 24px rgba(4, 15, 35, 0.22);
  }
  .dash-sidebar.open { display: block; }
  .dash-sidebar .brand { display: none; }
  .dash-sidebar a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 12px 22px;
    box-sizing: border-box;
  }
  .dash-sidebar .dash-bottom-link { display: flex; }
  .dash-app:has(.dash-sidebar.open) .dash-main { margin-left: 0; }
  .dash-bottom-nav {
    display: none;
  }
  .dash-main { margin-left: 0; padding: 16px; }
  .dash-topbar { flex-direction: column; align-items: flex-start; gap: 4px; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .detail-box { padding: 16px; }
  .toolbar { display: flex; flex-wrap: wrap; }
  .toolbar input, .toolbar select { flex: 1 1 100%; width: 100%; }
  .toolbar button, .toolbar a { width: auto; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .login-box { padding: 22px; }
  .card-grid { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
}

/* Comfortable tap targets on touch devices */
@media (pointer: coarse) {
  .btn, .btn-small, .form-row input, .form-row select, .form-row textarea, .toolbar input, .toolbar select {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ============================================================
   Enhanced Homepage Design
   ============================================================ */

/* Hero section with background image */
.hero-home {
  background-size: cover !important;
  background-position: center right !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.85), rgba(8, 66, 176, 0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

/* Trust badge in hero section.
   Default: sits in normal flow, centered below the hero text - avoids any
   chance of overlapping hero copy on small/medium screens.
   Wide screens only: floats bottom-right for the polished layered look. */
.hero-trust-badge {
  position: static;
  margin: 28px auto 0;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 12px 40px rgba(12, 42, 94, 0.15);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: fit-content;
}

@media (min-width: 1024px) {
  .hero-trust-badge {
    margin-top: 30px;
  }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 40px;
  height: 40px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
}

.trust-number {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-text {
  font-size: 0.75rem;
  color: var(--dark);
  line-height: 1.3;
}

.trust-text strong {
  display: block;
  color: var(--dark);
  font-weight: 700;
  margin-bottom: 2px;
}

/* Statistics Section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-light), rgba(11, 95, 255, 0.05));
  border-radius: 12px;
  padding: 50px 30px;
  margin: 48px 0;
  border: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--gray);
  font-weight: 500;
}

/* Enhanced service cards with images */
.card-grid-featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 24px;
  margin: 30px 0;
  width: 100%;
  overflow: hidden;
}

.feature-card-image {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.feature-card-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(12, 42, 94, 0.08);
}

.card-image-container {
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-light), rgba(11, 95, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.card-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.3s ease;
}

.feature-card-image:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-card-image h3 {
  margin: 0 0 12px;
  color: var(--dark);
  font-size: 1.1rem;
}

.feature-card-image p {
  margin: 0 0 16px;
  color: var(--gray);
  font-size: 0.9rem;
  flex: 1;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  align-self: flex-start;
}

.card-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Testimonials Section */
.testimonials-section {
  margin: 48px 0;
  padding: 0;
}

.testimonials-marquee {
  overflow: hidden;
  margin-top: 32px;
  position: relative;
}

.testimonials-track {
  display: flex;
  width: max-content;
  gap: 24px;
  animation: testimonials-scroll 30s linear infinite;
  will-change: transform;
}

.testimonials-marquee:hover .testimonials-track {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 min(360px, 80vw);
  min-width: 300px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 8px rgba(12, 42, 94, 0.04);
}

@keyframes testimonials-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(12, 42, 94, 0.12);
}

.testimonial-content {
  flex: 1;
  margin-bottom: 20px;
}

.testimonial-stars {
  color: #ffc107;
  font-size: 0.95rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.author-info {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.9rem;
}

.author-title {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 2px;
}

/* Website pricing */
.pricing-section { margin: 56px 0 20px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid #c9d5e7;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(12, 42, 94, 0.05);
}
.pricing-card-featured { border: 2px solid #f4511e; }
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 18px;
  border-radius: 999px;
  background: #f4511e;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card h3 { margin: 8px 0 8px; text-align: center; color: #08152e; }
.pricing-best-for { min-height: 48px; margin: 0; color: var(--gray); text-align: center; font-size: 0.9rem; }
.pricing-price { margin: 24px 0; color: #f4511e; font-size: 2.35rem; font-weight: 800; text-align: center; }
.pricing-features { flex: 1; margin: 0 0 28px; padding: 20px 0 0; border-top: 1px solid var(--border); list-style: none; }
.pricing-features li { position: relative; margin: 0 0 14px; padding-left: 24px; color: var(--dark); }
.pricing-features li::before { content: '\2713'; position: absolute; left: 0; color: #f4511e; font-weight: 700; }
.pricing-button { width: 100%; margin-top: auto; text-align: center; }
.admin-pricing-list { display: grid; gap: 12px; }
.admin-pricing-item { border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; }
.admin-pricing-item summary { display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.admin-pricing-form { max-width: 680px; margin-top: 20px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin: 12px 0 18px; }
.logo-service-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 34px 0 12px; padding: 24px 28px; background: var(--primary-light); border: 1px solid var(--border); border-radius: 10px; }
.logo-service-banner h2 { margin: 4px 0 6px; color: var(--dark); }
.logo-service-banner p { max-width: 650px; margin: 0; color: var(--gray); }
.service-label { color: var(--primary); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.logo-service-offer { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.logo-service-offer strong { color: #f4511e; font-size: 1.45rem; white-space: nowrap; }
.trusted-companies { margin: 58px 0 10px; }
.trusted-logo-carousel { display: flex; align-items: center; gap: 12px; }
.trusted-logo-viewport { min-width: 0; flex: 1; overflow: hidden; }
.trusted-logo-grid { display: flex; gap: 12px; align-items: center; transition: transform 0.45s ease; }
.trusted-logo-item { display: flex; flex: 0 0 calc((100% - 48px) / 5); align-items: center; justify-content: center; aspect-ratio: 1; min-width: 0; padding: 8px; background: #fff; border: 1px solid var(--border); border-radius: 50%; overflow: hidden; }
.trusted-logo-item img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 50%; }
.booking-availability { display: grid; gap: 12px; margin: 16px 0 18px; padding: 14px 16px; background: var(--primary-light); border: 1px solid var(--border); border-radius: 8px; font-size: 0.88rem; }
.booking-time-note { display: block; margin-top: 3px; color: var(--gray); font-size: 0.8rem; }
.booking-occupied { display: grid; gap: 3px; color: var(--gray); }
.booking-occupied strong { color: var(--danger); }
.admin-logo-upload-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 18px 0 24px; }
.admin-logo-upload-form label { width: 100%; font-weight: 600; }
.admin-logo-upload-form input[type="file"] { max-width: 100%; }
.admin-logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.admin-logo-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; }
.admin-logo-item img { width: 76px; height: 76px; object-fit: contain; border-radius: 50%; }
.trusted-logo-control { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--border); border-radius: 50%; background: #fff; color: var(--primary); cursor: pointer; font-size: 1.1rem; }
.trusted-logo-control:hover { border-color: var(--primary); background: var(--primary-light); }
@media (max-width: 768px) { .trusted-logo-item { flex-basis: calc((100% - 24px) / 3); } }
@media (max-width: 480px) { .trusted-logo-carousel { gap: 6px; } .trusted-logo-grid { gap: 8px; } .trusted-logo-item { flex-basis: calc((100% - 8px) / 2); } .trusted-logo-control { flex-basis: 30px; width: 30px; height: 30px; } }

/* CTA Banner Enhancement */
.cta-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-banner h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.8rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 28px;
}

.cta-banner .btn {
  margin: 0 6px 8px 0;
}

/* Home "What We Do": all five cards on a single row on desktop */
@media (min-width: 1025px) {
  .card-grid-featured {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }
  .card-grid-featured .card-image { object-fit: cover; }
  .card-grid-featured .card-content { padding: 18px; }
  .card-grid-featured .feature-card-image h3 { font-size: 1.02rem; }
  .card-grid-featured .feature-card-image p { font-size: 0.85rem; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .card-grid-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .logo-service-banner { align-items: flex-start; flex-direction: column; padding: 20px; }
  .logo-service-offer { justify-content: space-between; width: 100%; }

  .stats-section {
    padding: 30px 20px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .card-grid-featured {
    grid-template-columns: 1fr;
  }

  .card-image-container {
    aspect-ratio: 16 / 10;
  }

  .testimonials-track {
    gap: 20px;
  }

  .pricing-grid { grid-template-columns: 1fr; }

  .testimonial-card {
    min-width: min(300px, 80vw);
  }

  .cta-banner h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .card-content {
    padding: 18px;
  }
}

/* ============================================================
   AI Website Sales Agent - floating chat widget
   ============================================================ */
.ai-widget {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  top: auto !important;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ai-widget.is-collapsed .ai-widget-panel { display: none; }
.ai-widget-toggle {
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: var(--primary); color: #fff; font-size: 1.6rem;
  box-shadow: 0 6px 20px rgba(11, 95, 255, 0.35); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease;
  position: relative; z-index: 2;
}
.ai-widget-toggle:hover { background: var(--primary-dark); transform: translateY(-2px); }
.ai-widget-panel {
  position: relative; right: 0; bottom: 10px; width: min(360px, 90vw);
  height: min(480px, 70vh); background: #fff; border-radius: 16px;
  border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(12, 42, 94, 0.22);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease;
}
.ai-widget.is-collapsed .ai-widget-panel { opacity: 0; transform: translateY(12px); pointer-events: none; }
.ai-widget-header {
  background: var(--primary); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 600;
}
.ai-widget-close { background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.ai-widget-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--primary-light); }
.ai-msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 0.92rem; line-height: 1.4; white-space: pre-wrap; word-break: break-word; }
.ai-msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); color: var(--dark); border-bottom-left-radius: 4px; }
.ai-msg-user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.ai-msg-cta { align-self: flex-start; }
.ai-choice-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-choice-btn { border-radius: 999px; padding: 8px 12px; }
.ai-widget-typing { padding: 0 16px 8px; font-size: 0.85rem; color: var(--gray); font-style: italic; }
.ai-widget-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: #fff; }
.ai-widget-form input { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; font: inherit; }
.ai-widget-form input:focus { outline: 2px solid var(--primary-light); border-color: var(--primary); }
.chat-request-modal { position: fixed; inset: 0; z-index: 210; display: none; } 
.chat-request-modal.open { display: flex; align-items: center; justify-content: center; }
.chat-request-backdrop { position: absolute; inset: 0; background: rgba(12, 42, 94, 0.58); }
.chat-request-panel { position: relative; z-index: 1; width: min(760px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(12, 42, 94, 0.25); }
.chat-request-panel iframe { width: 100%; height: 100%; border: 0; }
.chat-request-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.85); color: var(--dark); font-size: 1.6rem; cursor: pointer; }
@media (max-width: 480px) {
  .ai-widget { right: 12px; bottom: 12px; }
  .ai-widget-panel { right: -4px; width: 94vw; }
  .chat-request-panel { width: min(94vw, 760px); height: min(80vh, 820px); }
}

/* Admin: AI lead chat transcript */
.ai-transcript { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow-y: auto; }
.ai-transcript-msg { padding: 8px 12px; border-radius: 10px; font-size: 0.92rem; background: var(--primary-light); }
.ai-transcript-msg.ai-transcript-assistant { background: #fff; border: 1px solid var(--border); }

/* ===== Order pop-up: pricing_buy.php?embed=1 shown inside an iframe modal =====
   The pop-up is one screen tall. The title, step bar and Back/Continue buttons
   stay in view; steps are laid out compactly so they fit without scrolling,
   and only the middle of a step scrolls on very small screens. */
.order-modal .order-frame-panel { width: min(960px, 100%); height: min(800px, calc(100vh - 24px)); height: min(800px, calc(100dvh - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
@media (max-width: 640px) {
  .order-modal { padding: 0; }
  .order-modal .order-frame-panel { width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; }
}
html:has(body.order-embed-body) { height: 100%; }
body.order-embed-body { height: 100%; margin: 0; background: #fff; overflow: hidden; }
.order-embed-content { box-sizing: border-box; display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: 14px clamp(14px, 3vw, 26px) 12px; }
.order-embed-head { flex: 0 0 auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; margin: 0 40px 6px 0; }
.order-embed-head h1 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.2; color: var(--primary-dark); }
.order-embed-head .pricing-price { margin: 0; font-size: 1.15rem; text-align: left; }
.order-embed-content > p, .order-embed-content > .detail-box, .order-embed-content > .alert { flex: 0 0 auto; }
.order-embed-content > p { margin: 0 0 6px; font-size: 0.82rem; }
.order-embed-content > p.muted { margin-top: 0 !important; font-size: 0.76rem; }
.order-embed-content > .detail-box { margin: 0 0 8px; padding: 7px 12px; font-size: 0.82rem; border-radius: 8px; }
.order-embed-content > .detail-box h2 { display: inline; margin: 0 6px 0 0; font-size: 0.82rem; }
.order-embed-content > .detail-box h2 + p { display: inline; margin: 0; }
.order-embed-content > .alert { margin: 0 0 8px; padding: 8px 12px; font-size: 0.85rem; }
.order-embed-content .btn { min-height: 38px; padding: 8px 16px; }

/* form shell */
.order-embed-content form.stacked-form { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.order-embed-content form.stacked-form .form-row { margin-bottom: 8px; }
.order-embed-content form.stacked-form .form-row label { margin-bottom: 3px; font-size: 0.78rem; }
.order-embed-content form.stacked-form .form-row input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.order-embed-content form.stacked-form .form-row select { box-sizing: border-box; width: 100%; min-height: 36px; height: 36px; padding: 5px 10px; font-size: 0.9rem; }
.order-embed-content form.stacked-form .form-row textarea { box-sizing: border-box; width: 100%; padding: 6px 10px; font-size: 0.9rem; }
.order-embed-content form.stacked-form .muted { margin: 2px 0 0; font-size: 0.74rem; }
.order-embed-content .checkbox-row { margin: 3px 0; font-size: 0.82rem; line-height: 1.3; }

/* website wizard: step bar + one panel at a time, buttons pinned to the bottom */
.order-embed-content .website-order-progress { flex: 0 0 auto; gap: 10px; margin: 0 0 4px; }
.order-embed-content .website-order-progress li { gap: 6px; padding: 6px 2px; }
.order-embed-content .website-order-progress li strong { font-size: 0.8rem; }
.order-embed-content .website-order-panel { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; padding: 8px 2px 0; scroll-margin-top: 0; }
.order-embed-content .website-order-panel > h2 { margin: 2px 0 8px; font-size: 1.2rem; }
.order-embed-content .website-prototype-step { font-size: 11px; }
.order-embed-content [data-order-panel="3"] > p,
.order-embed-content [data-order-panel="4"] > p.website-order-intro { display: none; }
.order-embed-content .website-order-actions { position: sticky; bottom: 0; z-index: 2; margin-top: auto; padding: 10px 0 2px; background: #fff; border-top: 1px solid #e6ebe9; }

/* step 2: questions on top, document upload + notes side by side */
.order-embed-content .website-order-panel[data-order-panel="2"] { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 12px; align-content: start; }
.order-embed-content [data-order-panel="2"] > .website-prototype-builder { grid-column: 1 / -1; }
.order-embed-content [data-order-panel="2"] > .requirements-document-upload { grid-column: 1; }
.order-embed-content [data-order-panel="2"] > .form-row { grid-column: 2; display: flex; flex-direction: column; margin: 0; }
.order-embed-content [data-order-panel="2"] > .form-row textarea { flex: 1 1 auto; min-height: 110px; resize: none; }
.order-embed-content [data-order-panel="2"] > .website-order-actions { grid-column: 1 / -1; }
.order-embed-content .website-prototype-builder { margin: 0 0 8px; padding: 10px 14px 12px; border-top-width: 3px; }
.order-embed-content .website-prototype-heading { max-width: none; margin-bottom: 6px; }
.order-embed-content .website-prototype-heading h2 { margin: 2px 0; font-size: 1.15rem; }
.order-embed-content .website-prototype-heading p { display: none; }
.order-embed-content .website-prototype-questions { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; max-width: none; margin-bottom: 4px; }
.order-embed-content .prototype-status { margin: 6px 0 0; font-size: 0.8rem; }
.order-embed-content .requirements-document-upload { margin: 0; padding: 10px 12px; font-size: 0.82rem; }
.order-embed-content .requirements-document-upload h3 { margin: 0 0 4px; font-size: 0.9rem; }
.order-embed-content .requirements-document-upload > h3 + p { display: none; }
.order-embed-content .requirements-upload-label { margin-bottom: 4px; font-size: 0.78rem; }
.order-embed-content .requirements-upload-controls { gap: 6px; }
.order-embed-content .requirements-upload-controls input[type="file"] { max-width: 100%; font-size: 0.78rem; }
.order-embed-content .requirements-document-upload p { margin: 4px 0 0; font-size: 0.74rem; }

/* step 3: prototype preview shrunk to fit */
.order-embed-content .website-prototype-preview { margin: 0 0 8px; }
.order-embed-content .prototype-nav { min-height: 40px; }
.order-embed-content .prototype-hero { min-height: 0; padding: 14px 0; gap: 5%; }
.order-embed-content .prototype-copy h3 { margin: 6px 0; font-size: clamp(20px, 3vw, 28px); }
.order-embed-content .prototype-copy p { margin: 0 0 8px; font-size: 13px; }
.order-embed-content .prototype-art { min-height: 110px; }
.order-embed-content .prototype-generated-sections { gap: 16px; padding: 10px 0; }
.order-embed-content .prototype-generated-section p { font-size: 12px; line-height: 1.4; }
.order-embed-content .prototype-footer { padding: 8px 0; }
.order-embed-content .prototype-disclaimer { padding: 6px 12px; }

/* step 4: agreement */
.order-embed-content [data-order-panel="4"] .detail-box { margin: 0 0 8px; padding: 8px 12px; font-size: 0.84rem; }
.order-embed-content [data-order-panel="4"] .detail-box p { margin: 0 0 4px; }
.order-embed-content [data-order-panel="4"] .detail-box:first-of-type { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.order-embed-content [data-order-panel="4"] .detail-box:first-of-type p { margin: 0; }
.order-embed-content [data-order-panel="4"] .detail-box h3 { margin: 0 0 4px; font-size: 0.95rem; }

/* hidden panels must stay hidden (keep this after the panel display rules) */
.order-embed-content .website-order-panel[hidden] { display: none; }

/* QA / company profile: the single-page form, two columns with a pinned submit */
.order-embed-content form.stacked-form:not([data-order-wizard]) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-content: start; overflow-y: auto; }
.order-embed-content form.stacked-form:not([data-order-wizard]) > * { grid-column: 1 / -1; }
.order-embed-content form.stacked-form:not([data-order-wizard]) > .form-row:has(#buyer_name),
.order-embed-content form.stacked-form:not([data-order-wizard]) > .form-row:has(#buyer_email) { grid-column: auto; }
.order-embed-content form.stacked-form:not([data-order-wizard]) textarea { height: 90px; min-height: 90px; resize: vertical; }
.order-embed-content form.stacked-form:not([data-order-wizard]) .detail-box { margin: 0 0 8px; padding: 10px 12px; }
.order-embed-content form.stacked-form:not([data-order-wizard]) .detail-box h2 { margin: 0 0 4px; font-size: 1rem; }
.order-embed-content form.stacked-form:not([data-order-wizard]) .detail-box p { margin: 0 0 4px; font-size: 0.82rem; }
.order-embed-content form.stacked-form:not([data-order-wizard]) > button[type="submit"] { position: sticky; bottom: 0; z-index: 2; box-shadow: 0 -8px 8px -4px #fff; }

/* narrower pop-ups and short screens */
@media (max-width: 760px) {
  .order-embed-content .website-prototype-questions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .order-embed-content .website-order-panel[data-order-panel="2"] { display: flex; }
  .order-embed-content [data-order-panel="2"] > .requirements-document-upload { margin-bottom: 8px; }
  .order-embed-content [data-order-panel="2"] > .form-row textarea { flex: 0 0 auto; min-height: 90px; }
  .order-embed-content .website-prototype-questions { grid-template-columns: 1fr; }
  .order-embed-content .website-order-progress li span { display: none; }
  .order-embed-content .prototype-generated-sections { grid-template-columns: 1fr; gap: 8px; }
  .order-embed-content .prototype-nav nav { display: none; }
  .order-embed-content form.stacked-form:not([data-order-wizard]) { display: block; }
}
@media (max-height: 680px) {
  .order-embed-content .website-prototype-step { display: none; }
  .order-embed-content .website-order-panel > h2 { margin-bottom: 4px; font-size: 1.05rem; }
}
