/* Extra layout pieces for Searchblooms home fidelity */
.hero-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}

.hero-form textarea {
  width: 100%;
  min-height: 100px;
  border: 0;
  border-radius: 3px;
  padding: 13px 24px;
  font: 300 1.05rem/1.3 var(--font);
  color: var(--ink);
  resize: vertical;
}

.service-card .service-icon-img {
  width: 72px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}

.detail-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 7px;
}

.detail-visual {
  padding: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: var(--shadow-cyan);
}

.press-grid img {
  max-height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

.tool-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  object-fit: contain;
}

.team-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.team-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-cyan);
}

.team-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.team-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.testimonial-with-photo {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 768px) {
  .testimonial-with-photo {
    grid-template-columns: 120px 1fr;
  }
}

.testimonial-with-photo img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto;
}

/* Modal — refine existing Searchbloom popup classes */
.sb-overlay.d-none {
  display: none !important;
}

.sb-overlay:not(.d-none) {
  padding: 20px 15px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.sb-popup {
  animation: sbModalIn 0.28s ease;
}

@keyframes sbModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sb-popup .sb-close-btn {
  z-index: 5;
  cursor: pointer;
  line-height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.sb-popup .sb-close-btn:hover,
.sb-popup .sb-close-btn:focus-visible {
  background-color: #2ca8d9;
  outline: none;
}

.sb-popup .fp-hero-form.fp-hero-popup {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin-bottom: 0;
}

.sb-popup .fp-leadform-cta {
  margin-bottom: 18px;
  padding-right: 28px;
  font-size: clamp(1.25rem, 2.5vw, 1.85rem);
}

.sb-popup .fp-form-review {
  display: block;
  height: 100%;
  padding-left: 24px;
  padding-right: 8px;
  padding-top: 8px;
}

.sb-popup .fp-r-foto img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.sb-popup .r-job {
  display: block;
  font-size: 0.95rem;
  opacity: 0.9;
}

.sb-popup .fp-hero-notemob {
  margin-top: 0;
}

.sb-popup .fp-hero-notemob p {
  margin: 0;
}

.sb-popup .sb-hero-fields button[type="submit"]:hover {
  background: #e8444a;
}

.sb-popup .sb-hero-fields input:focus {
  outline: 2px solid #112337;
  outline-offset: 1px;
}

body.sb-modal-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .sb-popup .fp-form-review {
    display: none;
  }

  .sb-popup .fp-leadform-cta {
    font-size: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-popup {
    animation: none;
  }
}

/* Thank you page */
.thankyou-page {
  background: #fff;
}

.sb-thankyou {
  padding-top: 0;
}

.sb-thankyou-hero {
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(188, 234, 247, 0.7), transparent 60%),
    linear-gradient(180deg, #f5fcff 0%, #fff 100%);
  padding: 72px 0 48px;
}

.sb-thankyou-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 48px 40px 44px;
  box-shadow:
    0 0 0 1px rgba(44, 168, 217, 0.1),
    0 18px 48px rgba(17, 35, 55, 0.1);
  animation: sbModalIn 0.4s ease both;
}

.sb-thankyou-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #2ca8d9, #1f8ab5);
  box-shadow: 0 10px 24px rgba(44, 168, 217, 0.35);
}

.sb-thankyou-check svg {
  width: 34px;
  height: 34px;
  display: block;
}

.sb-thankyou-eyebrow {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2ca8d9;
}

.sb-thankyou-card h1 {
  margin: 0 0 14px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #112337;
  letter-spacing: -0.02em;
}

.sb-thankyou-card h1 em {
  font-style: italic;
  color: #2ca8d9;
  font-weight: 600;
}

.sb-thankyou-lead {
  margin: 0 auto 22px;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #5d7183;
}

.sb-thankyou-status {
  display: inline-block;
  margin: 0 0 22px;
  padding: 10px 16px;
  border-radius: 8px;
  background: #f5fcff;
  border: 1px solid rgba(44, 168, 217, 0.25);
  color: #112337;
  font-size: 0.92rem;
}

.sb-thankyou-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.sb-thankyou-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 6px;
  font: italic 700 0.95rem / 1.2 Montserrat, sans-serif;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.sb-thankyou-btn--primary {
  background: #ff5056;
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 80, 86, 0.28);
}

.sb-thankyou-btn--primary:hover {
  background: #e8444a;
  color: #fff;
}

.sb-thankyou-btn--ghost {
  background: transparent;
  color: #2ca8d9;
  border: 2px solid #2ca8d9;
}

.sb-thankyou-btn--ghost:hover {
  background: #2ca8d9;
  color: #fff;
}

.sb-thankyou-btn:active {
  transform: translateY(1px);
}

.sb-thankyou-next {
  padding: 28px 0 56px;
  background: #fff;
}

.sb-thankyou-next-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 768px) {
  .sb-thankyou-next-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

.sb-thankyou-step {
  padding: 26px 22px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fcfe 0%, #fff 100%);
  border: 1px solid rgba(44, 168, 217, 0.14);
}

.sb-thankyou-step-num {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #2ca8d9;
}

.sb-thankyou-step h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #112337;
  line-height: 1.3;
}

.sb-thankyou-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #5d7183;
}

.sb-thankyou-contact {
  padding: 0 0 64px;
}

.sb-thankyou-contact-box {
  display: grid;
  gap: 22px;
  align-items: center;
  padding: 32px 28px;
  border-radius: 12px;
  background: #2ca8d9;
  color: #fff;
  box-shadow: 0 12px 28px rgba(44, 168, 217, 0.28);
}

@media (min-width: 768px) {
  .sb-thankyou-contact-box {
    grid-template-columns: 1.1fr 1fr;
    padding: 36px 40px;
  }
}

.sb-thankyou-contact-box h2 {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
}

.sb-thankyou-contact-box p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
}

.sb-thankyou-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.sb-thankyou-contact-list a,
.sb-thankyou-contact-list span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
}

.sb-thankyou-contact-list a:hover {
  text-decoration: underline;
}

.sb-thankyou-contact-list img {
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.sb-thankyou-footer {
  border-top: 1px solid #e4e4e4;
  background: #fff;
}

.sb-thankyou-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0;
}

.sb-thankyou-footer-inner p {
  margin: 0;
  color: #5d7183;
  font-size: 0.88rem;
}

.sb-thankyou-footer .sb-bar {
  margin: 0;
}

@media (max-width: 575.98px) {
  .sb-thankyou-hero {
    padding: 48px 0 32px;
  }

  .sb-thankyou-card {
    padding: 36px 22px 32px;
  }

  .sb-thankyou-actions {
    flex-direction: column;
  }

  .sb-thankyou-btn {
    width: 100%;
  }
}
