
/* =========================================================
   KEDCO CONTACT INFORMATION & REGIONAL OFFICE WIDGET
   KEDCO brand: Navy #011174, Blue #0072C6, Yellow #E8DE03
   ========================================================= */

/* SECTION */

.kedco-contact-section {
    width: 100%;
    padding: 50px 20px 65px;
    background: #ffffff;
    color: #555555;
    font-family: Candara, Calibri, Arial, sans-serif;
    box-sizing: border-box;
}

.kedco-contact-section *,
.kedco-contact-section *::before,
.kedco-contact-section *::after {
    box-sizing: border-box;
}

.kedco-contact-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* INTRODUCTION */

.kedco-contact-intro {
    max-width: 760px;
    margin: 0 auto 35px;
    text-align: center;
}

.kedco-contact-intro h2 {
    margin: 0 0 14px;
    color: #011174;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.kedco-contact-intro p {
    margin: 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.7;
}

/* INTERACTIVE MAP */

.kedco-contact-map {
    position: relative;
    width: 100%;
    min-height: 350px;
    margin-bottom: 25px;
    overflow: hidden;
    background: #edf0f3;
    border: 1px solid #e1e5e9;
    border-radius: 5px;
    z-index: 1;
}

.kedco-contact-map .leaflet-container {
    width: 100%;
    height: 350px;
    font-family: Candara, Calibri, Arial, sans-serif;
}

.kedco-contact-map .leaflet-popup-content-wrapper {
    border-radius: 5px;
}

.kedco-contact-map .leaflet-popup-content {
    line-height: 1.5;
}

/* OFFICE SEARCH */

.kedco-contact-office-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 25px;
    padding: 18px;
    background: #f1f3f5;
    border-radius: 5px;
}

.kedco-contact-office-search label {
    color: #011174;
    font-size: 14px;
    font-weight: 700;
}

.kedco-contact-office-search input {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 12px 14px;
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    outline: none;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
}

.kedco-contact-office-search input:focus {
    border-color: #0072C6;
    box-shadow: 0 0 0 2px rgba(0, 114, 198, 0.12);
}

/* =========================================================
   REGIONAL OFFICE GRID
   Three columns on desktop, two on tablet, one on mobile.
   !important protects the layout from Elementor grid styles.
   ========================================================= */

.kedco-contact-section .kedco-contact-office-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 22px;
    width: 100%;
    margin: 0 0 65px;
    padding: 0;
    align-items: stretch;
}

.kedco-contact-section .kedco-contact-office-card {
    position: relative;
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 25px 42px 25px 20px;
    overflow-wrap: anywhere;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    box-shadow: 0 3px 12px rgba(1, 17, 116, 0.04);
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease,
                transform 0.25s ease;
}

.kedco-contact-section .kedco-contact-office-card::before {
    content: "+";
    position: absolute;
    top: 50%;
    right: 17px;
    transform: translateY(-50%);
    color: #0072C6;
    font-size: 22px;
    font-weight: 400;
}

.kedco-contact-section .kedco-contact-office-card::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #E8DE03;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.kedco-contact-section .kedco-contact-office-card:hover {
    transform: translateY(-4px);
    border-color: #0072C6;
    box-shadow: 0 8px 22px rgba(1, 17, 116, 0.10);
}

.kedco-contact-section .kedco-contact-office-card:hover::after {
    transform: scaleX(1);
}

.kedco-contact-section .kedco-contact-office-card h3 {
    margin: 0 0 10px;
    color: #0072C6;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.kedco-contact-section .kedco-contact-office-card p {
    margin: 0 0 10px;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
}

.kedco-contact-section .kedco-contact-office-card a {
    color: #0072C6;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.kedco-contact-section .kedco-contact-office-card a:hover {
    color: #011174;
    text-decoration: underline;
}

.kedco-contact-section .kedco-contact-office-card .kedco-office-directions {
    display: inline-block;
    margin-top: 7px;
    font-size: 14px;
    font-weight: 700;
}

.kedco-contact-symbol {
    margin-right: 5px;
    color: #0072C6;
    font-size: 18px;
}

.kedco-contact-office-card[hidden] {
    display: none !important;
}

.kedco-office-no-results {
    grid-column: 1 / -1;
    padding: 18px;
    color: #666666;
    text-align: center;
}

.kedco-office-no-results[hidden] {
    display: none !important;
}

/* =========================================================
   MAIN CONTACT AREA
   Left: image and quick contact
   Right: contact form
   ========================================================= */

.kedco-contact-main {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 50px;
    align-items: center;
    margin-top: 30px;
}

.kedco-contact-visual-column,
.kedco-contact-form-column {
    min-width: 0;
    width: 100%;
}

/* LEFT COLUMN IMAGE */

.kedco-contact-visual-column {
    position: relative;
    padding-bottom: 70px;
}

.kedco-contact-help-image {
    width: 100%;
    height: 310px;
    overflow: hidden;
    background: #f1f3f5;
    border-radius: 4px;
}

.kedco-contact-help-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kedco-contact-image-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 220px;
    align-items: center;
    justify-content: center;
    padding: 25px;
    background: #f1f3f5;
    color: #011174;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
}

/* QUICK CONTACT CARD */

.kedco-contact-detail-card {
    position: relative;
    width: 85%;
    margin: -115px 0 0 auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.10);
    z-index: 2;
}

.kedco-contact-detail-card > h3 {
    margin: 0 0 18px;
    color: #011174;
    font-size: 21px;
    font-weight: 700;
}

.kedco-contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid #eeeeee;
}

.kedco-contact-detail:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.kedco-contact-detail-icon {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: #eef5fc;
    color: #0072C6;
    font-size: 23px;
}

.kedco-contact-detail h4 {
    margin: 0 0 7px;
    color: #011174;
    font-size: 16px;
    font-weight: 700;
}

.kedco-contact-detail p,
.kedco-contact-detail a {
    margin: 0;
    color: #666666;
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.kedco-contact-detail a:hover {
    color: #0072C6;
}

/* RIGHT COLUMN - CONTACT FORM */

.kedco-contact-form-intro {
    margin-bottom: 28px;
}

.kedco-contact-form-intro h2 {
    margin: 0 0 15px;
    color: #011174;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
}

.kedco-contact-form-intro p {
    margin: 0;
    color: #666666;
    font-size: 15px;
    line-height: 1.7;
}

.kedco-contact-form-wrap {
    width: 100%;
    max-width: none;
    margin: 0;
}

.kedco-form-notice {
    margin: 0 0 18px;
    padding: 15px;
    background: #f1f3f5;
    color: #555555;
    font-size: 14px;
    line-height: 1.6;
}

/* VISUAL PLACEHOLDER FORM */

.kedco-contact-visual-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kedco-contact-visual-form label {
    display: block;
    color: #555555;
    font-size: 14px;
    font-weight: 600;
}

.kedco-contact-visual-form input,
.kedco-contact-visual-form textarea {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
}

.kedco-contact-visual-form input {
    min-height: 46px;
}

.kedco-contact-visual-form textarea {
    min-height: 130px;
    resize: vertical;
}

.kedco-contact-visual-form input:focus,
.kedco-contact-visual-form textarea:focus {
    outline: none;
    border-color: #0072C6;
    box-shadow: 0 0 0 2px rgba(0, 114, 198, 0.10);
}

.kedco-contact-visual-form button {
    align-self: flex-start;
    min-height: 46px;
    padding: 13px 24px;
    border: none;
    border-radius: 3px;
    background: #011174;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    opacity: 0.75;
}

.kedco-contact-visual-form button:disabled {
    cursor: not-allowed;
}

/* CONTACT FORM 7 */

.kedco-contact-form-wrap .wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.kedco-contact-form-wrap .wpcf7 input:not([type="submit"]),
.kedco-contact-form-wrap .wpcf7 textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 14px 16px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    box-sizing: border-box;
}

.kedco-contact-form-wrap .wpcf7 textarea {
    min-height: 140px;
}

.kedco-contact-form-wrap .wpcf7 input[type="submit"] {
    padding: 14px 28px;
    border: none;
    border-radius: 3px;
    background: #011174;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s ease;
}

.kedco-contact-form-wrap .wpcf7 input[type="submit"]:hover {
    background: #0072C6;
}

/* TABLET */

@media (max-width: 1024px) {
    .kedco-contact-section .kedco-contact-office-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .kedco-contact-main {
        gap: 30px;
    }

    .kedco-contact-detail-card {
        width: 90%;
        padding: 22px;
    }

    .kedco-contact-form-intro h2 {
        font-size: 29px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .kedco-contact-section {
        padding: 35px 15px 45px;
    }

    .kedco-contact-intro {
        margin-bottom: 25px;
    }

    .kedco-contact-intro h2 {
        font-size: 25px;
    }

    .kedco-contact-intro p {
        font-size: 15px;
    }

    .kedco-contact-section .kedco-contact-office-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 45px;
    }

    .kedco-contact-section .kedco-contact-office-card {
        padding: 18px 40px 18px 16px;
    }

    .kedco-contact-main {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 25px;
    }

    .kedco-contact-visual-column {
        padding-bottom: 35px;
    }

    .kedco-contact-help-image {
        height: 250px;
    }

    .kedco-contact-detail-card {
        width: 90%;
        margin-top: -90px;
        padding: 22px;
    }

    .kedco-contact-form-intro h2 {
        font-size: 27px;
    }
}

/* SMALL MOBILE */

@media (max-width: 480px) {
    .kedco-contact-detail-card {
        width: 94%;
        padding: 18px;
    }

    .kedco-contact-help-image {
        height: 220px;
    }

    .kedco-contact-detail {
        gap: 12px;
    }
}

/* DARK MODE */

[data-theme="dark"] .kedco-contact-section {
    background: #101827;
    color: #e5e7eb;
}

[data-theme="dark"] .kedco-contact-intro h2,
[data-theme="dark"] .kedco-contact-detail-card > h3,
[data-theme="dark"] .kedco-contact-detail h4,
[data-theme="dark"] .kedco-contact-form-intro h2 {
    color: #ffffff;
}

[data-theme="dark"] .kedco-contact-intro p,
[data-theme="dark"] .kedco-contact-office-card p,
[data-theme="dark"] .kedco-contact-detail p,
[data-theme="dark"] .kedco-contact-detail a,
[data-theme="dark"] .kedco-contact-form-intro p {
    color: #cbd5e1;
}

[data-theme="dark"] .kedco-contact-office-search,
[data-theme="dark"] .kedco-contact-image-placeholder,
[data-theme="dark"] .kedco-form-notice {
    background: #1f2937;
}

[data-theme="dark"] .kedco-contact-office-search label {
    color: #ffffff;
}

[data-theme="dark"] .kedco-contact-office-search input,
[data-theme="dark"] .kedco-contact-office-card,
[data-theme="dark"] .kedco-contact-detail-card,
[data-theme="dark"] .kedco-contact-visual-form input,
[data-theme="dark"] .kedco-contact-visual-form textarea,
[data-theme="dark"] .kedco-contact-form-wrap .wpcf7 input:not([type="submit"]),
[data-theme="dark"] .kedco-contact-form-wrap .wpcf7 textarea {
    background: #172235;
    border-color: #344258;
    color: #ffffff;
}

[data-theme="dark"] .kedco-contact-office-card h3,
[data-theme="dark"] .kedco-contact-office-card a,
[data-theme="dark"] .kedco-contact-detail-icon {
    color: #60a5fa;
}

[data-theme="dark"] .kedco-contact-detail-icon {
    background: #172554;
}

[data-theme="dark"] .kedco-contact-detail {
    border-color: #344258;
}

[data-theme="dark"] .kedco-contact-visual-form label,
[data-theme="dark"] .kedco-form-notice {
    color: #d1d5db;
}
