/* ============================================ */
/*              Contact Hero + Form              */
/* ============================================ */

#contact-hero {
  padding: clamp(10rem, 20vw, 14rem) 0 6rem;
  background-color: #1a1a1a;
background-image:
  linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.85) 30%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.35) 100%
  ),
  linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.45)),
  var(--contact-hero-image);


  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 60vh;
}


#contact-hero .cs-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;          /* content sits at top of container */
    gap: clamp(2rem, 5vw, 4rem);
    width: 100%;
    max-width: 80rem;
    margin: auto;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

#contact-hero .cs-content {
    color: #fff;
}

#contact-hero .cs-topper {
    color: var(--bodyTextColorWhite);
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

#contact-hero .cs-title {
    color: #fff;                 /* force white */
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.2em;
    font-weight: 900;
    margin: 0 0 1rem 0;
}

#contact-hero .cs-text {
    color: #fff;                 /* keep paragraph readable on dark bg */
    opacity: .8;
    margin: 0 0 2rem 0;
    max-width: 32em;
}

/* Phone & email buttons */
#contact-hero .cs-direct-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-hero .cs-contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, .05);
    transition: background-color .3s, border-color .3s;
    max-width: 24rem;
}

#contact-hero .cs-contact-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

#contact-hero .cs-contact-icon {
    filter: brightness(0) invert(1);  /* makes icons white */
    flex: none;
}

/* The form sits in a light card */
#contact-hero .cs-form-card {
    background-color: #f7f7f7;
    border-radius: 1rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, .4);
    margin-top: -2rem;
}

/* Fluent Forms styling */
#contact-hero .cs-form-card .ff-el-input--content input,
#contact-hero .cs-form-card .ff-el-input--content textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

#contact-hero .cs-form-card .ff-el-input--label label {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
}

#contact-hero .cs-form-card .ff-btn-submit {
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: background-color .3s;
}

#contact-hero .cs-form-card .ff-btn-submit:hover {
    background-color: var(--primarylight);
}

/* Mobile */
@media screen and (max-width: 768px) {
    #contact-hero .cs-container {
        grid-template-columns: 1fr;
    }

    #contact-hero .cs-form-card {
        margin-top: 0;
    }
}
/* Mobile styling */
@media screen and (max-width: 768px) {
    #contact-hero {
        min-height: 0;
        padding: 8.5rem 0 3.5rem; /* leaves room for the header overlay */
    }

    #contact-hero .cs-container {
        width: 100%;
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        padding: 0 1.25rem;
        box-sizing: border-box;
    }

    #contact-hero .cs-content {
        width: 100%;
    }

    #contact-hero .cs-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }

    #contact-hero .cs-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    #contact-hero .cs-direct-contact {
        gap: 0.75rem;
    }

    #contact-hero .cs-contact-link {
        width: 100%;
        max-width: none;
        min-height: 3.5rem;
        box-sizing: border-box;
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    #contact-hero .cs-form-card {
        width: 100%;
        box-sizing: border-box;
        margin-top: 0;
        padding: 1.25rem;
        border-radius: 0.75rem;
    }

    #contact-hero .cs-form-card .ff-el-form-control {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px; /* avoids automatic zoom on iPhones */
    }

    #contact-hero .cs-form-card input,
    #contact-hero .cs-form-card select,
    #contact-hero .cs-form-card textarea {
        max-width: 100%;
        box-sizing: border-box;
    }

    #contact-hero .cs-form-card textarea {
        min-height: 8rem;
    }

    #contact-hero .cs-form-card .ff-btn-submit {
        min-height: 3.25rem;
    }
}

@media screen and (max-width: 480px) {
    #contact-hero {
        padding: 7.5rem 0 2.5rem;
    }

    #contact-hero .cs-container {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    #contact-hero .cs-form-card {
        padding: 1rem;
    }

    #contact-hero .cs-contact-link {
        padding: 0.9rem 1rem;
    }
}



















/*-- -------------------------- -->
<---       What Happens Next    -->
<--- -------------------------- -*/

/* Mobile - 360px */
@media only screen and (min-width: 0rem) {
  #contact-hero .cs-steps {
    list-style: none;
    margin: 0 0 2rem 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    /* 24px - 32px */
    gap: clamp(1.5rem, 4vw, 2rem);
  }
  #contact-hero .cs-step {
    display: flex;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
  #contact-hero .cs-step-num {
    flex: none;
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background-color: var(--primary);
    color: var(--bodyTextColorWhite);
    font-size: 1rem;
    font-weight: 700;
    line-height: 2.25rem;
    text-align: center;
  }
  #contact-hero .cs-step-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }
  #contact-hero .cs-step-title {
    margin: 0;
    /* 18px - 20px */
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.2em;
    font-weight: 700;
    color: var(--bodyTextColorWhite);
  }
  #contact-hero .cs-step-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5em;
    color: var(--bodyTextColorWhite);
    opacity: 0.85;
  }
}

/* Tablet - 768px */
@media only screen and (min-width: 48rem) {
  #contact-hero .cs-steps {
    flex-direction: row;
    align-items: flex-start;
    /* 24px - 40px */
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }
  #contact-hero .cs-step {
    flex: 1;
    flex-direction: column;
    gap: 0.75rem;
  }
}
