/* ═══════════════════════════════════════════════════════════════════
   NMS — New Home Hero
   Product Registration & Business Setup hero with glassmorphism form.
   All selectors scoped under .nmsh-nhh to prevent global leaks.
   ═══════════════════════════════════════════════════════════════════ */
.nmsh-nhh {
  --nhh-accent: #057485;
  --nhh-accent-dark: #045a66;
  --nhh-lime: #B4E717;
  --nhh-ink: #0A2540;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  font-family: 'Nunito Sans', 'Jost', system-ui, sans-serif;
  background-color: #0A2540;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
  min-height: 837px;
  padding-top: 60px;
  padding-bottom: 60px;
}
.nmsh-nhh * { box-sizing: border-box; }

/* ── Full-width breakout ── */
.elementor-widget-nmsh-new-home-hero:has(.nmsh-nhh--full) {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow-x: clip !important;
  overflow-y: visible !important;
}
.nmsh-nhh.nmsh-nhh--full { width: 100%; max-width: 100%; margin: 0; }

/* ── Background ── */
.nmsh-nhh-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.nmsh-nhh-bg-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.nmsh-nhh-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nmsh-nhh-poster-fallback { display: none; }
@media(max-width:768px) {
  .nmsh-nhh:not(.nmsh-nhh--video-mobile) .nmsh-nhh-video { display: none; }
  .nmsh-nhh:not(.nmsh-nhh--video-mobile) .nmsh-nhh-poster-fallback { display: block; }
}

/* ── Overlay ── */
.nmsh-nhh-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-color: #0A2540;
  pointer-events: none;
}

/* ── Inner ── */
.nmsh-nhh-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0 24px;
}
.nmsh-nhh-grid {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

/* ── Content Column ── */
.nmsh-nhh-content {
  flex: 0 0 55%;
  max-width: 55%;
}

/* Heading — compact, moved up */
.nmsh-nhh-heading {
  font-family: 'Spartan', 'Playfair Display', system-ui, sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}
.nmsh-nhh-accent { color: var(--nhh-accent); }

.nmsh-nhh-desc {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  margin: 0 0 18px;
  max-width: 480px;
}

/* ── Service List — vertical, line-by-line, green ticks ── */
.nmsh-nhh-svc-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nmsh-nhh-svc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  line-height: 1.5;
}
.nmsh-nhh-svc-icon {
  color: #B4E717;
  font-size: 14px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 4px rgba(180,231,23,.4));
}

/* ── CTA Buttons ── */
.nmsh-nhh-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nmsh-nhh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Nunito Sans', 'Jost', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all .25s ease;
  border: 2px solid transparent;
  line-height: 1.2;
}
.nmsh-nhh-btn--primary {
  background-color: var(--nhh-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5,116,133,.3);
}
.nmsh-nhh-btn--primary:hover {
  background-color: var(--nhh-accent-dark);
  box-shadow: 0 6px 20px rgba(5,116,133,.4);
  transform: translateY(-2px);
  color: #fff;
}
.nmsh-nhh-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.nmsh-nhh-btn--ghost:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateY(-2px);
}
.nmsh-nhh-btn-ic {
  font-size: 13px;
  display: inline-flex;
}

/* ── Form Column — compact ── */
.nmsh-nhh-form-wrap {
  flex: 0 0 38%;
  max-width: 38%;
}
/* Glassmorphism: blur on ::before so the card itself has overflow:visible
   and native <select> dropdowns render outside the card without clipping. */
.nmsh-nhh-form-card {
  position: relative;
  background: rgba(10,37,64,0.75);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 36px 28px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  overflow: visible;
  isolation: isolate;
}
.nmsh-nhh-form-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: -1;
}
@supports not (backdrop-filter: blur(1px)) {
  .nmsh-nhh-form-card {
    background: rgba(10,37,64,0.92);
  }
  .nmsh-nhh-form-card::before {
    display: none;
  }
}

/* ── CF7 form overrides (scoped) ── */
.nmsh-nhh-form-card .wpcf7 {
  color: #fff;
}
.nmsh-nhh-form-card .wpcf7 label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nmsh-nhh-form-card .wpcf7 input[type="text"],
.nmsh-nhh-form-card .wpcf7 input[type="email"],
.nmsh-nhh-form-card .wpcf7 input[type="tel"],
.nmsh-nhh-form-card .wpcf7 select,
.nmsh-nhh-form-card .wpcf7 textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease;
  box-sizing: border-box;
}
.nmsh-nhh-form-card .wpcf7 input::placeholder,
.nmsh-nhh-form-card .wpcf7 textarea::placeholder {
  color: rgba(255,255,255,0.45);
}
.nmsh-nhh-form-card .wpcf7 input:focus,
.nmsh-nhh-form-card .wpcf7 select:focus,
.nmsh-nhh-form-card .wpcf7 textarea:focus {
  border-color: var(--nhh-accent);
}
/* Select dropdown — force opaque options so they're readable */
.nmsh-nhh-form-card .wpcf7 select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 20 20'%3E%3Cpath d='M10 12l-6-6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
.nmsh-nhh-form-card .wpcf7 select option {
  color: #1a2332;
  background: #fff;
  padding: 8px;
}
.nmsh-nhh-form-card .wpcf7 .wpcf7-submit {
  width: 100%;
  padding: 14px 28px;
  background: var(--nhh-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 4px 14px rgba(5,116,133,.3);
}
.nmsh-nhh-form-card .wpcf7 .wpcf7-submit:hover {
  background: var(--nhh-accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(5,116,133,.4);
}
.nmsh-nhh-form-card .wpcf7-form .wpcf7-response-output {
  border: none;
  padding: 6px 0;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.nmsh-nhh-form-card .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ok { color: #4ade80; }
.nmsh-nhh-form-card .wpcf7-form .wpcf7-response-output.wpcf7-validation-errors,
.nmsh-nhh-form-card .wpcf7-form .wpcf7-response-output.wpcf7-mail-sent-ng { color: #f87171; }

/* ── Built-in form (scoped) ── */
.nmsh-nhh-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nmsh-nhh-form-title {
  font-family: 'Spartan', system-ui, sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 4px;
}
.nmsh-nhh-form-sub {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  margin: 0 0 16px;
  line-height: 1.4;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nmsh-nhh-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.nmsh-nhh-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nmsh-nhh-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.9);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.nmsh-nhh-input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}
.nmsh-nhh-input::placeholder { color: rgba(255,255,255,0.45); }
.nmsh-nhh-input:focus {
  border-color: var(--nhh-accent);
  box-shadow: 0 0 0 2px rgba(5,116,133,.2);
}
/* Select — native dropdown, no clipping */
select.nmsh-nhh-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='rgba(255,255,255,0.5)' viewBox='0 0 20 20'%3E%3Cpath d='M10 12l-6-6h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}
select.nmsh-nhh-input option {
  color: #1a2332;
  background: #fff;
  padding: 8px;
  white-space: normal;
  min-height: 20px;
}
textarea.nmsh-nhh-input {
  min-height: 60px;
  resize: vertical;
}
.nmsh-nhh-submit {
  width: 100%;
  padding: 14px 28px;
  background: var(--nhh-accent);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s ease;
  box-shadow: 0 4px 14px rgba(5,116,133,.3);
}
.nmsh-nhh-submit:hover { background: var(--nhh-accent-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,116,133,.4); }
.nmsh-nhh-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.nmsh-nhh-form-status { margin: 6px 0 0; font-size: 12px; font-weight: 600; text-align: center; }
.nmsh-nhh-form-status.is-ok { color: #4ade80; }
.nmsh-nhh-form-status.is-error { color: #f87171; }
.nmsh-nhh-form-notice {
  font-size: 13px;
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 20px;
}

/* ── Wave ── */
.nmsh-nhh-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 50px;
  z-index: 3;
  pointer-events: none;
}
.nmsh-nhh-wave svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ── Form-left layout ── */
.nmsh-nhh--form-left .nmsh-nhh-grid { flex-direction: row-reverse; }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet landscape */
@media(max-width:1024px) {
  .nmsh-nhh-grid {
    gap: 28px;
  }
  .nmsh-nhh-content {
    flex: 0 0 52%;
    max-width: 52%;
  }
  .nmsh-nhh-form-wrap {
    flex: 0 0 42%;
    max-width: 42%;
  }
}

/* Tablet portrait */
@media(max-width:960px) {
  .nmsh-nhh {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .nmsh-nhh-grid {
    flex-direction: column;
    gap: 28px;
  }
  .nmsh-nhh--form-left .nmsh-nhh-grid { flex-direction: column; }
  .nmsh-nhh-content, .nmsh-nhh-form-wrap {
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
  }
  .nmsh-nhh-form-wrap { order: 2; }
  .nmsh-nhh-desc { max-width: none; }
  .nmsh-nhh-inner { padding: 0 20px; }
}

/* Mobile */
@media(max-width:640px) {
  .nmsh-nhh {
    padding-top: 36px !important;
    padding-bottom: 56px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .nmsh-nhh-inner { padding: 0; }
  .nmsh-nhh-grid { gap: 20px; }
  .nmsh-nhh-heading {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .nmsh-nhh-desc {
    font-size: 14px;
    margin-bottom: 14px;
    font-weight: 500;
  }
  .nmsh-nhh-svc-list {
    gap: 5px;
    margin-bottom: 16px;
  }
  .nmsh-nhh-svc-list li { font-size: 13px; }
  .nmsh-nhh-actions {
    flex-direction: column;
    gap: 10px;
  }
  .nmsh-nhh-btn {
    justify-content: center;
    width: 100%;
    padding: 11px 20px;
    font-size: 13px;
  }
  .nmsh-nhh-form-card {
    padding: 18px 16px;
    border-radius: 12px;
    overflow: visible !important;
  }
  .nmsh-nhh-form-title { font-size: 16px; }
  .nmsh-nhh-form-sub { font-size: 12px; margin-bottom: 10px; padding-bottom: 8px; }
  .nmsh-nhh-form-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .nmsh-nhh-input {
    padding: 9px 12px;
    font-size: 13px;
  }
  .nmsh-nhh-submit {
    padding: 10px 18px;
    font-size: 13px;
  }
  .nmsh-nhh-wave { height: 35px; }
}

/* Small mobile */
@media(max-width:380px) {
  .nmsh-nhh {
    padding-top: 32px !important;
    padding-bottom: 48px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .nmsh-nhh-heading { font-size: 22px; }
  .nmsh-nhh-svc-list li { font-size: 12px; }
  .nmsh-nhh-form-card { padding: 16px 14px; }
}

/* ── Reduced motion ── */
@media(prefers-reduced-motion:reduce) {
  .nmsh-nhh-btn, .nmsh-nhh-input, .nmsh-nhh-submit, .nmsh-nhh-form-card {
    transition: none !important;
  }
}
