/* =====================================================================
   NE Clean — Contact, Careers and Thank You
   Enqueued only on those pages. Covers:
     1. The two-panel contact card (dark sidebar + white form panel)
     2. Divi contact-form module skinned to the source's .cf-* form
     3. Trust badge strip
     4. Thank-you glass card
   ===================================================================== */

/* =====================================================================
   1. TWO-PANEL CONTACT CARD
   Source .contact-main-grid: 420px + 1fr, gap 0, radius 16px, overflow
   hidden, one shared shadow. Divi columns are percentage-based, so a 1_3
   column plus a fixed flex-basis reproduces the 420px sidebar without
   breaking Divi's stacking at 980px.
   ===================================================================== */
.et-l .nec-contact-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    max-width: 1012px !important;
}
.et-l .nec-contact-grid > .et_pb_column {
    margin-right: 0;
    margin-bottom: 0;
    float: none;
}

/* --- Dark sidebar ------------------------------------------------ */
.et-l .nec-contact-sidebar {
    flex: 0 0 420px;
    max-width: 420px;
    background: linear-gradient(160deg, #1a3a2a 0%, #0f2318 100%);
    padding: 50px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.et-l .nec-contact-sidebar h2 {
    color: #fff;
}
.et-l .nec-sidebar-item {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
}
.nec-sidebar-item a,
.nec-sidebar-item h4 {
  color:#fff;
  padding-bottom: 0;
}

.nec-sidebar-item h4,
.nec-sidebar-item p {
    line-height: 1.3;
}
.nec-sidebar-item h4 {
    font-weight: 600;
    margin-right: 15px;
}



.et_pb_contact_field[data-type="select"]::after {
    opacity: 0;
}

.et-l .nec-sidebar-icon {
    width: 42px;
    height: 42px;
    background: rgba(134, 168, 115, 0.2);
    color: var(--nec-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.et-l .nec-sidebar-item-text h4 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: normal;
}
.et-l .nec-sidebar-item-text p,
.et-l .nec-sidebar-item-text a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin: 0;
    text-decoration: none;
    line-height: 1.5;
}
.et-l .nec-sidebar-item-text a:hover {
    color: var(--nec-primary);
}

/* Hours panel */
.et-l .nec-sidebar-hours {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    margin-top: 10px;
}
.et-l .nec-sidebar-hours h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: normal;
}
.et-l .nec-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
}
.et-l .nec-hours-row:last-of-type {
    border-bottom: none;
}
.et-l .nec-hours-row .nec-day {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}
.et-l .nec-hours-row .nec-time {
    color: rgba(255, 255, 255, 0.6);
}
.et-l .nec-hours-row .nec-time.nec-closed {
    color: #f87171;
}
.et-l .nec-hours-note {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-style: italic;
    margin: 12px 0 0;
}

/* --- White form panel ------------------------------------------- */
.et-l .nec-contact-form-panel {
    flex: 1 1 420px;
    background: #fff;
    padding: 50px;
}

/* =====================================================================
   2. DIVI CONTACT FORM -> source .cf-* form
   ===================================================================== */
.et-l .nec-form .et_pb_contact_form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.et-l .nec-form .et_pb_contact_field {
    padding: 0;
    margin-bottom: 22px;
}
/* Full-width fields span both grid tracks. */
.et-l .nec-form .et_pb_contact_field.et_pb_contact_field_last,
.et-l .nec-form .et_pb_contact_field_3,
.et-l .nec-form .et_pb_contact_field_4,
.et-l .nec-form .et_pb_contact_field_5,
.et-l .nec-form .et_pb_contact_field_6 {
    grid-column: 1 / -1;
}
.et-l .nec-form .et_pb_contact_submit,
.et-l .nec-form .et_contact_bottom_container {
    grid-column: 1 / -1;
}

/* Labels — Divi hides them by default; the source shows them above. */
.et-l .nec-form .et_pb_contact_form_label {
    display: block !important;
    margin-bottom: 7px;
    font-family: var(--nec-font);
    font-weight: 600;
    color: var(--nec-dark-green);
    font-size: 0.9rem;
}

/* Inputs */
.et-l .nec-form .et_pb_contact_field input,
.et-l .nec-form .et_pb_contact_field select,
.et-l .nec-form .et_pb_contact_field textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--nec-font);
    color: var(--nec-dark-green);
    background: #f8fafc;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.et-l .nec-form .et_pb_contact_field input:focus,
.et-l .nec-form .et_pb_contact_field select:focus,
.et-l .nec-form .et_pb_contact_field textarea:focus {
    border-color: var(--nec-primary);
    box-shadow: 0 0 0 3px rgba(134, 168, 115, 0.15);
    background: #fff;
}
.et-l .nec-form .et_pb_contact_field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}
.et-l .nec-form .et_pb_contact_field textarea {
    resize: vertical;
    min-height: 100px;
}
.et-l .nec-form .et_pb_contact_field input::placeholder,
.et-l .nec-form .et_pb_contact_field textarea::placeholder {
    color: #94a3b8;
}

/* Submit — source .cf-submit is full width, 700 weight, 16px padding. */
.et-l .nec-form .et_pb_contact_submit {
    width: 100%;
    display: block;
    padding: 16px;
    font-family: var(--nec-font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 8px;
    border: none;
    margin-top: 8px;
    background: var(--nec-primary);
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease;
}
.et-l .nec-form .et_pb_contact_submit:hover {
    background: var(--nec-primary-press);
}
.et-l .nec-form .et_pb_contact_submit:after {
    display: none;
}

/* Divi's captcha field is disabled in the module; hide any remnant. */
.et-l .nec-form .et_pb_contact_captcha_question,
.et-l .nec-form .et_pb_contact_right {
    display: none;
}

.et-l .nec-cf-reassurance {
    margin: 0;
}

/* =====================================================================
   3. TRUST STRIP
   ===================================================================== */
.et-l .nec-trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 32px;
}
.et-l .nec-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--nec-text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--nec-off-white);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}
.et-l .nec-trust-badge i {
    color: var(--nec-primary);
}
.et-l .nec-prefer-talk {
    text-align: center;
    margin: 32px 0 0;
    color: var(--nec-text-muted);
    font-size: 1.05rem;
}
.et-l .nec-prefer-talk a {
    color: var(--nec-primary);
    font-weight: 700;
    text-decoration: none;
}

/* =====================================================================
   4. THANK YOU CARD
   ===================================================================== */
.et-l .nec-ty-hero {
    position: relative;
    overflow: hidden;
    /* Source: linear-gradient(160deg,#0f2318 0%,#1a3a2a 50%,#0f2318 100%) —
       a 3-stop gradient Divi's two-stop control cannot express, so it is
       declared here and the module's own background acts as a fallback. */
    background: linear-gradient(160deg, #0f2318 0%, #1a3a2a 50%, #0f2318 100%) !important;
    display: flex;
    align-items: center;
}
.et-l .nec-ty-hero::before,
.et-l .nec-ty-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.et-l .nec-ty-hero::before {
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(134, 168, 115, 0.08) 0%, transparent 70%);
}
.et-l .nec-ty-hero::after {
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(134, 168, 115, 0.06) 0%, transparent 70%);
}

.et-l .nec-ty-row {
    position: relative;
    z-index: 1;
}
.et-l .nec-ty-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 60px 50px;
    text-align: center;
    max-width: 640px;
}

.et-l .nec-ty-check {
    width: 80px;
    height: 80px;
    background: rgba(134, 168, 115, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    animation: nec-scale-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.et-l .nec-ty-check i {
    font-size: 2.2rem;
    color: var(--nec-primary);
}
@keyframes nec-scale-in {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .et-l .nec-ty-check {
        animation: none;
    }
}

.et-l .nec-ty-sub {
    margin-bottom: 0;
}

.et-l .nec-ty-steps {
    text-align: left;
}
.et-l .nec-ty-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}
.et-l .nec-ty-step:last-child {
    margin-bottom: 0;
}
.et-l .nec-ty-step-num {
    width: 36px;
    height: 36px;
    background: rgba(134, 168, 115, 0.2);
    color: var(--nec-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.et-l .nec-ty-step-text h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 4px;
    letter-spacing: normal;
}
.et-l .nec-ty-step-text p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.et-l .nec-ty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}
.et-l .nec-btn--ty.et_pb_button {
    padding: 14px 32px;
    font-size: 0.95rem;
    border-radius: 8px;
}
.et-l .nec-btn-ty-ghost.et_pb_button {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-weight: 600;
}
.et-l .nec-btn-ty-ghost.et_pb_button:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.15);
}

.et-l .nec-ty-phone {
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    text-align: center;
}
.et-l .nec-ty-phone a {
    color: var(--nec-primary);
    font-weight: 700;
    text-decoration: none;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 992px) {
    .et-l .nec-contact-sidebar {
        flex: 1 1 100%;
        max-width: none;
        padding: 40px 30px;
    }
    .et-l .nec-contact-form-panel {
        flex: 1 1 100%;
        padding: 36px 24px;
    }
    .et-l .nec-form .et_pb_contact_form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .et-l .nec-ty-card {
        padding: 40px 24px;
    }
    .et-l .nec-ty-actions {
        flex-direction: column;
    }
    .et-l .nec-ty-actions .nec-btn.et_pb_button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* =====================================================================
   CUSTOM SELECT — styled dropdown, options stacked below the field
   ---------------------------------------------------------------------
   The native <select> is kept in the DOM for form submission and assistive
   technology, but hidden from view; the visible control is the button +
   listbox built in neclean.js. Field styling matches the sibling inputs so
   the closed control is indistinguishable from a text field.
   ===================================================================== */
.et-l .nec-select {
    position: relative;
    width: 100%;
}

/* Keep the real select focusable-but-invisible rather than display:none,
   so the browser still reports it for form validation. */
.et-l .nec-select > select {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.et-l .nec-select__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-family: var(--nec-font);
    font-size: 0.95rem;
    color: var(--nec-dark-green);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.et-l .nec-select__trigger:hover { border-color: #cbd5e1; }
.et-l .nec-select__trigger:focus-visible,
.et-l .nec-select.is-open .nec-select__trigger {
    outline: none;
    border-color: var(--nec-primary);
    box-shadow: 0 0 0 3px rgba(134, 168, 115, 0.15);
    background: #fff;
}

/* Placeholder option reads as muted, like an input placeholder. */
.et-l .nec-select.is-placeholder .nec-select__label { color: #94a3b8; }

/* Chevron, matching the SVG used on the plain select. */
.et-l .nec-select__trigger::after {
    content: "";
    flex: 0 0 18px;
    height: 18px;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e") no-repeat center / 18px;
    transition: transform 0.25s ease;
}
.et-l .nec-select.is-open .nec-select__trigger::after { transform: rotate(180deg); }

/* The list stacks directly beneath the field. */
.et-l .nec-select__list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: var(--nec-shadow-md);
}
.et-l .nec-select__option {
    padding: 11px 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--nec-text-dark);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.et-l .nec-select__option:hover,
.et-l .nec-select__option[aria-selected="true"] {
    background: var(--nec-primary-light);
    color: var(--nec-dark-green);
}

@media (prefers-reduced-motion: reduce) {
    .et-l .nec-select__trigger,
    .et-l .nec-select__trigger::after { transition: none; }
}
