/* Contact page body (block "contact-birthdaybanner") */

.bb-contact-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
  background: var(--bb-gradient-135);
  text-align: center; /* page heroes are centered (DESIGN.md "Heroes") */
}
/* With a photo: same treatment as the Themes and About heroes. */
.bb-contact-hero.has-photo {
  background:
    linear-gradient(100deg, rgba(79, 130, 195, .92) 0%, rgba(79, 130, 195, .86) 30%, rgba(241, 90, 85, .8) 70%, rgba(252, 184, 48, .66) 100%),
    var(--bb-hero-img) center 40% / cover no-repeat,
    var(--bb-gradient-135);
}
@media (max-width: 720px) {
  .bb-contact-hero.has-photo {
    background:
      linear-gradient(160deg, rgba(79, 130, 195, .92) 0%, rgba(241, 90, 85, .78) 70%, rgba(252, 184, 48, .7) 100%),
      var(--bb-hero-img) 30% center / cover no-repeat,
      var(--bb-gradient-135);
  }
}

.bb-contact-blob {
  position: absolute;
  border-radius: 55% 45% 40% 60% / 45% 50% 50% 55%;
  background: rgba(255, 255, 255, .14);
  pointer-events: none;
}
.bb-contact-blob-1 { top: -70px; right: -60px; width: 240px; height: 240px; }
.bb-contact-blob-2 { bottom: -110px; left: -90px; width: 270px; height: 270px; }
.bb-contact-blob-3 { bottom: -50px; right: 14%; width: 140px; height: 140px; }

.bb-contact-hero-fly {
  position: absolute;
  top: 16%;
  right: 8%;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, .28));
  animation: bb-contact-fly 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes bb-contact-fly {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(10px, -14px) rotate(5deg); }
}
/* Hidden below 1100px so it never overlaps the centered heading. */
@media (max-width: 1100px) {
  .bb-contact-hero-fly { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-contact-hero-fly { animation: none; }
}

.bb-contact-hero-card {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}
.bb-contact-hero-card .bb-eyebrow {
  color: rgba(255, 255, 255, .8);
}
.bb-contact-hero-card h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0 0 16px;
  color: var(--bb-white);
  text-shadow: 0 4px 24px rgba(0, 0, 0, .3);
}
.bb-contact-hero-lede {
  margin: 0 auto;
  max-width: 34em;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .88);
}

/* Breathing room under the hero; scales from 36px (phone) to 64px (desktop). */
.bb-contact-body { padding-top: clamp(36px, 5vw, 64px); }

.bb-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr);
  gap: 36px;
  align-items: start;
}

/* --- Form --- */

.bb-contact-form {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-card);
  padding: 32px 30px;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bb-contact-form-head h2 {
  font-size: 20px;
  margin: 0 0 4px;
  letter-spacing: -.02em;
}
.bb-contact-form-head p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--bb-body);
}

.bb-contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bb-contact-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bb-contact-field label {
  font-family: var(--bb-font-heading);
  font-size: 11px;
  font-weight: 500;
  color: var(--bb-ink);
  text-transform: uppercase;
  letter-spacing: .18em;
}
.bb-contact-field input,
.bb-contact-field textarea {
  width: 100%;
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-inner);
  padding: 13px 14px;
  font-family: var(--bb-font-body);
  font-size: 14px;
  color: var(--bb-ink);
  min-height: 44px;
}
.bb-contact-field textarea { line-height: 1.6; resize: vertical; }
.bb-contact-field input:focus,
.bb-contact-field textarea:focus {
  outline: none;
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 2px rgba(79, 130, 195, .28);
}
.bb-contact-field input::placeholder,
.bb-contact-field textarea::placeholder { color: var(--bb-muted); opacity: 1; }

.bb-contact-occasions { display: flex; flex-wrap: wrap; gap: 8px; }
.bb-contact-occasion {
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid var(--bb-border);
  background: var(--bb-white);
  font-family: var(--bb-font-heading);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--bb-ink);
  cursor: pointer;
  min-height: 44px;
  transition: border-color .18s var(--bb-ease), background-color .18s var(--bb-ease), color .18s var(--bb-ease);
}
.bb-contact-occasion.is-active {
  border-color: var(--bb-blue);
  background: rgba(79, 130, 195, .08);
  color: var(--bb-blue);
}

.bb-contact-counter { margin: 0; font-size: 12px; color: var(--bb-body); }

.bb-contact-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.bb-contact-status { margin: 0; font-size: 12.5px; color: var(--bb-body); }
/* Error text says what to fix; coral = needs attention (DESIGN.md). */
.bb-contact-status.is-error { color: var(--bb-coral); }
/* Spam trap: off screen, out of the tab order (aria-hidden in the markup). */
.bb-contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Thank-you text that replaces the fields after sending. */
.bb-contact-done { margin: 0; font-size: 16px; line-height: 1.6; color: var(--bb-ink); }

/* --- Sidebar --- */

.bb-contact-side { display: flex; flex-direction: column; gap: 16px; }

.bb-contact-panel {
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bb-contact-panel-title {
  margin: 0;
  font-family: var(--bb-font-heading);
  font-size: 11px;
  font-weight: 600;
  color: var(--bb-ink);
  text-transform: uppercase;
  letter-spacing: .18em;
}

.bb-contact-panel-reach {
  background: var(--bb-surface);
  border: 1px solid var(--bb-border);
}
.bb-contact-panel-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--bb-body);
}
.bb-contact-channel { display: flex; align-items: flex-start; gap: 12px; }
.bb-contact-channel-icon {
  flex: none;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bb-step-icon-tile);
  color: var(--bb-ink);
}
.bb-contact-channel-icon svg { width: 22px; height: 22px; }
.bb-contact-channel-body { min-width: 0; }
.bb-contact-channel-title { margin: 0 0 2px; font-family: var(--bb-font-heading); font-size: 12px; font-weight: 600; color: var(--bb-ink); }
.bb-contact-channel-detail { margin: 0; font-size: 13px; line-height: 1.55; color: var(--bb-body); overflow-wrap: anywhere; }
.bb-contact-channel-detail a { color: var(--bb-blue); text-decoration: none; }
.bb-contact-channel-detail a:hover,
.bb-contact-channel-detail a:focus-visible { text-decoration: underline; }
.bb-contact-channel-detail.is-italic { font-style: italic; color: var(--bb-muted); }

.bb-contact-panel-next {
  background: var(--bb-white);
  border: 1px solid var(--bb-border);
  gap: 14px;
}
.bb-contact-step { display: flex; align-items: flex-start; gap: 12px; }
.bb-contact-step-n {
  flex: none;
  width: 22px;
  font-family: var(--bb-font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--bb-blue);
  line-height: 1;
}
.bb-contact-step p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--bb-body); }

.bb-contact-panel-hurry {
  position: relative;
  overflow: hidden;
  background: var(--bb-gradient-135);
  gap: 8px;
}
.bb-contact-panel-hurry .bb-contact-panel-title { color: rgba(255, 255, 255, .72); }
.bb-contact-hurry-blob {
  position: absolute;
  top: -40px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50% 50% 45% 55% / 55% 45% 55% 45%;
  background: rgba(255, 255, 255, .18);
}
.bb-contact-hurry-text {
  position: relative;
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .88);
}
.bb-contact-hurry-cta {
  position: relative;
  align-self: flex-start;
}

@media (max-width: 900px) {
  .bb-contact-grid { grid-template-columns: 1fr; }
  .bb-contact-field-row { grid-template-columns: 1fr; }
}
