/*
  WHEELHOUSE NEWSLETTER FORM — WP-CODER CSS (v2)

  Right column field layout:
    Row 1 → First Name | Last Name   (HubSpot fieldset, 2-col)
    Row 2 → Work Email | Subscribe → (HubSpot fieldset + submit, inline)

  BRAND COLORS
  ─────────────────────────────────────────
  #071e16   Very dark green  → section base
  #003d31   Dark green       → radial gradient center
  #fed448   Yellow           → button, eyebrow
  #ffffff   White            → headings, input text
  #d9d9d9   Light grey       → body, labels, social text, placeholders
  #8c8ca1   Muted grey       → optional/secondary text
  ─────────────────────────────────────────
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

/* ══════════════════════════════════════
   SECTION + BACKGROUND LAYERS
   ══════════════════════════════════════ */

.wh-nl-section {
  background: #071e16;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

/* .wh-nl-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(0,61,49,0.85) 0%, transparent 70%),
    radial-gradient(ellipse 30% 30% at 15% 20%, rgba(254,212,72,0.07) 0%, transparent 60%);
  pointer-events: none;
}

.wh-nl-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,216,215,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,216,215,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
} */

/* ══════════════════════════════════════
   CARD
   ══════════════════════════════════════ */

.wh-nl-card {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(192,216,215,0.18);
  border-radius: 18px;
  padding: 40px 44px;
  max-width: 900px;
  margin: 0 auto;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  gap: 48px;
  align-items: center;
}

/* ══════════════════════════════════════
   LEFT COLUMN — COPY
   ══════════════════════════════════════ */

.wh-nl-left {
  flex: 1;
}

.wh-nl-eyebrow {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fed448;
  margin: 0 0 14px;
}

.wh-nl-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fed448 !important;
  margin: 0 0 14px;
  line-height: 1.2;
}

.wh-nl-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; 
  color: #d9d9d9;
  line-height: 1.65;
  font-weight: 400;
  margin: 0;
}

/* ══════════════════════════════════════
   RIGHT COLUMN
   ══════════════════════════════════════ */

.wh-nl-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ══════════════════════════════════════
   HUBSPOT FORM OVERRIDES
   Scoped to .wh-nl-form-wrap
   ══════════════════════════════════════ */

.wh-nl-form-wrap .hs-form {
  font-family: 'Outfit', sans-serif;
}

/* ── Row 1: First + Last name fieldset ── */
.wh-nl-form-wrap .hs-form fieldset {
  max-width: 100% !important;
  display: flex !important;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
  border: none;
  padding: 0;
  min-width: 0;
}

.wh-nl-form-wrap .hs-form-field {
  flex: 1;
  min-width: 0;
}

/* Labels */
.wh-nl-form-wrap .hs-form-field > label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  color: #d9d9d9;
  margin-bottom: 8px;
}

/* Required asterisk */
.wh-nl-form-wrap .hs-form-field > label .hs-form-required {
  color: #fed448;
  margin-left: 2px;
}

.wh-nl-form-wrap .hs-form-field .input {
  margin: 0 !important;
}

/* ── All inputs ── */
.wh-nl-form-wrap .hs-input {
  width: 100% !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(192,216,215,0.22) !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  padding: 12px 16px !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, background 0.2s ease !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

.wh-nl-form-wrap .hs-input:focus {
  outline: none !important;
  border-color: rgba(254,212,72,0.6) !important;
  background: rgba(255,255,255,0.10) !important;
  box-shadow: none !important;
}

.wh-nl-form-wrap .hs-input::placeholder {
  color: #d9d9d9 !important;
}

/* ── Row 2: Email + Submit inline ──
   Pull submit button up alongside the email field */
.wh-nl-form-wrap .hs-form .hs-email {
  margin-bottom: 0;
}

.wh-nl-form-wrap .hs-submit {
  margin-top: 0;
}

/* Wrap email field and submit button side by side */
.wh-nl-form-wrap .hs-form > div:last-child {
  display: flex !important;
  align-items: flex-end !important;
  gap: 12px !important;
}

.wh-nl-form-wrap .hs-form > div:last-child .hs-email {
  flex: 1 !important;
  min-width: 0 !important;
}

.wh-nl-form-wrap .hs-form > div:last-child .hs-submit {
  flex-shrink: 0 !important;
}

/* ── Submit button ── */
.wh-nl-form-wrap .hs-submit .actions {
  margin: 0;
}

.wh-nl-form-wrap .hs-button,
.wh-nl-form-wrap input.hs-button {
  background: #fed448 !important;
  color: #071e16 !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  padding: 12px 22px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: opacity 0.2s ease !important;
  box-shadow: none !important;
  display: inline-block !important;
}

.wh-nl-form-wrap .hs-button:hover,
.wh-nl-form-wrap input.hs-button:hover {
  opacity: 0.88 !important;
}

.wh-nl-form-wrap .hs-recaptcha .input {
		height: 40px; 
	}

/* ── Error messages ── */
.wh-nl-form-wrap .hs-error-msgs {
  list-style: none !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
}

.wh-nl-form-wrap .hs-error-msg {
  font-family: 'Outfit', sans-serif !important;
  font-size: 14px !important;
  color: #fed448 !important;
}

.wh-nl-form-wrap .hs_error_rollup li {
   margin-bottom: 20px; 
}
.wh-nl-form-wrap .hs_error_rollup li label {
	color: red; 
}

/* ── Success message ── */
.wh-nl-form-wrap .submitted-message {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  color: #d9d9d9;
  line-height: 1.6;
}

/* ══════════════════════════════════════
   SOCIAL ROW
   ══════════════════════════════════════ */

.wh-nl-social {
  display: flex;
  align-items: center;
  gap: 12px;
	margin-top: 12px; 
}

.wh-nl-follow-label {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #d9d9d9;
}

.wh-nl-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(192,216,215,0.22);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  text-decoration: none;
}

.wh-nl-icon:hover {
  background: rgba(255,255,255,0.14);
}

.wh-nl-icon svg {
  width: 16px;
  height: 16px;
  fill: #d9d9d9;
}

/* ══════════════════════════════════════
   PODCAST LINK
   ══════════════════════════════════════ */

.wh-nl-podcast {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(192,216,215,0.22);
  border-radius: 50px;
  padding: 10px 18px;
  text-decoration: none;
  transition: background 0.2s ease;
  width: fit-content;
	margin-top: 24px; 
}

.wh-nl-podcast:hover {
  background: rgba(255,255,255,0.12);
}

.wh-nl-podcast-icon {
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wh-nl-podcast-icon svg {
  width: 14px;
  height: 14px;
  fill: #d9d9d9;
}

.wh-nl-podcast span {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: #d9d9d9;
  font-weight: 500;
}

/* ── Checkbox / consent field ── */
.wh-nl-form-wrap .inputs-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wh-nl-form-wrap .inputs-list li {
  list-style: none !important;
}

.wh-nl-form-wrap .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.wh-nl-form-wrap .hs-form-booleancheckbox-display input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  accent-color: #fed448 !important;
  cursor: pointer !important;
  display: inline-block !important;
  background: none !important;
  border: 1px solid #fff !important; 
  border-radius: 0 !important;
  flex-shrink: 0 !important;
}

.wh-nl-form-wrap .hs-form-booleancheckbox-display input[type="checkbox"]:checked {
	accent-color: #fed448; 
	border-color: #fed448; 
	appearance: auto !important; 
	-webkit-appearance: checkbox !important; 
}

.wh-nl-form-wrap .hs-form-booleancheckbox-display span {
  font-family: 'Outfit', sans-serif !important;
  font-size: 13px !important;
  color: #d9d9d9 !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
	margin-left: 5px !important;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */


@media (max-width: 825px) {
  .wh-nl-section {
    padding: 48px 16px;
  }

  .wh-nl-card {
    flex-direction: column;
    gap: 28px;
    padding: 28px 20px;
    align-items: flex-start;
  }

  .wh-nl-left,
  .wh-nl-right {
    width: 100%;
  }

  .wh-nl-title {
    font-size: 2rem;
  }

  .wh-nl-form-wrap .hs-form fieldset .hs-form-field {
    margin-bottom: 12px;
  }

	.wh-nl-form-wrap .hs-recaptcha .input {
		height: 0; 
	}

  /* Stack email + button on mobile */
  .wh-nl-form-wrap .hs-form > div:last-child {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .wh-nl-form-wrap .hs-button,
  .wh-nl-form-wrap input.hs-button {
    width: 100% !important;
    text-align: center !important;
  }
	.wh-nl-form-wrap .hs-submit {
		width: 200px; 
		margin: auto; 
}
	.wh-social-wrapper {
		display:flex; 
		flex-direction: row;
		margin-bottom: 36px; 
		justify-content: space-between; 
	}
}

@media (max-width: 580px) {
 /* Stack name fields on mobile */
  .wh-nl-form-wrap .hs-form fieldset {
    flex-direction: column !important;
    gap: 0 !important;
  }
	.wh-nl-form-wrap .form-columns-2 .hs-form-field {
		width: 100% !important; 
	}
	.wh-social-wrapper {
		margin-bottom: 42px; 
	}
	.wh-nl-podcast span {
		display: none; 
	}
	.wh-nl-follow-label {
		display:none; 
	}
}

