/*------------------------------------*\
    STAGING: Request Demo Restructure
    
    Mobile-first CSS for layout:
    - Full-width background image with dark overlay
    - Left side: SEO content (white text)
    - Right side: Overlapping white form card
\*------------------------------------*/


/* ==========================================================================
   BASE STYLES (Mobile - Default)
   ========================================================================== */

/* STAGING: Request Demo Restructure - Main wrapper */
.contact-page-wrapper {
    position: relative;
    overflow: visible;
    min-height: 500px;
}

/* STAGING: Request Demo Restructure - Full-width background image */
.contact-page__background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #353535;
}

.contact-page__background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(32 32 32 / 75%);
    z-index: 1;
}

.contact-page__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

/* STAGING: Request Demo Restructure - Background capped at 90vh on desktop */
@media (min-width: 1025px) {
    .contact-page__background {
        max-height: 90vh;
    }
}

/* STAGING: Request Demo Restructure - Container positioning */
.contact-page-wrapper .container-fluid {
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* STAGING: Request Demo Restructure - Container positioning */
.contact-page-wrapper .container-fluid {
    position: relative;
    z-index: 2;
}

/* STAGING: Request Demo Restructure - Left panel content */
.contact-page__left-panel {
    padding-top: 40px;
    padding-bottom: 30px;
    background: transparent; /* STAGING: Ensure background image shows through */
}

/* STAGING: Request Demo Restructure - Left panel typography (white text) */
.contact-page__left-panel h1 {
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-page__left-panel .breadcrumbs {
    margin-bottom: 15px;
}

.contact-page__left-panel .breadcrumbs li span,
.contact-page__left-panel .breadcrumbs li a,
.contact-page__left-panel .breadcrumbs li a:after {
    color: #fff;
    opacity: 0.9;
}

.contact-page__left-panel .breadcrumbs li {
    opacity: 1;
}

.contact-page__left-panel .breadcrumbs li a {
    opacity: 0.9;
    border-bottom-color: rgba(255, 255, 255, 0.6);
}

.contact-page__left-panel .breadcrumbs li a:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 255, 255, 1);
}

.breadcrumbs .breadcrumb_last {
    color: #91e0ca;
}

/* STAGING: Request Demo Restructure - SEO content styling */
.contact-page__seo-content {
    color: #fff;
}

.contact-page__seo-content p {
    color: #fff;
    font-weight: 300;
}

.contact-page__seo-content a {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.contact-page__seo-content a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

.contact-accordion {
    margin-top: 24px;
}

.contact-accordion h3 {
    margin-bottom: 0;
}

.contact-accordion__toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    display: flex;
    font: inherit;
    gap: 12px;
    justify-content: space-between;
    padding: 0;
    text-align: left;
    width: 100%;
}

.contact-accordion__title {
    display: block;
}

.contact-accordion__icon {
    border-bottom: 2px solid currentColor;
    border-right: 2px solid currentColor;
    display: block;
    flex: 0 0 auto;
    height: 10px;
    transform: rotate(45deg);
    transition: transform .25s ease;
    width: 10px;
}

.contact-accordion__panel {
    margin-top: 16px;
}

.contact-accordion__panel ul,
.contact-accordion__panel ol {
    margin-top: 16px;
}

.contact-accordion.is-expanded .contact-accordion__icon {
    transform: rotate(225deg);
}

/* STAGING: Request Demo Restructure - Right panel with form card */
.contact-page__right-panel {
    padding-top: 40px;
    padding-bottom: 40px;
}

.contact-page__form-card {
    background: #fff;
    box-shadow: 0 0 20px rgb(0 0 0 / 16%);
    padding: 30px 25px;
    position: relative;
    z-index: 3;
    display: block;
    width: 100%;
}

.contact-page__form-card h2 {
    text-align: center;
    margin-bottom: 25px;
}


/* ==========================================================================
   FORM STYLES (Mobile - Default)
   ========================================================================== */

/* STAGING: Request Demo Restructure - Form field labels */
label.h6,
.contact-form form .hs-form-field label {
    padding-bottom: 7px;
}

.contact-form form .hs-form-field label span {
    color: #353535;
    font-size: 14px;
    line-height: 1.2em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 12px;
}

.contact-form form .hs-form-field label > span:last-child {
    color: #fb0020;
}

.contact-form form .hs-form-field label > span:first-child {
    color: #353535;
}

/* STAGING: Request Demo Restructure - Form inputs */
.contact-form input {
    margin-bottom: 20px;
}

.contact-form textarea {
    margin-bottom: 20px;
    min-height: 150px;
}

.hs-form-field {
    position: relative;
}

/* STAGING: Request Demo Restructure - Form validation */
.error-field {
    border: 1px solid #fb0020;
}

.error-message,
.hs-error-msgs {
    position: absolute;
    bottom: 0px;
    right: 10px;
    width: auto;
    color: #fff;
    background: #fb0020;
    display: block;
    padding: 3px 5px;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 2px;
    text-align: left;
    transition: all .4s ease;
    margin: 0;
}

.hs-error-msgs li {
    margin: 0;
    padding: 0;
}

.hs-error-msgs li:before {
    display: none;
}

.hs-error-msgs li label {
    font-size: 10px;
    color: #fff;
}

.error-field:focus + .error-message {
    opacity: 0;
}

/* STAGING: Request Demo Restructure - Full width form elements */
.contact-form form .hs-fieldtype-textarea,
.contact-form form .hs_submit {
    width: 100%;
}

/* STAGING: Request Demo Restructure - Submit button */
.contact-page__form-card .hs-button.primary {
    color: #ffffff;
    background: #01916D;
    border: none;
    box-shadow: 0 0 15px rgb(32, 52, 140, 16%);
    width: 100%;
    font-size: 13px;
    display: inline-block;
    padding: 18px 16px 15px;
    line-height: 1.2em;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Clarimo UD PE';
    text-align: center;
    font-weight: 600;
    position: relative;
    transition: all .4s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-page__form-card .hs-button.primary:hover {
    background: #343432;
    color: #ffffff;
}

.hs_error_rollup {
    display: none;
}

/* STAGING: Request Demo Restructure - Footer styling */
.page-template-page-contact .page-footer::before {
    display: none;
}

.page-template-page-contact .page-footer {
    border-top: 1px solid #E6E6E6;
}


/* ==========================================================================
   TABLET STYLES (min-width: 768px)
   ========================================================================== */

@media (min-width: 768px) {
    
    /* STAGING: Request Demo Restructure - Left panel tablet */
    .contact-page__left-panel {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .contact-page__left-panel h1 {
        margin-bottom: 30px;
    }
    
    .contact-page__left-panel .breadcrumbs {
        margin-bottom: 25px;
    }
    
    /* STAGING: Request Demo Restructure - Right panel tablet */
    .contact-page__right-panel {
        padding-bottom: 50px;
    }
    
    .contact-page__form-card {
        padding: 40px 35px;
    }
    
    .contact-page__form-card h2 {
        margin-bottom: 30px;
    }
    
    /* STAGING: Request Demo Restructure - Form tablet */
    .contact-form form .hs-form-field label span {
        font-size: 16px;
    }
    
    .contact-form input {
        margin-bottom: 25px;
    }
    
    .error-message,
    .hs-error-msgs {
        bottom: 5px;
        right: 15px;
        font-size: 11px;
    }
    
    .hs-error-msgs li label {
        font-size: 11px;
    }
    
    .contact-page__form-card .hs-button.primary {
        width: auto;
        font-size: 15px;
        padding: 16px 34px;
    }
}

@media (max-width: 1024px) {
    .contact-accordion {
        border-top: 1px solid rgb(255 255 255 / 30%);
        margin-top: 20px;
        padding-top: 20px;
    }

    .contact-accordion__panel {
        display: none;
    }

    .contact-accordion.is-expanded .contact-accordion__panel {
        display: block;
    }
}

@media (min-width: 1025px) {
    .contact-accordion__toggle {
        cursor: default;
    }

    .contact-accordion__icon {
        display: none;
    }
}


/* ==========================================================================
   DESKTOP STYLES (min-width: 1025px)
   ========================================================================== */

@media (min-width: 768px) {
    
    /* STAGING: Request Demo Restructure - Wrapper height tablet */
    .contact-page-wrapper {
        min-height: 600px;
    }
    
    /* STAGING: Let form determine section height */
    .contact-page-wrapper .container-fluid {
        padding-bottom: 40px;
    }
    
    /* STAGING: Tablet adjustments */
    .contact-page__left-panel {
        padding-top: 60px;
        padding-bottom: 40px;
    }
    
    .contact-page__right-panel {
        padding-top: 60px;
        padding-bottom: 50px;
    }

}

@media (min-width: 1025px) {
    
    /* STAGING: Request Demo Restructure - Wrapper min-height (90vh), but grows with form */
    .contact-page-wrapper {
        min-height: 90vh;
    }
    
    /* STAGING: Request Demo Restructure - Background height (slightly taller) */
    .contact-page__background {
        height: 95vh;
        max-height: 95vh;
    }
    
    .contact-page__background::after {
        height: 100%;
    }
    
    .contact-page__bg-img {
        height: 100%;
    }
    
    /* STAGING: Request Demo Restructure - Container positioning, height based on form */
    .contact-page-wrapper .container-fluid {
        padding-top: 60px;
        padding-bottom: 60px;
        min-height: 95vh;
    }
    
    /* STAGING: Request Demo Restructure - Left panel desktop */
    .contact-page__left-panel {
        padding-top: 80px;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .contact-page__left-panel h1 {
        margin-bottom: 25px;
    }
    
    .contact-page__left-panel .breadcrumbs {
        margin-bottom: 20px;
    }
    
    /* STAGING: Request Demo Restructure - Right panel desktop */
    .contact-page__right-panel {
        padding-top: 50px;
        padding-bottom: 50px;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .contact-page__form-card {
        padding: 50px 45px;
    }
    
    /* STAGING: Request Demo Restructure - Form desktop grid */
    .contact-form form.hs-form {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .contact-form form .hs-fieldtype-textarea,
    .contact-form form .hs_submit,
    .contact-form form .hs-fieldtype-booleancheckbox,
    .contact-form form .hs-fieldtype-select:first-child {
        grid-column: span 2;
    }
    
    .contact-form input {
        margin-bottom: 0;
    }
    
    .error-message,
    .hs-error-msgs {
        bottom: 10px;
        right: 20px;
    }
    
    .contact-page__form-card .hs-button.primary {
        font-size: 16px;
        padding: 21px 34px;
    }
}


/* ==========================================================================
   LARGE DESKTOP STYLES (min-width: 1200px)
   ========================================================================== */

@media (min-width: 1200px) {
    
    /* STAGING: Request Demo Restructure - Large desktop adjustments */
    .contact-page-wrapper {
        min-height: 90vh;
    }
    
    .contact-page__background {
        height: calc(100% - 150px);
        max-height: none;
    }
    
    .contact-page__background::after {
        height: 100%;
    }
    
    .contact-page__bg-img {
        height: 100%;
    }
    
    .contact-page-wrapper .container-fluid {
        padding-top: 80px;
        padding-bottom: 80px;
        min-height: calc(100% - 150px);
    }
    
    .contact-page__left-panel {
        padding-top: 0;
        padding-bottom: 100px;
    }
    
    .contact-page__right-panel {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .contact-page__form-card {
        margin-left: 60px; /* STAGING: More space on large screens */
        padding: 60px 55px;
    }
    
    .contact-form textarea {
        min-height: 180px;
    }
}


/* ==========================================================================
   EXTRA LARGE DESKTOP (min-width: 1400px)
   ========================================================================== */

@media (min-width: 1400px) {
    
    /* STAGING: Request Demo Restructure - XL desktop refinements */
    .contact-page__left-content {
        max-width: 550px;
    }
    
    .contact-page__form-card {
        padding: 70px 65px;
    }
}
