
/* ==================================
   OGEN FINANCES - HERO RESPONSIVE FIX
   ================================== */

/* תיקון רוחב רכיב ה-HTML החדש */
.elementor-widget-html:has(#ogen-hero-new) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 100% !important;
  align-self: stretch !important;
}

.elementor-widget-html:has(#ogen-hero-new)
.elementor-widget-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* תיקון הקונטיינר שמכיל את ה-Hero */
.e-con:has(> .elementor-widget-html #ogen-hero-new) {
  --width: 100%;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  display: block !important;
}

/* HERO - General */
#ogen-hero-new {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  background: #F9F5E4 !important;
}

/* Desktop */
@media (min-width: 1025px) {

  #ogen-hero-new .hero-inner {
    display: grid !important;
    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(0, 0.9fr) !important;
    width: 100% !important;
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding: 35px 30px 0 !important;
    gap: 35px !important;
    align-items: end !important;
  }

  #ogen-hero-new .hero-content {
    width: 100% !important;
    min-width: 0 !important;
    align-self: center !important;
    padding: 15px 0 45px !important;
    text-align: right !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(36px, 4vw, 56px) !important;
    line-height: 1.15 !important;
  }

  #ogen-hero-new .hero-benefits li {
    font-size: 19px !important;
  }

  #ogen-hero-new .hero-visual {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: flex-end !important;
    margin: 0 !important;
  }

  #ogen-hero-new .hero-visual img {
    display: block !important;
    width: 100% !important;
    max-width: 470px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {

  #ogen-hero-new .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 35px 30px 0 !important;
    gap: 20px !important;
  }

  #ogen-hero-new .hero-content {
    width: 100% !important;
    padding: 0 !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(36px, 5vw, 48px) !important;
  }

  #ogen-hero-new .hero-visual {
    width: 100% !important;
    justify-content: center !important;
    margin: 0 !important;
  }

  #ogen-hero-new .hero-visual img {
    width: 100% !important;
    max-width: 350px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }

}

/* Mobile */
@media (max-width: 767px) {

  #ogen-hero-new .hero-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    padding: 25px 18px 0 !important;
    gap: 0 !important;
  }

  #ogen-hero-new .hero-content {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: right !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(29px, 8vw, 39px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0 !important;
  }

  #ogen-hero-new .hero-title .amount {
    white-space: normal !important;
    font-size: clamp(27px, 7.8vw, 38px) !important;
    overflow-wrap: normal !important;
  }

  #ogen-hero-new .hero-eyebrow {
    font-size: 14px !important;
  }

  #ogen-hero-new .hero-benefits li {
    font-size: 16px !important;
    line-height: 1.5 !important;
  }

  #ogen-hero-new .hero-cta {
    width: 100% !important;
    min-height: 53px !important;
    font-size: 18px !important;
  }

  #ogen-hero-new .hero-visual {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: flex-end !important;
    margin-top: 24px !important;
  }

  #ogen-hero-new .hero-visual img {
    display: block !important;
    width: 90% !important;
    max-width: 310px !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    margin: 0 auto !important;
  }


/* OGEN HERO - Desktop refinements only */

@media (min-width: 1025px) {

  /* Remove unnecessary spacing around new hero */
  #ogen-hero-new {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Wider layout */
  #ogen-hero-new .hero-inner {
    width: 100% !important;
    max-width: 1360px !important;
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 0.8fr) !important;
    gap: 18px !important;
    padding: 8px 20px 0 !important;
    align-items: end !important;
  }

  /* Make the heading fit naturally */
  #ogen-hero-new .hero-content {
    width: 100% !important;
    padding: 0 0 24px !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(38px, 3.6vw, 51px) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  #ogen-hero-new .hero-title .amount {
    white-space: nowrap !important;
  }

  /* Give the actress more presence */
  #ogen-hero-new .hero-visual img {
    width: 100% !important;
    max-width: 530px !important;
    height: auto !important;
  }

  /* Tighter vertical spacing */
  #ogen-hero-new .hero-eyebrow {
    margin-bottom: 12px !important;
  }

  #ogen-hero-new .hero-benefits {
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

/* OGEN HERO - Desktop refinements only */

@media (min-width: 1025px) {

  /* Remove unnecessary spacing around new hero */
  #ogen-hero-new {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Wider layout */
  #ogen-hero-new .hero-inner {
    width: 100% !important;
    max-width: 1360px !important;
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 0.8fr) !important;
    gap: 18px !important;
    padding: 8px 20px 0 !important;
    align-items: end !important;
  }

  /* Make the heading fit naturally */
  #ogen-hero-new .hero-content {
    width: 100% !important;
    padding: 0 0 24px !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(38px, 3.6vw, 51px) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  #ogen-hero-new .hero-title .amount {
    white-space: nowrap !important;
  }

  /* Give the actress more presence */
  #ogen-hero-new .hero-visual img {
    width: 100% !important;
    max-width: 530px !important;
    height: auto !important;
  }

  /* Tighter vertical spacing */
  #ogen-hero-new .hero-eyebrow {
    margin-bottom: 12px !important;
  }

  #ogen-hero-new .hero-benefits {
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

}

/* OGEN HERO - Desktop refinements only */

@media (min-width: 1025px) {

  /* Remove unnecessary spacing around new hero */
  #ogen-hero-new {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Wider layout */
  #ogen-hero-new .hero-inner {
    width: 100% !important;
    max-width: 1360px !important;
    grid-template-columns:
      minmax(0, 1.2fr)
      minmax(0, 0.8fr) !important;
    gap: 18px !important;
    padding: 8px 20px 0 !important;
    align-items: end !important;
  }

  /* Make the heading fit naturally */
  #ogen-hero-new .hero-content {
    width: 100% !important;
    padding: 0 0 24px !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(38px, 3.6vw, 51px) !important;
    line-height: 1.16 !important;
    letter-spacing: 0 !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  #ogen-hero-new .hero-title .amount {
    white-space: nowrap !important;
  }

  /* Give the actress more presence */
  #ogen-hero-new .hero-visual img {
    width: 100% !important;
    max-width: 530px !important;
    height: auto !important;
  }

  /* Tighter vertical spacing */
  #ogen-hero-new .hero-eyebrow {
    margin-bottom: 12px !important;
  }

  #ogen-hero-new .hero-benefits {
    gap: 10px !important;
    margin-bottom: 24px !important;
  }

/* Hero - closer to reference on desktop */

@media (min-width: 1025px) {

  #ogen-hero-new .hero-inner {
    max-width: 1380px !important;
    grid-template-columns:
      minmax(0, 1.65fr)
      minmax(0, 0.85fr) !important;
    gap: 35px !important;
    padding: 28px 45px 0 !important;
    align-items: end !important;
  }

  #ogen-hero-new .hero-content {
    align-self: center !important;
    padding: 0 0 32px !important;
  }

  #ogen-hero-new .hero-title {
    font-size: clamp(38px, 3.35vw, 51px) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 26px !important;
    white-space: normal !important;
  }

  #ogen-hero-new .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }

  #ogen-hero-new .hero-eyebrow {
    margin-bottom: 15px !important;
  }

  #ogen-hero-new .hero-gold-line {
    margin-bottom: 29px !important;
  }

  #ogen-hero-new .hero-benefits {
    gap: 13px !important;
    margin-bottom: 35px !important;
  }

  #ogen-hero-new .hero-benefits li {
    font-size: 19px !important;
  }

  #ogen-hero-new .hero-visual {
    align-self: end !important;
    align-items: flex-end !important;
  }

  #ogen-hero-new .hero-visual img {
    width: 100% !important;
    max-width: 410px !important;
    height: auto !important;
    margin: 0 auto !important;
  }
}

/* Allow title to wrap naturally on mobile/tablet */
@media (max-width: 1024px) {
  #ogen-hero-new .hero-title-line {
    display: block;
    white-space: normal;
  }
}

/* הרחבת המחשבון בנייד בלבד */
@media (max-width: 767px) {
  #ogen-clean-calculator {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0 !important;
  }

  #ogen-clean-calculator .oc-result {
    width: 100% !important;
  }
}

/* OGEN - Mobile lead form styling */
@media (max-width: 767px) {

  .ogen-lead-form-section .wpforms-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }

  .ogen-lead-form-section .wpforms-form {
    width: 100% !important;
  }

  .ogen-lead-form-section .wpforms-field-container {
    display: flex !important;
    flex-wrap: wrap !important;
    column-gap: 10px !important;
    row-gap: 12px !important;
  }

  /* First and last name */
  .ogen-lead-form-section .wpforms-field-container
  > .wpforms-field:nth-child(1),
  .ogen-lead-form-section .wpforms-field-container
  > .wpforms-field:nth-child(2) {
    width: calc(50% - 5px) !important;
    flex: 0 0 calc(50% - 5px) !important;
    min-width: 0 !important;
  }

  /* Phone */
  .ogen-lead-form-section .wpforms-field-container
  > .wpforms-field:nth-child(3) {
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 0 !important;
  }

  .ogen-lead-form-section .wpforms-field {
    padding: 0 !important;
    margin: 0 !important;
  }

  .ogen-lead-form-section .wpforms-field-label {
    display: block !important;
    margin-bottom: 7px !important;
    color: #101B38 !important;
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: right !important;
  }

  .ogen-lead-form-section .wpforms-field input {
    width: 100% !important;
    max-width: 100% !important;
    height: 43px !important;
    padding: 9px 12px !important;
    background: #FFFFFF !important;
    border: 1px solid #AEB3BD !important;
    border-radius: 3px !important;
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 14px !important;
    text-align: right !important;
  }

  .ogen-lead-form-section .wpforms-submit-container {
    width: 100% !important;
    padding-top: 19px !important;
  }

  .ogen-lead-form-section button.wpforms-submit {
    display: block !important;
    width: 100% !important;
    min-height: 58px !important;
    background: #593E91 !important;
    color: #FFFFFF !important;
    border: 0 !important;
    border-bottom: 4px solid #321D65 !important;
    border-radius: 4px !important;
    font-family: 'Heebo', Arial, sans-serif !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-align: center !important;
  }

}

