/**
 * ECE Cleaning Services Page Stylesheet
 *
 * ECE-specific styles for hero, services grid, compliance section, and site visit form.
 * Shared sections (testimonials, locations, FAQ) use homepage-revision.css classes.
 *
 * @version 1.0.0
 * @updated 2026-04-01
 */

/* =============================================================================
   ECE HERO SECTION
   ============================================================================= */
.ece-hero {
    position: relative;
    min-height: 520px;
    background-image: url('../images/crewcare_ece-healthcare.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.ece-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(89, 89, 91, 0.85) 0%, rgba(89, 89, 91, 0.6) 100%); */
    z-index: 1;
}

.ece-hero .container {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 60px;
}

.ece-hero-content {
    max-width: 770px;
}

.ece-hero-title {
    font-family: Europa, Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 20px;
}

.ece-hero-title .text-green {
    color: #8dc63f;
}

.ece-hero-subtitle {
    font-family: Europa, Arial, sans-serif;
    font-size: 19px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 465px;
}

.ece-hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.ece-hero-cta .btn-primary-green {
    display: inline-block;
    padding: 14px 28px;
    background-color: #8dc63f;
    color: #ffffff;
    font-family: Europa, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.ece-hero-cta .btn-primary-green:hover {
    background-color: #7ab534;
    text-decoration: none;
    color: #ffffff;
}

.ece-hero-cta .btn-outline-white {
    display: inline-block;
    padding: 14px 28px;
    background-color: transparent;
    color: #ffffff;
    font-family: Europa, Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ece-hero-cta .btn-outline-white:hover {
    background-color: #ffffff;
    color: #59595b;
    text-decoration: none;
}

/* Trust Badges */
.ece-hero-badges {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.ece-hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Europa, Arial, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.ece-hero-badge i {
    color: #8dc63f;
    font-size: 16px;
}

/* =============================================================================
   ECE SERVICES GRID SECTION
   Dark background (#5f6062), header + grid side-by-side
   ============================================================================= */
.ece-services-section {
    padding: 80px 0;
    background-color: #5f6062;
}

/* Header and grid in one row */
.ece-services-row {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.ece-services-header {
    flex: 0 0 40%;
    max-width: 40%;
}

/* Icon above title, bigger */
.ece-services-header-icon {
    margin-bottom: 25px;
}

.ece-services-header-icon img {
    width: 80px;
    height: auto;
}

.ece-services-title {
    font-family: Europa, Arial, sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 20px;
}

.ece-services-title .text-green {
    color: #8dc63f;
}

.ece-services-desc {
    font-family: Europa, Arial, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    max-width: 420px;
}

/* Grid takes remaining space */
.ece-services-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ece-service-card {
    background: #d4d4d4;
    border-radius: 12px;
    padding: 28px 24px;
    transition: transform 0.3s ease;
}

.ece-service-card:hover {
    transform: translateY(-3px);
}

.ece-service-card-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.ece-service-card-icon i {
    font-size: 36px;
    color: #8dc63f;
}

.ece-service-card h3 {
    font-family: Europa, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #59595b;
    margin: 0 0 10px;
}

.ece-service-card p {
    font-family: Europa, Arial, sans-serif;
    font-size: 15px;
    color: #353638;
    line-height: 1.6;
    margin: 0;
}

/* =============================================================================
   COMPLIANCE MADE EASY SECTION
   Green background, content row on top, large image below
   ============================================================================= */
.ece-compliance-section {
    padding: 70px 0 0;
    background-color: #8dc63f;
    overflow: hidden;
}

/* Top row: title+features on left, description on right */
.ece-compliance-top {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

.ece-compliance-left {
    flex: 0 0 40%;
}

.ece-compliance-right {
    flex: 1;
}

.ece-compliance-title {
    font-family: Europa, Arial, sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 30px;
}

.ece-compliance-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ece-compliance-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: Europa, Arial, sans-serif;
    font-size: 18px;
    color: #ffffff;
    font-weight: 600;
    padding: 6px 0;
}

.ece-compliance-features li i {
    color: #ffffff;
    font-size: 18px;
}

.ece-compliance-features li span {
    font-weight: 400;
    display: block;
    text-indent: 30px;
}

.ece-compliance-text {
    font-family: Europa, Arial, sans-serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.7;
    margin: 0 0 20px;
}

.ece-compliance-text strong {
    color: #ffffff;
}

/* Bottom: full-width image with badge */
.ece-compliance-image-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.ece-compliance-image-wrapper img {
    width: 100%;
    border-radius: 12px 12px 0 0;
    display: block;
}

/* Carenote badge — top-right of image */
.ece-carenote-badge {
    position: absolute;
    top: 30px;
    right: -95px;
    background: #ffffff;
    border-radius: 10px;
    padding: 15px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.ece-carenote-badge img {
    width: 145px;
    height: auto;
    margin: 0 auto 8px auto;
}

.ece-carenote-badge-text {
    font-family: Europa, Arial, sans-serif;
    font-size: 17px;
    color: #59595b;
    line-height: 1.4;
}

.ece-carenote-badge-text strong {
    display: block;
    color: #59595b;
    font-size: 15px;
    font-weight: 700;
}

/* =============================================================================
   COMBINED FORM + TESTIMONIALS SECTION (green background)
   ============================================================================= */
.ece-form-testimonials-section {
    padding: 70px 0;
    background-color: #8dc63f;
}

/* Form area */
.ece-form-testimonials-section .ece-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.ece-form-testimonials-section .ece-form-title {
    font-family: Europa, Arial, sans-serif;
    font-size: 39px;
    font-weight: 700;
    color: #000;
    margin: 0 0 15px;
}

.ece-form-testimonials-section .ece-form-subtitle {
    font-family: Europa, Arial, sans-serif;
    font-size: 18px;
    color: #000;
    line-height: 1.6;
    margin: 0 0 30px;
    max-width: 500px;
}

.ece-form-testimonials-section .ece-form-container {
    background: transparent;
    padding: 0;
    text-align: left;
    max-width: 850px;
    margin: 0 auto;
}

/* =============================================================================
   HUBSPOT FORM OVERRIDES — Match green ECE layout design
   Scoped to .ece-form-container to avoid affecting other HubSpot forms

   Uses CSS Grid for row layout to prevent validation error elements
   from breaking the label-input alignment.
   ============================================================================= */

/* Remove default form padding/background */
.ece-form-container .hsfc-FormWrapper,
.ece-form-container .hsfc-Form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.ece-form-container .hsfc-Step__Content {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Each form row: grid layout — label column + input column */
.ece-form-container .hsfc-Row {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    align-items: center !important;
    gap: 20px !important;
    margin-bottom: 0 !important;
}

/* Single-field containers span the grid properly */
.ece-form-container .hsfc-TextField,
.ece-form-container .hsfc-NumberField,
.ece-form-container .hsfc-DateField,
.ece-form-container .hsfc-PhoneField,
.ece-form-container .hsfc-EmailField {
    display: grid !important;
    grid-template-columns: 240px 1fr !important;
    grid-column: 1 / -1 !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
}

/* Labels: white, bold, fixed in left column */
.ece-form-container .hsfc-FieldLabel {
    font-family: Europa, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    grid-column: 1 !important;
}

/* Override HubSpot's inline color on label spans */
.ece-form-container .hsfc-FieldLabel span,
.ece-form-container .hsfc-FieldLabel span span,
.ece-form-container .hsfc-FieldLabel span span span {
    color: #ffffff !important;
}

.ece-form-container .hsfc-FieldLabel__RequiredIndicator {
    color: #ffffff !important;
}

/* Input fields: light green/olive tint, no border, full width */
.ece-form-container .hsfc-TextInput,
.ece-form-container .hsfc-DateInput {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    font-family: Europa, Arial, sans-serif !important;
    font-size: 15px !important;
    padding: 12px 15px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

.ece-form-container .hsfc-TextInput::placeholder,
.ece-form-container .hsfc-DateInput::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.ece-form-container .hsfc-TextInput:focus,
.ece-form-container .hsfc-DateInput:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5) !important;
    background-color: rgba(255, 255, 255, 0.35) !important;
}

/* Number input wrapper — sits in the input column */
.ece-form-container .hsfc-NumberInput {
    grid-column: 2 !important;
    width: 100% !important;
}

/* Phone input wrapper */
.ece-form-container .hsfc-PhoneInput {
    grid-column: 2 !important;
    display: flex !important;
    align-items: center !important;
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    border-radius: 16px !important;
    width: 100% !important;
}

.ece-form-container .hsfc-PhoneInput .hsfc-TextInput {
    background: transparent !important;
    border: none !important;
}

.ece-form-container .hsfc-PhoneInput__FlagAndCaret {
    padding-left: 10px !important;
    flex-shrink: 0 !important;
    margin-left: 12px!important;
}

/* Validation error messages — sit below the input, in the input column */
.ece-form-container .hsfc-FieldError,
.ece-form-container [data-hsfc-id="FieldError"] {
    grid-column: 2 !important;
    color: #ffffff !important;
    font-family: Europa, Arial, sans-serif !important;
    font-size: 12px !important;
    font-style: italic !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
}

/* First Name + Last Name row: two fields side by side */
.ece-form-container .hsfc-Row:has(.hsfc-TextField + .hsfc-TextField) {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
}

.ece-form-container .hsfc-Row:has(.hsfc-TextField + .hsfc-TextField) .hsfc-TextField {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-column: auto !important;
}

/* Rich text spacer — hide empty dividers */
.ece-form-container .hsfc-RichText:empty {
    display: none !important;
}

/* Non-empty rich text spacer row — collapse it */
.ece-form-container .hsfc-Row:has(.hsfc-RichText:empty) {
    display: none !important;
}

/* Data privacy text */
.ece-form-container .hsfc-DataPrivacyField {
    grid-column: 1 / -1 !important;
}

.ece-form-container .hsfc-DataPrivacyField .hsfc-RichText {
    font-family: Europa, Arial, sans-serif !important;
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.4 !important;
}

.ece-form-container .hsfc-DataPrivacyField .hsfc-Row {
    display: block !important;
}

/* reCAPTCHA — subtle on green bg */
.ece-form-container .hsfc-ReCaptchaV2 {
    grid-column: 1 / -1 !important;
}

.ece-form-container .grecaptcha-badge {
    box-shadow: none !important;
    opacity: 0.5;
}

/* Submit button: pill shape, white border, centered */
.ece-form-container .hsfc-NavigationRow {
    display: block !important;
    margin-top: 25px !important;
}

.ece-form-container .hsfc-NavigationRow__Buttons {
    display: flex !important;
    justify-content: center !important;
}

.ece-form-container .hsfc-NavigationRow__Alerts {
    text-align: center !important;
}

.ece-form-container .hsfc-Button {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    border-radius: 30px !important;
    padding: 14px 50px !important;
    font-family: Europa, Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.ece-form-container .hsfc-Button:hover {
    background-color: #ffffff !important;
    color: #8dc63f !important;
}

/* Testimonials area — reuse homepage testimonials-wrapper styles from homepage-revision.css
   Only add spacing/separator within the combined green section */
.ece-form-testimonials-section .testimonials-wrapper {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-top: 60px;
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* Tablet */
@media (max-width: 991px) {
    .ece-hero {
        min-height: 450px;
    }

    .ece-hero-title {
        font-size: 36px;
    }

    .ece-services-row {
        flex-direction: column;
        gap: 40px;
    }

    .ece-services-header {
        flex: none;
        max-width: 100%;
    }

    .ece-services-title {
        font-size: 34px;
    }

    .ece-compliance-top {
        flex-direction: column;
        gap: 30px;
    }

    .ece-compliance-left {
        flex: none;
    }

    .ece-carenote-badge {
        top: 20px;
        right: 20px;
        padding: 12px 15px;
    }

    /* Form: labels stack above inputs on tablet */
    .ece-form-container .hsfc-Row,
    .ece-form-container .hsfc-TextField,
    .ece-form-container .hsfc-NumberField,
    .ece-form-container .hsfc-DateField,
    .ece-form-container .hsfc-PhoneField,
    .ece-form-container .hsfc-EmailField {
        grid-template-columns: 1fr !important;
    }

    .ece-form-container .hsfc-FieldLabel {
        grid-column: 1 !important;
        margin-bottom: 2px !important;
    }

    .ece-form-container .hsfc-NumberInput,
    .ece-form-container .hsfc-PhoneInput {
        grid-column: 1 !important;
    }

    .ece-form-container .hsfc-FieldError,
    .ece-form-container [data-hsfc-id="FieldError"] {
        grid-column: 1 !important;
    }

    .ece-form-container .hsfc-Row:has(.hsfc-TextField + .hsfc-TextField) {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .ece-hero {
        min-height: 400px;
    }

    .ece-hero .container {
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .ece-hero-title {
        font-size: 28px;
    }

    .ece-hero-subtitle {
        font-size: 14px;
    }

    .ece-hero-cta {
        flex-direction: column;
    }

    .ece-hero-cta .btn-primary-green,
    .ece-hero-cta .btn-outline-white {
        text-align: center;
        width: 100%;
    }

    .ece-hero-badges {
        flex-direction: column;
        gap: 12px;
    }

    .ece-services-section,
    .ece-compliance-section,
    .ece-form-testimonials-section {
        padding: 50px 0;
    }

    .ece-services-grid {
        grid-template-columns: 1fr;
    }

    .ece-services-title,
    .ece-compliance-title,
    .ece-form-testimonials-section .ece-form-title {
        font-size: 28px;
    }

    .ece-form-container {
        padding: 25px 20px;
    }

    .ece-compliance-title {
        font-size: 32px;
    }

    .ece-carenote-badge {
        top: 122px;
        right: 10px;
        padding: 10px 12px;
    }

    .ece-carenote-badge img {
        width: 80px;
    }
}
