/* ── CCG skin for SixByFive Forms ────────────────────────────────────────────
   Loaded by the theme only when the sbf plugin is active.
   Overrides plugin defaults to match the Christies Care Group design system.
── */

/* ── Wrap ────────────────────────────────────────────────────────────────────── */
.sbf-wrap {
  max-width: 100%;
}

/* ── Title & subtitle ────────────────────────────────────────────────────────── */
.sbf-title {
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.98;
  color: var(--navy);
}
.sbf-subtitle {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: rgba(13,27,42,0.55);
}

/* ── Labels ──────────────────────────────────────────────────────────────────── */
.sbf-field label {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ── Inputs ──────────────────────────────────────────────────────────────────── */
.sbf-field input,
.sbf-field select,
.sbf-field textarea {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy);
  background: #ffffff;
  border: 1.5px solid rgba(13,27,42,0.12);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sbf-field input::placeholder,
.sbf-field textarea::placeholder {
  color: rgba(13,27,42,0.28);
  font-weight: 400;
}
.sbf-field input:focus,
.sbf-field select:focus,
.sbf-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,149,42,0.1);
  outline: none;
}
.sbf-field input.sbf-error,
.sbf-field select.sbf-error,
.sbf-field textarea.sbf-error {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(196,104,122,0.08);
}

/* ── Submit button — matches .btn-gold ───────────────────────────────────────── */
.sbf-btn {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 100px;
  padding: 0.95rem 2.4rem;
  cursor: pointer;
  box-shadow: 0 6px 30px rgba(212,149,42,0.35);
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
}
.sbf-btn:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(212,149,42,0.4);
  color: var(--navy);
}
.sbf-btn:disabled {
  opacity: 0.6;
  transform: none;
  cursor: not-allowed;
}

/* ── Consent checkbox ────────────────────────────────────────────────────────── */
.sbf-checkbox span {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(13,27,42,0.55);
  line-height: 1.7;
}
.sbf-checkbox a {
  color: var(--gold);
  text-decoration: none;
}
.sbf-checkbox a:hover {
  color: var(--gold-lt);
}

/* ── Status messages ─────────────────────────────────────────────────────────── */
.sbf-status {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 1rem 1.4rem;
}
.sbf-status--success {
  background: rgba(107,166,138,0.1);
  border: 1px solid rgba(107,166,138,0.25);
  color: #2e6b50;
}
.sbf-status--error {
  background: rgba(196,104,122,0.08);
  border: 1px solid rgba(196,104,122,0.2);
  color: #a0364a;
}

/* ── Dark variant — for use inside the navy CTA section ──────────────────────── */
.sbf-dark .sbf-title {
  color: var(--cream);
  text-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.sbf-dark .sbf-subtitle {
  color: rgba(249,246,240,0.55);
}
.sbf-dark .sbf-field label {
  color: rgba(249,246,240,0.65);
}
.sbf-dark .sbf-field input,
.sbf-dark .sbf-field select,
.sbf-dark .sbf-field textarea {
  background: rgba(255,255,255,0.06);
  border-color: rgba(249,246,240,0.12);
  color: var(--cream);
}
.sbf-dark .sbf-field input::placeholder,
.sbf-dark .sbf-field textarea::placeholder {
  color: rgba(249,246,240,0.25);
}
.sbf-dark .sbf-field input:focus,
.sbf-dark .sbf-field select:focus,
.sbf-dark .sbf-field textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,149,42,0.15);
}
.sbf-dark .sbf-checkbox span {
  color: rgba(249,246,240,0.45);
}
.sbf-dark .sbf-checkbox a {
  color: var(--gold);
}
.sbf-dark .sbf-req {
  color: var(--gold-lt);
}
.sbf-dark .sbf-status--success {
  background: rgba(107,166,138,0.15);
  border-color: rgba(107,166,138,0.3);
  color: #9BC9AE;
}
.sbf-dark .sbf-status--error {
  background: rgba(196,104,122,0.15);
  border-color: rgba(196,104,122,0.3);
  color: #E8A0AD;
}