/*global css for all screen sizes*/
.estimate-section-row {
  padding: var(--estimate-section-padding);
}

.products-demand {
  padding: var(--productsDemand-section-padding);
}

/* ================= LARGE DESKTOP OPTIMIZATION ================= */

/* ---------- 1600px to 1919px ---------- */
@media (min-width: 1600px) and (max-width: 1919px) {

  .homepage-hero,
  .features-section,
  .about-section,
  .reward-section,
  .insight-section {
    padding: var(--section-padding-y) var(--section-padding-x) !important;
  }

  .estimate-section-row {
    padding: var(--estimate-section-padding);
  }

  .products-demand {
    padding: var(--productsDemand-section-padding);
  }


  .homepage-hero__form-card {
    max-width: 600px;
    /* slightly wider than default */
    padding: 20px 30px !important;
    border-width: clamp(16px, 1.2vw, 22px) !important;
    /* Thicker border for prominence */
  }


  .homepage-hero__form-card input,
  .homepage-hero__form-card textarea {
    font-size: 1.1rem !important;
    padding: 1rem 1.2rem !important;
  }

  .homepage-hero__form-card button {
    font-size: 1.1rem !important;
    padding: 0.6rem 1.3rem !important;
  }

  .homepage-hero__form-card::before {
    bottom: -22px;
    right: -22px;
    width: 22px;
    height: 22px;
  }

  .homepage-hero__form-card::after {
    bottom: -21px;
    right: -42px;
    width: 20px;
    height: 20px;
  }
}

/* ---------- 1920px to 2499px ---------- */
@media (min-width: 1920px) and (max-width: 2499px) {

  .homepage-hero,
  .features-section,
  .about-section,
  .reward-section,
  .insight-section {
    padding: var(--section-padding-y) var(--section-padding-x) !important;
  }

  .estimate-section-row {
    padding: var(--estimate-section-padding);
  }

  .products-demand {
    padding: var(--productsDemand-section-padding);
  }

  .homepage-hero__form-card {
    max-width: 650px !important;
    padding: 28px 36px !important;
    border-width: clamp(16px, 1.3vw, 23px) !important;
    /* Thicker border for prominence */
  }


  .homepage-hero__form-card input,
  .homepage-hero__form-card textarea {
    font-size: 1.2rem !important;
    padding: 1.2rem 1.4rem !important;
  }

  .homepage-hero__form-card button {
    font-size: 1.2rem !important;
    padding: 0.7rem 1.5rem !important;
  }

  .hero__form-corner-arrow {
    width: clamp(54px, 4.8vw, 70px) !important;
    height: clamp(54px, 4.8vw, 70px) !important;
  }

  .homepage-hero__form-card::before {
    bottom: -24px;
    right: -24px;
    width: 24px;
    height: 24px;
  }

  .homepage-hero__form-card::after {
    bottom: -23px;
    right: -46px;
    width: 22px;
    height: 22px;
  }

}

/* ---------- 2500px and above ---------- */
@media (min-width: 2500px) {

  .homepage-hero,
  .features-section,
  .about-section,
  .reward-section,
  .insight-section {
    padding: var(--section-padding-y) var(--section-padding-x) !important;
  }

  .estimate-section-row {
    padding: var(--estimate-section-padding);
  }

  .products-demand {
    padding: var(--productsDemand-section-padding);
  }


  .homepage-hero__form-card {
    max-width: 750px !important;
    padding: 32px 40px !important;
    border-width: clamp(18px, 1.4vw, 24px) !important;
    /* Thicker border for prominence */
  }

  .homepage-hero__form-card input,
  .homepage-hero__form-card textarea {
    font-size: 1.25rem !important;
    padding: 1.3rem 1.5rem !important;
  }

  .homepage-hero__form-card button {
    font-size: 1.3rem !important;
    padding: 0.8rem 2rem !important;
  }

  .hero__form-corner-arrow {
    width: clamp(62px, 5.2vw, 85px) !important;
    height: clamp(62px, 5.2vw, 85px) !important;
  }

  .homepage-hero__form-card::before {
    bottom: -25px;
    right: -24px;
    width: 24px;
    height: 24px;
  }

  .homepage-hero__form-card::after {
    bottom: -24px;
    right: -47px;
    width: 24px;
    height: 24px;
  }
}





/*new*/
  /* card wrapper */
  .homepage-hero__form-card {
    border: solid var(--color-secondary);
    position: relative !important;
    box-sizing: border-box !important;
    min-width: 340px;
    width: var(--container-outer-w) !important;
    max-width: 100% !important;
    min-height: var(--container-outer-h) !important;
    background: var(--container-bg) !important;
    padding: var(--container-outer-padding) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: var(--container-outer-gap) !important;
    border-width: var(--container-frame-border-width) ! important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 0 auto;
  }


  /* Ensure content sits above the frame */
  .homepage-hero__form-card>.so-widget-sow-editor {
    position: relative !important;
    z-index: 1 !important;
  }

  /* form element wrapper to ensure consistent width */
  .homepage-hero__form-card .forminator-ui {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* each row spacing */
  .homepage-hero__form-card .forminator-row {
    margin: 0 !important;
  }

  /* vertical spacing between rows (uses variable) */
  .homepage-hero__form-card .forminator-row+.forminator-row {
    margin-top: var(--container-gap-vertical) !important;
  }

  /* inputs (text / email / phone) */
  .homepage-hero__form-card .forminator-input,
  .homepage-hero__form-card .forminator-name--field,
  .homepage-hero__form-card .forminator-field--phone,
  .homepage-hero__form-card .forminator-email--field {
    width: var(--container-input-w) !important;
    max-width: 100% !important;
    height: var(--container-input-h) !important;
    min-height: var(--container-input-h) !important;
    padding: 0.6rem 1rem !important;
    border: 1px solid var(--container-border-color) !important;
    border-radius: 0 !important;
    background: var(--container-input-bg) !important;
    font-size: var(--container-field-fs) !important;
    line-height: var(--container-field-lh) !important;
    color: var(--container-field-color) !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color .12s ease !important;
    box-shadow: .12s ease !important;
  }

  /* textarea */
  .homepage-hero__form-card .forminator-textarea {
    width: var(--container-input-w) !important;
    max-width: 100% !important;
    min-height: var(--container-textarea-h) !important;
    height: var(--container-textarea-h) !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--container-border-color) !important;
    border-radius: 0 !important;
    background: var(--container-input-bg) !important;
    font-size: var(--container-field-fs) !important;
    line-height: var(--container-field-lh) !important;
    color: var(--container-field-color) !important;
    box-sizing: border-box !important;
    resize: vertical !important;
  }

  /* button */
  .homepage-hero__form-card .forminator-button {
    height: var(--container-btn-h) !important;
    min-height: var(--container-btn-h) !important;
    padding: 0 var(--container-btn-padding-inline) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    border: none !important;
    box-sizing: border-box !important;
  }

  /* focus / accessible states */
  .homepage-hero__form-card .forminator-input:focus,
  .homepage-hero__form-card .forminator-textarea:focus {
    border-color: rgba(229, 56, 59, 0.95) !important;
    box-shadow: 0 0 0 6px rgba(229, 56, 59, 0.08) !important;
  }

  /* decorative corner images */
  .homepage-hero__form-card .homepage-hero__form-card {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .homepage-hero__form-corner-arrow {
    position: absolute !important;
    top: calc(-1.1 * var(--form-outer-corner-arrow-offset)) !important;
    right: calc(-1 * var(--form-outer-corner-arrow-offset)) !important;

    /* size: width variable, keep height proportional */
    width: var(--form-outer-corner-arrow-width) !important;
    height: auto !important;

    /* micro-adjust: shift slightly so arrow tip aligns perfectly with frame corner */
    transform: translate(12%, -6%) !important;
    /* tweak percentages if needed */

    z-index: 6 !important;
    /* above card content */
    pointer-events: none !important;
    /* don't block clicks/inputs */
    display: block !important;
  }

/*new*/
/* ===== Desktop-specific enforcement (reinforce variables with !important) ===== */
@media (min-width: 100px) {
  .homepage-hero__form-card {
    width: var(--container-outer-w) !important;
    min-height: var(--container-outer-h) !important;
    padding: var(--container-outer-padding) !important;
    gap: var(--container-outer-gap) !important;
  }

  .homepage-hero__form-card .forminator-input,
  .homepage-hero__form-card .forminator-name--field,
  .homepage-hero__form-card .forminator-field--phone,
  .homepage-hero__form-card .forminator-email--field {
    height: var(--container-input-h) !important;
    min-height: var(--container-input-h) !important;
    font-size: var(--container-field-fs) !important;
  }

  .homepage-hero__form-card .forminator-textarea {
    height: var(--container-textarea-h) !important;
    min-height: var(--container-textarea-h) !important;
    font-size: var(--container-field-fs) !important;
  }

  .homepage-hero__form-card .forminator-button {
    margin-top: var(--container-gap-vertical) !important;
    height: var(--container-btn-h) !important;
    min-height: var(--container-btn-h) !important;
    padding: 0 var(--container-btn-padding-inline) !important;
  }

  .homepage-hero__form-card .forminator-row+.forminator-row {
    margin-top: var(--container-gap-vertical) !important;
  }

  .homepage-hero__form-inner-corner {
    top: -39px !important;
    right: -51px !important;
  }

  .homepage-hero__form-card h3.form-title {
    margin: 0 !important;
  }

  .homepage-hero__form-card p.form-description {
    margin-top: 10px;
    margin-bottom: 0;
  }

  #forminator-module-106 {
    margin: 0;
  }
}
/*new*/

@media (min-width: 1920px) {
  .homepage-hero__form-inner-corner {
    top: -43px !important;
    right: -50px !important;
  }
}

@media (min-width: 2500px) {
  .homepage-hero__form-inner-corner {
    top: -53px !important;
    right: -69px !important;
  }
}







/* =========================================
   FEATURES SECTION — Large Desktop overrides
   Add to responisveHomepage.css (after other large-breakpoint rules)
   ========================================= */

/* ---------- 1600px — 1919px ---------- */
@media (min-width:1600px) and (max-width:1919px) {
  :root {
    --feat-video-max-w: 680px;
    /* cap for video column */
    --feat-video-min-w: 480px;
    /* min sensible width */
    --feat-video-width: 100%;
    /* min sensible width */
    --feat-video-h: 520px;
    /* visual height for the video area */
    --feat-card-min-h: 420px;
    /* bottom card min-height */
    --feat-grid-gap: 2.8rem;
  }

  /* make left column flexible and cap the right (video) column */
  .features-section__top {
    grid-template-columns: 1fr minmax(var(--feat-video-min-w), var(--feat-video-max-w)) !important;
    gap: var(--feat-grid-gap) !important;
    align-items: stretch;
  }

  /* cap video block size and align it to the right inside the column */
  .video-card-col {
    width: var(--feat-video-width);
    min-height: var(--feat-video-h) !important;
    justify-self: end;
    /* keep video visually anchored to the right edge */
    overflow: hidden;
  }

  /* keep video filling the card but within the capped size */
  .feature-video-card-widget,
  .feature-video-card-widget .wp-video {
    width: 100%;
    height: 100%;
  }

  /* make bottom feature cards taller */
  .features-section__bottom .feature-card {
    min-height: var(--feat-card-min-h) !important;
  }

  /* nudge title/button for the larger video height (calculated from the video height var) */
  .video-card-title {
    /* shift the title down to sit inside the gradient overlay proportionally */
    bottom: calc(-0.8 * var(--feat-video-h)) !important;
  }

  .video-card-button {
    bottom: calc(-0.7 * var(--feat-video-h)) !important;
  }

  /* small adjustment to card title vertical placement */
  .features-section__bottom .feature-card__title {
    bottom: calc(-0.18 * var(--feat-card-min-h)) !important;
  }
}

/* ---------- 1920px — 2499px ---------- */
@media (min-width:1920px) and (max-width:2499px) {
  :root {
    --feat-video-max-w: 820px;
    --feat-video-width: 100%;
    --feat-video-min-w: 560px;
    --feat-video-h: 640px;
    --feat-card-min-h: 480px;
    --feat-grid-gap: 3rem;
  }

  .features-section__top {
    grid-template-columns: 1fr minmax(var(--feat-video-min-w), var(--feat-video-max-w)) !important;
    gap: var(--feat-grid-gap) !important;
  }

  .video-card-col {
    width: var(--feat-video-width);
    min-height: var(--feat-video-h) !important;
    justify-self: end;
  }

  .feature-video-card-widget,
  .feature-video-card-widget .wp-video {
    width: 100%;
    height: 100%;
  }

  .features-section__bottom .feature-card {
    min-height: var(--feat-card-min-h) !important;
  }

  .video-card-title {
    bottom: calc(-0.8 * var(--feat-video-h)) !important;
  }

  .video-card-button {
    bottom: calc(-0.7 * var(--feat-video-h)) !important;
  }

  .features-section__bottom .feature-card__title {
    bottom: calc(-0.18 * var(--feat-card-min-h)) !important;
  }
}

/* ---------- 2500px and up (Ultra-wide) ---------- */
@media (min-width:2500px) {
  :root {
    --feat-video-max-w: 980px;
    --feat-video-min-w: 640px;
    --feat-video-width: 100%;
    /* min sensible width */
    --feat-video-h: 780px;
    --feat-card-min-h: 540px;
    --feat-grid-gap: 3.2rem;
  }

  .features-section__top {
    grid-template-columns: 1fr minmax(var(--feat-video-min-w), var(--feat-video-max-w)) !important;
    gap: var(--feat-grid-gap) !important;
  }

  .video-card-col {
    width: var(--feat-video-width);
    min-height: var(--feat-video-h) !important;
    justify-self: end;
  }

  .feature-video-card-widget,
  .feature-video-card-widget .wp-video {
    width: 100%;
    height: 100%;
  }

  .features-section__bottom .feature-card {
    min-height: var(--feat-card-min-h) !important;
  }

  .video-card-title {
    bottom: calc(-0.8 * var(--feat-video-h)) !important;
  }

  .video-card-button {
    bottom: calc(-0.7 * var(--feat-video-h)) !important;
  }

  .features-section__bottom .feature-card__title {
    bottom: calc(-0.18 * var(--feat-card-min-h)) !important;
  }
}
@media (min-width:900px) and (max-width: 1400px){
  .estimate-section-title{
    font-size: calc(var(--section-title-fs) - 0.15rem) !important;
  }
}















/* --- small screens --- responsive css  */
/* hiding image for screens larger than mobile  */
@media (min-width: 768px) {
  .right-col-mobile-image {
    display: none !important;
  }
}

@media (max-width: 1199px) {
  #wpadminbar {
    display: none;
  }
}

/* tablet optimization  */

/* for all screens under desktop  */
@media (max-width: 1199px) {
  .forminator-ui#forminator-module-106.forminator-design--default .forminator-button-submit {
    width: auto;
  }

  .feature-card__button {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
    font-size: clamp(11px, 1.1vw, 14px);
  }

  .feature-card__title {
    bottom: clamp(-15px, -2.5vw, -25px);
    margin: 0 !important;
  }

  .video-card-button {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
    bottom: calc(-0.0744 * 100vw - 56.85px);
  }

  .video-card-title {
    bottom: calc(-0.0674 * 100vw - 79.2px);
  }

  .feature-card:hover .feature-card__title {
    transform: translateY(0);
  }

  .feature-card:hover .feature-card__button-arrow img,
  .feature-card:focus-within .feature-card__button-arrow img {
    transform: translateX(0);
  }

  .feature-card:hover .feature-card__img {
    transform: none;
  }

  .video-card-col:hover .video-card-button,
  .video-card-col:focus-within .video-card-button {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
  }

  .video-card-col:hover .video-card-title {
    transform: translateY(0);
  }

  .video-card-col:hover .video-card-button-arrow img,
  .video-card-col:focus-within .video-card-button-arrow img {
    transform: translateX(0);
  }

  .homepage-hero__form-card::after {
    bottom: -15px;
    right: -29px;
    width: 15px;
    height: 15px;
  }

  .homepage-hero__form-card::before {
    bottom: -15px;
    right: -14px;
    width: 15px;
    height: 15px;
  }
}

@media (min-width:901px) and (max-width: 1279px) {
  .forminator-textarea {
    height: 80px !important;
    min-height: 90px !important;
  }

  .homepage-hero__form-card p.form-description {
    font-size: calc(var(--section-para-fs) - 0.2rem) !important;
    line-height: calc(var(--section-para-lh) - 0.2rem) !important;
  }

  .homepage-hero__form-inner-corner {
    top: -28px !important;
    right: -35px !important;
  }
}

/* overriding the site origin layout change for tabs  */
@media (min-width: 768px) and (max-width: 800px) {
  #pg-293-0.panel-has-style>.panel-row-style {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .homepage-hero__partners-row {
    flex-direction: row !important;
    gap: 20px;
  }


  .features-section__top {
    display: grid !important;
    gap: 0;
  }

  .features-section__bottom {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  .estimate-section-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
  }

  /* estimate right area overriding*/
  #pgc-293-3-1 {
    width: 60%;
    width: calc(60% - (0.7 * 30px)) !important;
  }

  /*overriding about section left area*/
  #pgc-w6882232a64d7e-0-0 {
    width: 50%;
    width: calc(50% - (0.6 * 30px)) !important;
  }
}

/* For All Tablets */
@media (min-width: 768px) and (max-width: 1199px) {
  .homepage-hero {
    padding: 40px !important;
  }

  .features-section {
    padding: 40px !important;
  }

  .feature-card {
    min-height: 248px;
  }

  .about-section__desc {
    width: 100%;
  }
}

/* For Mini Tabs*/
@media (min-width: 768px) and (max-width: 800px) {
  .features-section {
    padding: 30px !important;
  }

  .features-section__bottom {
    gap: 10px
  }

  .feature-card {
    min-height: 228px;
  }

  .forminator-button {
    margin: 0 !important;
  }
}

@media(min-width:768px) and (max-width:900px) {
  .forminator-textarea {
    height: 60px !important;
    min-height: 80px !important;
  }

  .homepage-hero__form-card p.form-description {
    font-size: calc(var(--section-para-fs) - 0.3rem) !important;
    line-height: calc(var(--section-para-lh) - 0.3rem) !important;
  }

  .homepage-hero__form-inner-corner {
    top: -23px !important;
    right: -22px !important;
  }

  .homepage-hero__form-corner-arrow {
    top: calc(-0.9 * var(--form-outer-corner-arrow-offset)) !important;
    right: calc(-0.8 * var(--form-outer-corner-arrow-offset)) !important;
  }

  .homepage-hero__form-card::after {
    bottom: -14px;
    right: -27px;
    width: 13px;
    height: 13px;
  }

  .homepage-hero__form-card::before {
    bottom: -13px;
    right: -13px;
    width: 13px;
    height: 13px;
  }
  .estimate-section-title{
    font-size: calc(var(--section-title-fs) - 0.23rem) !important;
  }
   .estimate-title-corner-svg{
    top: 8px !important;
    right: -12px !important;
  }
}

/* - 
  - 
  - 
  - 
  - 
  - 
  - 
  - 
 */

/* Mobile Optimizations */

@media (max-width: 767px) {
  .homepage-hero__right {
    align-items: center !important;
    justify-content: center !important;
  }

  .homepage-hero__left {
    padding-top: 0;
  }

  .homepage-hero__form-card p.form-description {
    font-size: calc(var(--section-para-fs) - 0.2rem) !important;
    line-height: calc(var(--section-para-lh) - 0.2rem) !important;
  }

  /*new code*/
  .homepage-hero__form-inner-corner {
    top: -19px !important;
    right: -24px !important;
  }

  .homepage-hero__form-corner-arrow {
    top: calc(-0.9 * var(--form-outer-corner-arrow-offset)) !important;
    right: calc(-0.9 * var(--form-outer-corner-arrow-offset)) !important;
  }

  .homepage-hero__form-card::after {
    bottom: -13px;
    right: -25px;
    width: 13px;
    height: 13px;
  }

  .homepage-hero__form-card::before {
    bottom: -12px;
    right: -12px;
    width: 13px;
    height: 13px;
  }

  #panel-293-0-0-1,
  #panel-293-0-0-0 {
    margin-bottom: 10px !important;
  }

  #panel-293-0-0-2 {
    margin-bottom: 10px !important;
  }

  .homepage-hero__partners-row {
    flex-direction: row !important;
    gap: 20px;
  }

  .homepage-hero__form-corner-arrow {
    right: -30px;
    top: -31px;
  }

  .homepage-hero__partner-logo img {
    height: 55px;
    width: auto;
  }

  .features-section__top {
    gap: 0;
  }

  #pgc-w6880696ed2f8e-0-0 {
    margin: 0 !important;
  }

  .feature-section-title br {
    display: none;
  }

  .features-section__bottom {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .feature-card {
    min-height: 250px;
  }

  .features-section__bottom>#pgc-w6880696ed2f8e-1-0 {
    margin: 0;
  }

  .video-card-title {
    bottom: -108px;
  }

  .video-card-button {
    bottom: -95px;
  }

  .estimate-section-title-wrapper {
    width: 88%;
  }

  .estimate-section-title br {
    display: none;
  }

  .estimate-section-left {
    position: absolute;
    margin-top: 80px;
  }

  .estimate-section-pattern .sow-image-container img {
    width: 60%;
  }

  .estimate-title-corner-svg{
    top: 0 !important;
    right: -24px !important;
  }

  .about-section {
    background-color: #fcfdf8;
    background-image: none !important;
  }
}

@media(max-width: 429px){
  .estimate-title-corner-svg{
    right: 31px !important;
  }
}

@media (max-width: 395px) {

  .insight-section__title {
    font-size: 23px !important;
  }
}