@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@700;800&display=swap');

.sterling-hero-module {
  position: relative;
  font-family: 'Inter', sans-serif;
  color: #FFFFFF;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

/* ==========================================================================
   DYNAMIC SCROLL-DRIVEN STICKY HEADER STYLING
   ========================================================================== */

.shm-global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent; 
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-sizing: border-box;
}

.shm-header-container {
  max-width: 1304px;
  margin: 0 auto;
  padding: 1.15rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.shm-header-logo-wrap {
  display: block;
  max-width: 160px;
  width: 100%;
}

.shm-header-logo-wrap .logo-img {
  display: block;
  width: 100%;
  height: auto;
}

.shm-header-logo-wrap .logo-img--dark {
  display: none; 
}

.shm-header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.shm-nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.shm-nav-phone svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
}

.shm-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 1.25rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.2s ease-in-out;
}

.shm-nav-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.shm-nav-btn--black {
  background-color: var(--brand-primary);
  color: #fff;
}

.shm-nav-btn--black:hover {
  background-color: var(--brand-secondary);
}

.shm-nav-btn--gold {
  background-color: var(--brand-secondary);
  color: #fff !important;
}

.shm-nav-btn--gold:hover {
  background-color: var(--brand-secondary-hover);
}

/* --- ACTIVE SCROLL CLASSES INJECTED BY JS --- */
.shm-global-header.is-scrolled {
  background-color: #FFFFFF !important; 
  border-bottom: 1px solid #EAEAEA;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.shm-global-header.is-scrolled .logo-img--light {
  display: none !important;
}

.shm-global-header.is-scrolled .logo-img--dark {
  display: block !important;
}

.shm-global-header.is-scrolled .shm-nav-phone {
  color: var(--brand-primary); !important;
}

.shm-global-header.is-scrolled .shm-nav-phone:hover {
  color: var(--brand-primary-hover); !important;
}

.shm-global-header.is-scrolled .shm-nav-btn--black {
  background-color: var(--brand-primary);
  color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTIONS BASE STYLES
   ========================================================================== */

.shm-bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05); 
  transition: transform 0.8s ease;
  z-index: -2;
}

.sterling-hero-module:hover .shm-bg-layer {
  transform: scale(1);
}

.shm-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 45%, rgba(0,0,0,0.4) 65%, rgba(0,0,0,0.9) 100%);
  z-index: -1;
}

.shm-outer-wrapper {
  max-width: 1304px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem 2rem; 
}

.shm-inner-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 3.5rem;
}

.shm-content-matrix, 
.shm-form-panel {
  flex: 1;
  width: 50%;
}

.shm-pill-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--brand-primary-light);
  background-color: var(--brand-primary-light);
  color: var(--brand-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.shm-pill-badge::before {
  content: '●';
  margin-right: 0.5rem;
}

.shm-tagline {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.shm-title-block h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin: 0 0 1rem;
  line-height: 1.1;
}

.shm-title-block h1 span {
  color: var(--brand-primary-light);
  font-style: italic;
}

.shm-title-block h1.font-gold {
  color: #D4A96A;
}

.shm-description p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #fff;
  margin: 1.75rem 0 2rem 0;
  max-width: 580px;
}

.shm-badges-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.shm-bullet-tag {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 50px;
}

.shm-bullet-tag .timer-icon {
  width: 14px;
  height: 14px;
  margin-right: 0.6rem;
  fill: var(--brand-primary-light);
  stroke: var(--brand-primary-light);
  stroke-width: 2.5;
}

.shm-buttons-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.shm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.85rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  box-sizing: border-box;
  height: 48px;
}

.shm-btn--solid {
  background-color: var(--brand-secondary);
  color: #fff !important;
}

.shm-btn--solid:hover {
  background-color: var(--brand-secondary-hover);
}

.btn-arrow {
  width: 14px;
  height: 14px;
  margin-left: 0.5rem;
  stroke: currentColor;
  stroke-width: 2.5;
}

.shm-btn--outline {
  background-color: transparent;
  color: #fff !important;
  border: 1px solid var(--brand-secondary);
}

.shm-btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-arrow,
.btn-icon {
  width: 15px;
  height: 15px;
  margin-right: 0.5rem;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: transparent;
}

/* ==========================================================================
   FORM PANEL & CARDS LAYOUT
   ========================================================================== */

.shm-form-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  margin-left: auto;
  max-width: 620px;
}

.shm-card-header {
  background-color: var(--brand-primary);
  border-radius: 12px 12px 0 0;
  padding: 1.75rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.shm-offer-small {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--brand-primary-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.shm-offer-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.15;
}

.shm-expiry-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.shm-expiry-pill {
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--brand-primary);
  background-color: var(--brand-primary-light);
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}

.shm-expiry-date {
  font-size: 0.88rem;
  color: #fff;
  font-weight: 500;
}

.shm-header-icon-wrap {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 2px;
}

.shm-header-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.shm-card-body {
  background: #fff;
  border-radius: 0 0 12px 12px;
  padding: 2.5rem;
}

.shm-countdown-matrix {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.timer-box {
  flex: 1;
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.timer-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-primary);
}

.timer-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--brand-primary-muted);
  letter-spacing: 0.12em;
}

.shm-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #111111;
  margin: 0 0 0.5rem 0;
  line-height: 1.25;
}

.shm-form-description p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #8C8C8C; 
  margin: 0 0 1.5rem 0;
}

ul.inputs-list {
  padding-left: 0px;
  margin-top: 0px;
}

/* ==========================================================================
   FIXED HUBSPOT FORM COMPONENT STYLING & GRID CONTROLS
   ========================================================================== */

/* Clean form layout width wrappers */
.shm-hubspot-form-wrapper .hs-form,
.shm-hubspot-form-wrapper .links-wrapper,
.shm-hubspot-form-wrapper .hs_cos_wrapper_type_form {
  width: 100% !important;
  display: block !important;
}

/* Base Form Block uses Flex layout instead of Grid to avoid wrapping clashes */
.shm-hubspot-form-wrapper form.hs-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.15rem !important;
}

/* Strip native wrapper layout paddings */
.shm-hubspot-form-wrapper .hs-form-field,
.shm-hubspot-form-wrapper .hs-fieldwrap,
.shm-hubspot-form-wrapper .input {
  margin-bottom: 0 !important;
  width: 100% !important;
}

/* STST: Force structural field rows to span completely full width */
.shm-hubspot-form-wrapper fieldset,
.shm-hubspot-form-wrapper .hs-field-email,
.shm-hubspot-form-wrapper .hs_phone,
.shm-hubspot-form-wrapper .hs_phone_number,
.shm-hubspot-form-wrapper .hs_email,
.shm-hubspot-form-wrapper .hs_when_do_you_want_to_purchase_your_new_home,
.shm-hubspot-form-wrapper .hs-custom-style,
.shm-hubspot-form-wrapper .legal-consent-container,
.shm-hubspot-form-wrapper .hs-submit {
  width: 100% !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

/* 🌟 STICKY FIX: Force First and Last Name fieldsets into a clean side-by-side flex row container */
.shm-hubspot-form-wrapper form.hs-form fieldset:first-of-type {
  display: flex !important;
  gap: 0.75rem !important;
  width: 100% !important;
}

.shm-hubspot-form-wrapper form.hs-form fieldset:first-of-type .hs-form-field {
  flex: 1 !important;
  width: 50% !important;
}

/* 🌟 CLEAR OUT CRITICAL HIDDEN FIELDS OVERLAPS: Forces hidden parameters to completely drop out of display flows */
.shm-hubspot-form-wrapper .hs-hidden,
.shm-hubspot-form-wrapper .hidden,
.shm-hubspot-form-wrapper input[type="hidden"],
.shm-hubspot-form-wrapper .hs-form-field.hs-hidden {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Style field labels */
.shm-hubspot-form-wrapper label:not(.hs-helper-toggle) {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: #4A4A4A !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  display: block !important;
  margin-bottom: 0.4rem !important;
}

/* Base form input text fields matching mockup graphics */
.shm-hubspot-form-wrapper .hs-input,
.shm-hubspot-form-wrapper select,
.shm-hubspot-form-wrapper textarea {
  width: 100% !important;
  height: 44px !important;
  border-radius: 6px !important;
  border: 1px solid #D8D1C5 !important;
  background-color: #FFFFFF !important;
  padding: 0 1rem !important;
  box-sizing: border-box !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: #111111 !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease-in-out !important;
}

/* Custom select dropdown arrows overlay configuration */
.shm-hubspot-form-wrapper select {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234A4A4A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 16px !important;
  padding-right: 2.5rem !important;
  color: #111111 !important;
}

.shm-hubspot-form-wrapper .hs-input:focus,
.shm-hubspot-form-wrapper select:focus {
  border-color: #1A1A1A !important;
  outline: none !important;
}

/* Privacy Consent alignment optimization */
.shm-hubspot-form-wrapper .hs-form-booleancheckbox-display {
  display: flex !important;
  align-items: flex-start !important;
  gap: 0.65rem !important;
  margin-top: 0.5rem !important;
}

.shm-hubspot-form-wrapper .hs-input[type="checkbox"] {
  margin: 3px 0 0 0 !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  border: 1px solid #D8D1C5 !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
}

.shm-hubspot-form-wrapper .hs-form-booleancheckbox-display label {
  text-transform: none !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  line-height: 1.45 !important;
  color: #4A4A4A !important;
  letter-spacing: normal !important;
  margin: 0 !important;
  cursor: pointer !important;
}

/* Solid Full Width Submit Button - Fixed Text Wrapping completely */
.shm-hubspot-form-wrapper .hs-button {
  width: 100% !important;
  height: 48px !important;
  background-color: var(--brand-primary) !important;
  color: #FFFFFF !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
  border: none !important;
  border-radius: 6px !important;
  margin-top: 1rem !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
  transition: background-color 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.shm-hubspot-form-wrapper .hs-button:hover {
  background-color: var(--brand-secondary) !important;
}

/* Native Error tracking blocks styling */
.shm-hubspot-form-wrapper ul.hs-error-msgs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0.35rem 0 0 0 !important;
}

.shm-hubspot-form-wrapper ul.hs-error-msgs label {
  color: #FF3B30 !important;
  text-transform: none !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT CONSTRAINTS REFLEX BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .shm-outer-wrapper {
    padding-top: 8rem !important;
  }
  .shm-inner-content {
    flex-direction: column;
    gap: 3rem;
  }
  .shm-content-matrix, 
  .shm-form-panel {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
  .shm-form-card {
    margin-left: 0;
    max-width: 100%;
  }
}

/* 🌟 MOBILE HEADER PROTECTION LAYOUT (PREVENTS COLLISION AND OVERLAPPING CODES) */
@media (max-width: 580px) {
  .shm-header-container {
    padding: 0.85rem 1rem !important; /* Condense padding margins */
  }
  .shm-header-logo-wrap {
    max-width: 105px !important; /* Scale logo downward safely */
  }
  .shm-header-actions {
    gap: 0.5rem !important; /* Tighten action gaps spaces */
  }
  .shm-nav-phone {
    font-size: 0.8rem !important;
  }
  .shm-nav-phone svg {
    width: 12px !important;
    height: 12px !important;
  }
  .shm-nav-btn {
    height: 34px !important;
    padding: 0 0.65rem !important;
    font-size: 0.75rem !important;
    border-radius: 4px !important;
  }
  .shm-nav-btn svg {
    width: 11px !important;
    height: 11px !important;
    gap: 0.25rem !important;
  }
}

@media (max-width: 768px) {
  .shm-header-actions .shm-nav-phone span,
  .shm-header-actions .shm-nav-btn--black span {
    display: none !important; /* Hides text labels dynamically inside standard portrait tablets */
  }
  .shm-header-actions .shm-nav-btn--black {
    padding: 0 0.75rem;
  }
  .shm-title-block h1 {
    font-size: 2rem;
  }
  .shm-pill-badge {
    margin-bottom: 1.25rem;
  }
  .timer-val {
    font-size: 1.45rem;
  }
}

/* ==========================================================================
   FORCE HIDE ALL NATIVE HUBSPOT HIDDEN FIELD CONTAINERS
   ========================================================================== */

/* Targets the standard wrapper layout row when a field is set to hidden */
.shm-hubspot-form-wrapper .hs-form-field.hs-hidden,
.shm-hubspot-form-wrapper .hs-hidden,
.shm-hubspot-form-wrapper .hidden,
.shm-hubspot-form-wrapper [style*="display: none"],
.shm-hubspot-form-wrapper [style*="display:none"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  position: absolute !important;
  pointer-events: none !important;
}

/* Targets HubSpot's new rendering engine hidden item structures */
.shm-hubspot-form-wrapper [data-hs-field-hidden="true"],
.shm-hubspot-form-wrapper form.hs-form .hs-field-type-hidden,
.shm-hubspot-form-wrapper input[type="hidden"] {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

  .c-feature-grid *,
  .c-feature-grid {
    box-sizing: border-box;
    font-family: inherit;
  }

  .c-feature-grid {
    margin: 2rem 0 0 0;
    background-color: rgba(0, 0, 0, 0.40); 
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
  }

  .c-feature-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
  }

  .c-feature-item__icon-wrapper {
    flex-shrink: 0;
    margin-right: 24px;
    padding: 1rem;
    background: color-mix(in srgb, var(--brand-secondary), transparent 75%);
    border: 1.5px solid var(--brand-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

.c-feature-item__icon-wrapper .hs_cos_wrapper_type_icon,
.c-feature-item__icon-wrapper svg {
  width: 16px !important; 
  height: 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

/* Deep target all path shapes to force the color swap */
.c-feature-item__icon-wrapper svg path,
.c-feature-item__icon-wrapper svg circle,
.c-feature-item__icon-wrapper svg rect {
  fill: var(--brand-secondary) !important;
  stroke: var(--brand-secondary) !important;
}
  .c-feature-item__text-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .c-feature-item__pretext {
  display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #a3b1cc;
  }

  .c-feature-item__text {
    color: #fff;
    font-family: Playfair Display, Georgia, serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
  }

  .c-plus-separator {
    display: flex;
    align-items: center;
  justify-content: center;
    font-size: .75rem;
    text-transform: uppercase;
    color: var(--brand-secondary);
    text-align: center;
    padding: .5rem 0;
    letter-spacing: 2px;
    font-weight: 700;
  background: rgba(255, 255, 255, 0.075);
  }

  .c-plus-separator__plus {
    margin-right: 6px;
    font-size: 14px;
    position: relative;
    top: -1px;
  }