/* ============================================================
   Bitesize HR Order Form — CIPD Forum Branding
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Merriweather:wght@400;700&display=swap');

:root {
  --cipd-navy:   #0d1b3e;
  --cipd-blue:   #1a3a6b;
  --cipd-mid:    #2a5298;
  --cipd-accent: #e85d2f;
  --cipd-accent-light: #fdf0eb;
  --cipd-teal:   #00b4d8;
  --cipd-light:  #f0f4fa;
  --cipd-border: #d0daea;
  --cipd-text:   #1a2840;
  --cipd-muted:  #5a6e8a;
  --cipd-white:  #ffffff;
  --radius:      4px;
}

.bhof-wrap {
  font-family: 'Inter', sans-serif;
  color: var(--cipd-text);
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
}

/* ── Header ──────────────────────────────────────────── */
.bhof-header {
  text-align: center;
  padding: 40px 24px 32px;
}

.bhof-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cipd-navy);
  color: rgba(255,255,255,0.75);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.bhof-dot {
  width: 5px;
  height: 5px;
  background: var(--cipd-teal);
  border-radius: 50%;
  display: inline-block;
}

.bhof-title {
  font-family: 'Merriweather', Georgia, serif;
  font-size: clamp(26px, 4vw, 40px) !important;
  font-weight: 700 !important;
  color: var(--cipd-navy) !important;
  line-height: 1.2 !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: none !important;
}

.bhof-sub {
  font-size: 15px;
  color: var(--cipd-muted);
  font-weight: 300;
  max-width: 460px;
  margin: 0 auto !important;
  line-height: 1.7;
}

.bhof-divider {
  width: 40px;
  height: 3px;
  background: var(--cipd-accent);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* ── Card ─────────────────────────────────────────────── */
.bhof-card {
  background: var(--cipd-white);
  border: 1px solid var(--cipd-border);
  border-radius: var(--radius);
  box-shadow: 0 2px 32px rgba(13,27,62,0.10), 0 1px 4px rgba(13,27,62,0.06);
  overflow: hidden;
}

/* ── Section ──────────────────────────────────────────── */
.bhof-section {
  padding: 28px 32px;
  border-bottom: 1px solid var(--cipd-border);
}

.bhof-sh {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.bhof-num {
  width: 26px;
  height: 26px;
  background: var(--cipd-navy);
  color: var(--cipd-white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bhof-st {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--cipd-navy);
  line-height: 1.3;
}

.bhof-hint {
  font-size: 13px;
  color: var(--cipd-muted);
  margin: -12px 0 14px !important;
}

/* ── Services grid ────────────────────────────────────── */
.bhof-svcs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.bhof-sc {
  position: relative;
  cursor: pointer;
  display: block;
}

.bhof-sc input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bhof-sl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 14px 42px;
  border: 1.5px solid var(--cipd-border);
  border-radius: var(--radius);
  background: var(--cipd-light);
  cursor: pointer;
  transition: all 0.18s ease;
  position: relative;
  min-height: 66px;
}

.bhof-sl::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--cipd-border);
  border-radius: 3px;
  background: var(--cipd-white);
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.bhof-sc input:checked + .bhof-sl {
  border-color: var(--cipd-mid);
  background: #eaf0fb;
  box-shadow: 0 0 0 1px var(--cipd-mid);
}

.bhof-sc input:checked + .bhof-sl::before {
  background: var(--cipd-mid);
  border-color: var(--cipd-mid);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4l3 3 5-6' stroke='white' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.bhof-sl:hover {
  border-color: #a0b4ce;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(13,27,62,0.08);
}

.bhof-sn {
  font-size: 13px;
  font-weight: 600;
  color: var(--cipd-navy);
  line-height: 1.3;
}

.bhof-sg {
  font-size: 11px;
  color: var(--cipd-muted);
}

/* ── Fields grid ──────────────────────────────────────── */
.bhof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.bhof-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bhof-full { grid-column: 1 / -1; }

.bhof-f label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--cipd-muted);
}

.bhof-f label .req { color: var(--cipd-accent); }

.bhof-f input,
.bhof-f select,
.bhof-f textarea {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--cipd-text);
  background: var(--cipd-light);
  border: 1.5px solid var(--cipd-border);
  border-radius: var(--radius);
  padding: 10px 13px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.bhof-f input:focus,
.bhof-f select:focus,
.bhof-f textarea:focus {
  outline: none;
  border-color: var(--cipd-mid);
  background: var(--cipd-white);
  box-shadow: 0 0 0 3px rgba(42,82,152,0.10);
}

.bhof-f select {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l7 7 7-7' stroke='%235a6e8a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 11px;
  padding-right: 34px;
}

.bhof-f textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.bhof-e {
  font-size: 11px;
  color: var(--cipd-accent);
  display: none;
}

.bhof-f.err input,
.bhof-f.err select,
.bhof-f.err textarea { border-color: var(--cipd-accent); }

.bhof-f.err .bhof-e { display: block; }

/* ── Urgency buttons ──────────────────────────────────── */
.bhof-urg {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bhof-uo { position: relative; flex: 1; min-width: 130px; }
.bhof-uo input { position: absolute; opacity: 0; }

.bhof-ub {
  display: block;
  text-align: center;
  padding: 9px 10px;
  border: 1.5px solid var(--cipd-border);
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--cipd-muted);
  cursor: pointer;
  background: var(--cipd-light);
  transition: all 0.18s;
}

.bhof-uo input:checked + .bhof-ub {
  border-color: var(--cipd-navy);
  background: var(--cipd-navy);
  color: var(--cipd-white);
}

.bhof-ub:hover { border-color: var(--cipd-mid); color: var(--cipd-navy); }

/* ── Submit row ───────────────────────────────────────── */
.bhof-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 32px;
  background: var(--cipd-light);
  border-top: 1px solid var(--cipd-border);
  flex-wrap: wrap;
}

.bhof-next {
  font-size: 13px;
  color: var(--cipd-muted);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 !important;
}

.bhof-next strong { color: var(--cipd-navy); }

.bhof-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--cipd-white);
  background: var(--cipd-accent);
  border: none;
  border-radius: var(--radius);
  padding: 13px 28px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.bhof-btn:hover {
  background: #d44e24;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,93,47,0.35);
}

.bhof-btn:active { transform: translateY(0); }
.bhof-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.bhof-gerr {
  margin: 0 32px 16px;
  padding: 12px 16px;
  background: #fff0ec;
  border: 1px solid #f7c5b4;
  border-radius: var(--radius);
  font-size: 13px;
  color: #c0392b;
}

/* ── Success ──────────────────────────────────────────── */
.bhof-ok {
  text-align: center;
  padding: 64px 32px;
}

.bhof-ok-icon {
  width: 60px;
  height: 60px;
  background: #1a6b45;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 26px;
  color: white;
}

.bhof-ok h3 {
  font-family: 'Merriweather', Georgia, serif !important;
  font-size: 24px !important;
  color: var(--cipd-navy) !important;
  margin: 0 0 12px !important;
}

.bhof-ok p {
  font-size: 15px;
  color: var(--cipd-muted);
  max-width: 380px;
  margin: 0 auto !important;
  line-height: 1.7;
}

/* ── Footer strip ─────────────────────────────────────── */
.bhof-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px 24px;
  background: var(--cipd-navy);
  flex-wrap: wrap;
}

.bhof-si {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 0.2s;
}

.bhof-si:hover { color: rgba(255,255,255,0.9); }
.bhof-si svg { flex-shrink: 0; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 580px) {
  .bhof-section { padding: 22px 18px; }
  .bhof-grid { grid-template-columns: 1fr; }
  .bhof-svcs { grid-template-columns: 1fr; }
  .bhof-footer-row { padding: 20px 18px; }
  .bhof-strip { gap: 18px; padding: 16px; }
}
