/* ================================================================
   BLUE BINS — Contact Us Page
   bb-contact.css  ·  depends on bb-global.css
   ================================================================ */

/* Override bb-global .site-inner so each section controls its own width */
body.page-template-page-contact-us .site-inner,
body.page-contact-us .site-inner {
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Shared container */
.bb-contact-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================================================================
   HERO BAND
   ================================================================ */
.bb-contact-hero {
  background: var(--bb-grey);
  border-bottom: 1px solid var(--bb-border);
  padding: 64px 0 56px;
  text-align: center;
}

.bb-contact-eyebrow {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bb-blue);
  background: rgba(27,111,232,.08);
  border: 1px solid rgba(27,111,232,.18);
  padding: 4px 14px;
  border-radius: 40px;
  margin-bottom: 20px;
}

.bb-contact-title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--bb-navy);
  margin: 0 0 16px;
}

.bb-contact-title--as-text {
  font-weight: 800;
}

.bb-contact-subtitle {
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--bb-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ================================================================
   BODY — TWO-COLUMN GRID
   ================================================================ */
.bb-contact-body {
  padding: 64px 0 80px;
  background: #ffffff;
}

.bb-contact-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}

/* ================================================================
   LEFT CARD — CONTACT DETAILS
   ================================================================ */
.bb-contact-card {
  background: #f6f9ff;
  border: 1px solid #dbe6f6;
  border-radius: 16px;
  overflow: hidden;
  color: #0a1628;
  position: sticky;
  top: 88px;
}

.bb-contact-card__section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid #e5edf8;
}

.bb-contact-card__section:last-child {
  border-bottom: none;
}

.bb-contact-card__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(27,111,232,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bb-blue);
  margin-top: 2px;
}

.bb-contact-card h3 {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #5c6b7d;
  margin: 0 0 6px;
}

.bb-contact-card a {
  color: #0a1628;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}

.bb-contact-card a:hover { color: var(--bb-blue); }

.bb-contact-card address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.65;
  color: #1e2a3b;
}

.bb-contact-card__po {
  font-size: 13px;
  color: #6b7a8e;
  margin-top: 4px;
  display: block;
}

/* Hours */
.bb-contact-card__section--hours { align-items: flex-start; }
.bb-contact-hours h3 { margin-bottom: 10px; }

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

.bb-hours-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.bb-hours-day  { color: #4f6075; }
.bb-hours-time { color: #0a1628; font-weight: 600; text-align: right; }

.bb-hours-closed .bb-hours-day,
.bb-hours-closed .bb-hours-time { color: #8a97a8; }

/* ================================================================
   RIGHT PANEL — ENQUIRY FORM
   ================================================================ */
.bb-contact-form-panel {
  background: #ffffff;
  border: 1px solid var(--bb-border);
  border-radius: 16px;
  padding: 44px 40px;
  box-shadow: var(--shadow-sm);
}

.bb-contact-form-panel h2 {
  font-family: var(--ff-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--bb-navy);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}

.bb-contact-form-intro {
  font-size: 15px;
  color: var(--bb-muted);
  line-height: 1.6;
  margin: 0 0 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--bb-border);
}

/* ── Normalise embedded form (CF7 / WPForms / Gravity) ───────────── */
.bb-contact-form-body input[type="text"],
.bb-contact-form-body input[type="email"],
.bb-contact-form-body input[type="tel"],
.bb-contact-form-body input[type="number"],
.bb-contact-form-body input[type="url"],
.bb-contact-form-body select,
.bb-contact-form-body textarea {
  width: 100%;
  background: var(--bb-grey);
  border: 1.5px solid var(--bb-border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--ff-body);
  color: var(--bb-navy);
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.bb-contact-form-body input:focus,
.bb-contact-form-body select:focus,
.bb-contact-form-body textarea:focus {
  border-color: var(--bb-blue);
  box-shadow: 0 0 0 3px rgba(27,111,232,.12);
  background: #ffffff;
}

.bb-contact-form-body textarea { min-height: 130px; resize: vertical; }

.bb-contact-form-body label,
.bb-contact-form-body .wpforms-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--ff-display);
  color: var(--bb-navy);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

.bb-contact-form-body p,
.bb-contact-form-body .wpforms-field {
  margin: 0 0 18px;
}

.bb-contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bb-contact-alert {
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.45;
}

.bb-contact-alert--success {
  background: rgba(34,197,94,.10);
  color: #166534;
  border: 1px solid rgba(22,101,52,.25);
}

.bb-contact-alert--error {
  background: rgba(239,68,68,.08);
  color: #b91c1c;
  border: 1px solid rgba(239,68,68,.25);
}

.bb-contact-submit {
  width: 100%;
}

/* Submit */
.bb-contact-form-body input[type="submit"],
.bb-contact-form-body button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, var(--bb-blue) 0%, #0d3b8e 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--ff-display);
  letter-spacing: .01em;
  cursor: pointer;
  transition: opacity .2s ease, transform .15s ease;
}

.bb-contact-form-body input[type="submit"]:hover,
.bb-contact-form-body button[type="submit"]:hover {
  opacity: .92;
  transform: translateY(-1px);
}

/* CF7 response messages */
.bb-contact-form-body .wpcf7-response-output {
  border: none !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  margin: 16px 0 0 !important;
}

.bb-contact-form-body .wpcf7-mail-sent-ok {
  background: rgba(34,197,94,.10) !important;
  color: #15803d !important;
  border: 1px solid rgba(34,197,94,.30) !important;
}

.bb-contact-form-body .wpcf7-validation-errors,
.bb-contact-form-body .wpcf7-spam-blocked {
  background: rgba(239,68,68,.08) !important;
  color: #b91c1c !important;
  border: 1px solid rgba(239,68,68,.25) !important;
}

.bb-contact-form-body .wpcf7-not-valid-tip {
  font-size: 12px;
  color: var(--bb-danger);
  margin-top: 4px;
  display: block;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 900px) {
  .bb-contact-grid {
    grid-template-columns: 1fr;
  }
  .bb-contact-card {
    position: static;
  }
}

@media (max-width: 600px) {
  .bb-contact-hero       { padding: 48px 0 40px; }
  .bb-contact-body       { padding: 40px 0 56px; }
  .bb-contact-form-panel { padding: 28px 20px; }

  .bb-hours-list li {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .bb-hours-time { text-align: left; }
}
