/* Shift content down when ribbon is visible */
body.ribbon-active #content {
    margin-top: 28px;
    transition: margin-top 0.25s ease;
}

#content {
    transition: margin-top 0.25s ease;
}

/* Raise home and services listing pages up 20px */
body.home #content,
body.page-template-template-services #content {
    margin-top: -20px;
}

/* Fix service detail pages being cut off at top */
main#primary.site-main {
    padding-top: 80px !important;
}

#electra-address-ribbon {
    top: calc(var(--header-height, 99px) - 20px);
}

body {
    --header-height: 88px !important;
}

/* Fix for service listing page and home page */
body.page-template-template-services #content,
body.home #content {
    padding-top: var(--header-height) !important;
}

/* Ensure Google Places Autocomplete always stays above modals */
.pac-container {
    z-index: 99999 !important;
}

.footer__copyright a {
    color: var(--color-gray-light);
}

.footer__copyright a:hover,

.footer__copyright a:focus-visible {
    color: var(--color-green);
}

.breadcrumbs li.current-item {
    color: var(--color-green);
}

.breadcrumbs li.home {
    display: none;
}

.breadcrumbs a {
    color: var(--color-gray-light);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: var(--color-green-accent);
}

.form-cf7 form {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.form-cf7 .wpcf7 {
    width: 100%;
    position: relative;
}

.form-cf7 form > .wpcf7-form-control-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.form-cf7 form > .wpcf7-form-control-wrap input {
    width: 100%;
}

.wpcf7-response-output {
    display: none;
}

.hero__form-submit {
    top: 7px;
}

.coverage__form-submit {
    top: 7px;
}

.wpcf7-not-valid {
    border: 1px solid #FF3B30;
}

.wpcf7-form.submitting .wpcf7-submit {
    pointer-events: none;
}

.wpcf7-not-valid-tip {
    font-size: 16px;
    color: #FF3B30;
    padding-left: 15px;
    margin-top: 8px;
    font-weight: 500;
}

.modal.get-quote .feedback__form-policy {
    color: var(--color-charcoal)
}

.grecaptcha-badge {
    display: none;
}

@media (max-width: 1200px) {
    .hero__form form {
        flex-direction: column;
        row-gap: 8px;
    }
}

@media (max-width: 767px) {
    .coverage__form form {
        flex-direction: column;
        row-gap: 12px;
    }
}
.profile-holder {
    display: flex;
    gap: 40px;
}
@media (max-width: 767px) {
    .profile-holder {
        display: flex;
        gap: 40px;
        flex-direction: column;
    }
    .profile-avatar {
        margin: 0 auto;
    }
    #upload-message {
        font-size: 14px;
        white-space: nowrap;
    }
}
.profile-avatar {
    position: relative;
    width: 164px;
    height: 164px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.profile-avatar__img {
    width: 164px;
    height: 164px;
    min-width: 164px;
    min-height: 164px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e5e5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s;
}
.profile-avatar:hover .profile-avatar__upload {
    opacity: 1;
}
.profile-avatar__upload {
    background: rgba(0, 0, 0, 0.5);
    width: 164px;
    height: 164px;
    border-radius: 50%;
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.5s;
}
.change-btn {
    width: 48px;
    height: 48px;
}

.profile-avatar__upload .electrascape-btn {
    font-size: 14px;
    padding: 6px 12px;
    cursor: pointer;
}
#delete-account-message {
    text-align: center;
    margin: 5px 0;
}
.select__state .select__current {
    border-radius: 900px;
    font-size: 16px;
    font-weight: 300;
}
.select__state .select__list {
    height: 250px;
    overflow-y: auto;
}
/*temporary hidden*/
/* .temp-hidden {
    display: none;
}
.header__cart {
    display: none;
} */
.cart__empty-text {
    display: block;
}
.header__profile-img {
    min-height: 28px;
}
.order-detail__address_info {
    font-style: normal;
    display: flex;
    align-items: center;
    -moz-column-gap: 12px;
    column-gap: 12px;
}
.subscription-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
  }
  .subscription-modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 20px;
    max-width: 800px;
    border-radius: 8px;
    position: relative;
  }
  .subscription-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    cursor: pointer;
    font-size: 20px;
  }
  
 /* --- Clean Safe Version --- */
.mission-hero-new {
    width: 100%;
    height: 300px; /* Static height instead of vh to be safe */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay h1 {
    color: #ffffff !important;
    font-size: 50px;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 5;
}

.exec-table-grid {
    display: grid;
    grid-template-columns: 33% 33% 33%; /* Explicit percentages */
    gap: 30px;
}
/* Job Application Form Container */
.auth__body .job-app-form {
    margin-top: 20px;
}

/* Bold Labels for specific questions */
.job-app-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #000;
}

/* Rounded Grey Inputs & Selects */
.job-app-form input[type="text"],
.job-app-form input[type="email"],
.job-app-form input[type="date"],
.job-app-form select,
.job-app-form textarea {
    width: 100%;
    background-color: #f2f2f2; /* Light grey */
    border: none;
    border-radius: 50px; /* Capsule shape */
    padding: 18px 25px;
    font-size: 15px;
    margin-bottom: 25px;
    outline: none;
}

/* Special handling for the larger Textarea */
.job-app-form textarea {
    border-radius: 30px;
    height: 120px;
}

/* The Electrascape Green Submit Button */
.job-app-form .submit-btn {
    width: 100%;
    background-color: #248a47; /* The green from your screenshot */
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    padding: 16px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.job-app-form .submit-btn:hover {
    background-color: #1e733a;
}  
/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
    vertical-align: middle;
}

/* Style for when the button is in 'loading' state */
.submit-btn.is-loading {
    opacity: 0.8;
    pointer-events: none; /* Prevents double submission */
    cursor: not-allowed;
}


/* 1. Make sure the parent is the anchor */
.service-intro {
    position: relative !important;
}

/* 2. Style the Estimate Button Wrapper */
#request-estimate-form-popup {
    display: none; /* JS will show it when needed */
    position: absolute !important;
    right: 70px !important;
    bottom: 30px !important;
    left: auto !important; 
    width: max-content !important; /* CRUCIAL: Shrinks the box to fit the button */
    z-index: 99 !important; /* Keeps it above the ghost cards */
}

/* 3. Hide the ghost cards from the layout until they are needed */
#pricing {
    display: none; 
}
