/* ==========================================================================
   HeyBro Contact — Contact Form 7 styled to the site
   Scoped to .wpcf7-form so Astra's generic input rules are outranked without
   !important.
   ========================================================================== */

.wpcf7 .wpcf7-form {
  --hb-navy: #05334A;
  --hb-red: #B40023;
  --hb-red-dark: #8D001B;
  --hb-ink: #1B2A34;
  --hb-muted: #55646E;
  --hb-line: #D8DEE3;
  margin-top: 26px;
  font-family: Poppins, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Two fields side by side on wide screens. */
.wpcf7 .wpcf7-form .hb-cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.wpcf7 .wpcf7-form label {
  display: block;
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-navy);
}

.wpcf7 .wpcf7-form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }

.wpcf7 .wpcf7-form input[type="text"],
.wpcf7 .wpcf7-form input[type="email"],
.wpcf7 .wpcf7-form input[type="tel"],
.wpcf7 .wpcf7-form input[type="number"],
.wpcf7 .wpcf7-form input[type="date"],
.wpcf7 .wpcf7-form select,
.wpcf7 .wpcf7-form textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid var(--hb-line);
  border-radius: 0;
  background: #fff;
  color: var(--hb-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.5;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.wpcf7 .wpcf7-form textarea { min-height: 150px; resize: vertical; }

.wpcf7 .wpcf7-form ::placeholder { color: #8A98A2; opacity: 1; }

.wpcf7 .wpcf7-form input:focus,
.wpcf7 .wpcf7-form select:focus,
.wpcf7 .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--hb-navy);
  box-shadow: 0 0 0 3px rgba(5, 51, 74, .12);
}

.wpcf7 .wpcf7-form .hb-cf7-note {
  margin: 4px 0 20px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--hb-muted);
}

.wpcf7 .wpcf7-form .hb-cf7-note a { color: var(--hb-red); text-decoration: underline; }

.wpcf7 .wpcf7-form input[type="submit"] {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 15px 30px;
  border: 0;
  border-radius: 0;
  background: var(--hb-red);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .15s ease;
}

.wpcf7 .wpcf7-form input[type="submit"]:hover,
.wpcf7 .wpcf7-form input[type="submit"]:focus-visible { background: var(--hb-red-dark); }

.wpcf7 .wpcf7-form .wpcf7-spinner { vertical-align: middle; margin-left: 12px; }

/* Validation and response messages. */
.wpcf7 .wpcf7-form .wpcf7-not-valid { border-color: var(--hb-red); }
.wpcf7 .wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hb-red);
}

.wpcf7 .wpcf7-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--hb-line);
  font-size: 13px;
  color: var(--hb-ink);
}

.wpcf7 .wpcf7-form.sent .wpcf7-response-output { border-color: #2E7D5B; background: #F1F8F4; }
.wpcf7 .wpcf7-form.invalid .wpcf7-response-output,
.wpcf7 .wpcf7-form.failed .wpcf7-response-output { border-color: var(--hb-red); background: #FDF2F4; }

@media (max-width: 767px) {
  .wpcf7 .wpcf7-form .hb-cf7-row { grid-template-columns: 1fr; }
  .wpcf7 .wpcf7-form input[type="submit"] { width: 100%; }
}

/* --------------------------------------------------------------------------
   Gift box form ("HeyBro Gift Box", on Build your own box): numbered steps,
   checkbox groups per category and a delivery choice.
   -------------------------------------------------------------------------- */

.wpcf7 .wpcf7-form textarea[rows="3"] { min-height: 96px; }

.wpcf7 .wpcf7-form .hb-cf7-step {
  margin: 34px 0 16px;
  padding-top: 22px;
  border-top: 1px solid var(--hb-line);
  font-family: Anton, 'Arial Narrow', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--hb-navy);
}

/* CF7 puts a hidden fieldset first, so :first-child never matches the first step. */
.wpcf7 .wpcf7-form .hb-cf7-step:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }

.wpcf7 .wpcf7-form .hb-cf7-group {
  margin: 0 0 14px;
  padding: 2px 16px 12px;
  border: 1px solid var(--hb-line);
  background: #fff;
}

.wpcf7 .wpcf7-form .hb-cf7-group legend,
.wpcf7 .wpcf7-form .hb-cf7-choice__label {
  width: auto;
  padding: 0 6px;
  margin: 0 0 0 -6px;
  border: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-navy);
}

.wpcf7 .wpcf7-form .hb-cf7-group .wpcf7-form-control-wrap { margin-top: 4px; }

.wpcf7 .wpcf7-form .hb-cf7-group .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 6px 18px;
}

.wpcf7 .wpcf7-form .wpcf7-list-item { margin: 0; }

.wpcf7 .wpcf7-form .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 4px 0;
  font-size: 13.5px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--hb-ink);
  cursor: pointer;
}

.wpcf7 .wpcf7-form .wpcf7-list-item input[type="checkbox"],
.wpcf7 .wpcf7-form .wpcf7-list-item input[type="radio"] {
  width: 17px;
  height: 17px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--hb-navy);
}

.wpcf7 .wpcf7-form .hb-cf7-choice { margin: 4px 0 18px; }
.wpcf7 .wpcf7-form .hb-cf7-choice__label { display: block; margin: 0; padding: 0; }
.wpcf7 .wpcf7-form .hb-cf7-choice .wpcf7-radio { display: flex; flex-wrap: wrap; gap: 4px 28px; }

@media (max-width: 767px) {
  .wpcf7 .wpcf7-form .hb-cf7-group .wpcf7-checkbox { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .wpcf7 .wpcf7-form .hb-cf7-group .wpcf7-checkbox { grid-template-columns: 1fr; }
}