/**
 * Program Hero Block Styles
 * Full-width video hero with left text + right form card
 */

.program-hero-block {
  position: relative;
  overflow: hidden;
  color: #ffffff;

  /* Force full viewport width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: 4rem;
}

/* Counteract GeneratePress .entry-content { margin: 2em 0 0 } when hero leads */
.entry-content > .program-hero-block:first-child {
  margin-top: -2em;
}

/* Campaign template already zeroes margin — don't over-correct */
.campaign-page .entry-content > .program-hero-block:first-child {
  margin-top: 0;
}

/* ── Background Video ── */

.program-hero-block .ph-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.program-hero-block .ph-fallback-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .program-hero-block .ph-video {
    display: none;
  }
  .program-hero-block .ph-fallback-bg {
    display: block !important;
  }
}

/* ── Overlay ── */

.program-hero-block .ph-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.78) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.45) 70%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

/* ── Logo (top-left) ── */

.program-hero-block .ph-logo {
  position: absolute;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.program-hero-block .ph-logo img {
  height: 2.75rem;
  width: auto;
  max-width: 180px;
}

.program-hero-block .ph-logo-divider {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .program-hero-block .ph-logo {
    top: 1.5rem;
    left: 2rem;
    gap: 1.25rem;
  }
  .program-hero-block .ph-logo img {
    height: 3.5rem;
    max-width: 240px;
  }
  .program-hero-block .ph-logo-divider {
    height: 3rem;
  }
}

/* ── Language Selector (top-right) ── */

.program-hero-block .ph-lang-selector {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 3;
}

@media (min-width: 768px) {
  .program-hero-block .ph-lang-selector {
    top: 1.5rem;
    right: 2.5rem;
  }
}

/* Target ALL elements Google Translate injects */
.program-hero-block .ph-lang-selector .goog-te-gadget {
  font-family: inherit !important;
  font-size: 0 !important;
  color: transparent !important;
  line-height: 0 !important;
}

.program-hero-block .ph-lang-selector .goog-te-gadget > span,
.program-hero-block .ph-lang-selector .goog-te-gadget > a,
.program-hero-block .ph-lang-selector .goog-te-gadget .goog-te-gadget-simple > span > a > span:last-child {
  display: none !important;
}

/* Style the <select> dropdown */
.program-hero-block .ph-lang-selector select,
.program-hero-block .ph-lang-selector .goog-te-combo {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0.5rem !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 0.5rem 2.25rem 0.5rem 2rem !important;
  cursor: pointer !important;
  outline: none !important;
  transition: background 0.2s, border-color 0.2s !important;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 21a9 9 0 100-18 9 9 0 000 18zM3.6 9h16.8M3.6 15h16.8M12 3a14.4 14.4 0 014 9 14.4 14.4 0 01-4 9 14.4 14.4 0 01-4-9 14.4 14.4 0 014-9z'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat, no-repeat !important;
  background-position: left 0.6rem center, right 0.6rem center !important;
  background-size: 0.9rem, 0.6rem !important;
}

.program-hero-block .ph-lang-selector select:hover,
.program-hero-block .ph-lang-selector .goog-te-combo:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.program-hero-block .ph-lang-selector select:focus,
.program-hero-block .ph-lang-selector .goog-te-combo:focus {
  border-color: #ff6a13 !important;
  box-shadow: 0 0 0 2px rgba(255, 106, 19, 0.3) !important;
}

.program-hero-block .ph-lang-selector select option,
.program-hero-block .ph-lang-selector .goog-te-combo option {
  background: #1e293b !important;
  color: #ffffff !important;
  padding: 0.5rem !important;
}

/* Hide Google Translate top bar that pushes body down */
.skiptranslate,
body > .skiptranslate,
#goog-gt-tt {
  display: none !important;
}

body {
  top: 0 !important;
}

/* ── Content Container ── */

.program-hero-block .ph-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 3rem 1.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .program-hero-block .ph-container {
    grid-template-columns: 8fr 5fr;
    gap: 3.5rem;
    padding: 6rem 2.5rem 4rem 2.5rem;
  }
}

/* ── Left Column: Text ── */

.program-hero-block .ph-headline {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
  .program-hero-block .ph-headline {
    font-size: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .program-hero-block .ph-headline {
    font-size: 4.5rem;
  }
}

.program-hero-block .ph-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e8e8e8;
  max-width: 560px;
  margin-bottom: 2rem;
}

/* ── Trust Badges ── */

.program-hero-block .ph-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.program-hero-block .ph-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.program-hero-block .ph-badge-icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: #ff6a13;
}

.program-hero-block .ph-badge-text {
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #ffffff;
}

/* ── Right Column: Form Card ── */

.program-hero-block .ph-form-card {
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.program-hero-block .ph-form-accent {
  height: 5px;
  width: 100%;
  background-color: #ff6a13;
}

.program-hero-block .ph-form-inner {
  padding: 2rem;
}

@media (min-width: 768px) {
  .program-hero-block .ph-form-inner {
    padding: 2.5rem;
  }
}

.program-hero-block .ph-form-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.program-hero-block .ph-form-subtitle {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
  margin: 1rem 0 0 0;
}

.program-hero-block .ph-form-subtitle p {
  margin: 0 0 0.25rem 0;
}

.program-hero-block .ph-form-subtitle p:last-child {
  margin-bottom: 0;
}

.program-hero-block .ph-form-subtitle strong {
  font-weight: 700;
  color: #0f172a;
}

.program-hero-block .ph-form-subtitle em {
  font-style: italic;
}

/* Ninja Forms overrides scoped to this block */

.program-hero-block .ph-form-container .nf-form-content {
  padding: 0;
}

.program-hero-block .ph-form-container .nf-field-label label {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 0.375rem !important;
}

.program-hero-block .ph-form-container .nf-field input[type="text"],
.program-hero-block .ph-form-container .nf-field input[type="email"],
.program-hero-block .ph-form-container .nf-field input[type="tel"],
.program-hero-block .ph-form-container .nf-field select,
.program-hero-block .ph-form-container .nf-field textarea {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-size: 1rem !important;
  color: #1e293b !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
}

.program-hero-block .ph-form-container .nf-field input:focus,
.program-hero-block .ph-form-container .nf-field select:focus,
.program-hero-block .ph-form-container .nf-field textarea:focus {
  border-color: #ff6a13 !important;
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.15) !important;
  outline: none !important;
}

.program-hero-block .ph-form-container .nf-field input[type="submit"],
.program-hero-block .ph-form-container .nf-field button[type="submit"] {
  width: 100% !important;
  height: auto !important;
  background-color: #ff6a13 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  padding: 1rem !important;
  border-radius: 0.5rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s, transform 0.2s !important;
}

.program-hero-block .ph-form-container .nf-field input[type="submit"]:hover,
.program-hero-block .ph-form-container .nf-field button[type="submit"]:hover {
  background-color: #0f172a !important;
  transform: translateY(-2px) !important;
}

.program-hero-block .ph-form-container .nf-form-fields-required {
  display: none !important;
}

.program-hero-block .ph-form-container .nf-row {
  margin-bottom: 0.375rem !important;
}

.program-hero-block .ph-form-container .nf-field-container {
  margin-bottom: 0 !important;
}

.program-hero-block .nf-form-content .label-above .nf-field-label,
.program-hero-block .nf-form-content .label-below .nf-field-label,
.program-hero-block .nf-form-content .label-hidden .nf-field-label {
  margin-bottom: 0 !important;
}

/* Checkbox confirmation — styled checkbox + label */
.program-hero-block .ph-form-container .nf-field-container.checkbox-container {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}

.program-hero-block .ph-form-container .checkbox-container .nf-field-label label,
.program-hero-block .ph-form-container .checkbox-container label {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.program-hero-block .ph-form-container .checkbox-container .nf-field-element {
  margin: 0 !important;
  padding: 0 !important;
}

/* Custom checkbox appearance */
.program-hero-block .ph-form-container .checkbox-container input[type="checkbox"] {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  width: 1.125rem !important;
  height: 1.125rem !important;
  min-width: 1.125rem !important;
  border: 2px solid #cbd5e1 !important;
  border-radius: 0.25rem !important;
  background: #ffffff !important;
  cursor: pointer !important;
  vertical-align: middle !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: background-color 0.15s, border-color 0.15s !important;
  padding: 0 !important;
  margin: 0 !important;
}

.program-hero-block .ph-form-container .checkbox-container input[type="checkbox"]:checked {
  background-color: #ff6a13 !important;
  border-color: #ff6a13 !important;
}

.program-hero-block .ph-form-container .checkbox-container input[type="checkbox"]:checked::after {
  content: "" !important;
  position: absolute !important;
  left: 4px !important;
  top: 1px !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #ffffff !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) !important;
  display: block !important;
}

.program-hero-block .ph-form-container .checkbox-container input[type="checkbox"]:focus-visible {
  outline: 2px solid #ff6a13 !important;
  outline-offset: 2px !important;
}

/* reCAPTCHA — hide "Recaptcha v2" label, tighten spacing */
.program-hero-block .ph-form-container .recaptcha-container .nf-field-label {
  display: none !important;
}

.program-hero-block .ph-form-container .nf-field-container.recaptcha-container {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Submit button — pull up closer + send icon */
.program-hero-block .ph-form-container .nf-field-container.submit-container {
  margin-top: 0 !important;
}

.program-hero-block .ph-form-container .submit-wrap .nf-field-element {
  position: relative !important;
}

.program-hero-block .ph-form-container .submit-wrap .nf-field-element::before {
  content: "" !important;
  position: absolute !important;
  left: calc(50% - 3rem) !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M6 12L3.269 3.126A59.768 59.768 0 0121.485 12 59.77 59.77 0 013.27 20.876L5.999 12zm0 0h7.5'/%3E%3C/svg%3E") !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

/* ── Features Text (below badges) ── */

.program-hero-block .ph-features-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ── Responsive: stack on mobile ── */

@media (max-width: 1023px) {
  .program-hero-block .ph-container {
    text-align: center;
  }

  .program-hero-block .ph-description {
    margin-left: auto;
    margin-right: auto;
  }

  .program-hero-block .ph-badges {
    justify-content: center;
  }
}
