/* Contact Info block styles */

main#maincontent {
    padding: 0;
}

.contact-info {
    background: var(--color-white);
    position: relative;
}

.contact-info__grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    position: relative;
}

.contact-info__details {
    padding: 5rem 0;
    max-width: 36rem;
}

.contact-info__heading {
    @apply text-cwc-blue-02 font-bold text-34px/9;

    margin: 0 0 1rem;

    span { @apply text-cwc-blue-01; }

    em { @apply text-secondary; }
}

.contact-info__items {
    display: flex;
    flex-direction: column;
    font-weight: 300;
    gap: 0.75rem;
    list-style: none;
    margin: 0 0 2.25rem;
    padding: 0;
}

.contact-info__item {
    align-items: flex-start;
    color: var(--color-dark);
    display: flex;
    font-size: 1rem;
    gap: 0.75rem;
    line-height: 1.5;
}

.contact-info__icon {
    align-items: center;
    color: var(--color-cwc-blue-03);
    display: inline-flex;
    flex-shrink: 0;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.contact-info__icon img {
    display: block;
    height: 100%;
    width: 100%;
}

.contact-info__value {
    color: inherit;
    text-decoration: none;
}

a.contact-info__value:hover {
    color: var(--color-secondary);
}

.contact-info__map {
    background: color-mix(in oklch, var(--color-cwc-blue-03) 30%, white);
    height: 100%;
    min-height: 24rem;
    overflow: hidden;
    position: relative;
}

.contact-info__map .leaflet-container {
    height: 100%;
    isolation: isolate;
    width: 100%;
}

.contact-info__map .leaflet-tile-pane {
    filter: grayscale(0.35) saturate(0.7) brightness(1.05) contrast(0.98);
}

.contact-info__map::after {
    background: color-mix(in oklch, var(--color-cwc-blue-03) 30%, transparent);
    content: '';
    inset: 0;
    mix-blend-mode: normal;
    pointer-events: none;
    position: absolute;
    z-index: 410;
}

.contact-info__map .leaflet-control-attribution {
    color: color-mix(in oklch, var(--color-cwc-blue-01) 45%, black);
    font-size: 0.625rem;
    opacity: 0.65;
}

.contact-info__leaflet-pin {
    display: block;
    filter: drop-shadow(0 0.2rem 0.45rem rgba(0, 0, 0, 0.08));
}

.contact-info__leaflet-pin svg {
    display: block;
    height: 100%;
    width: 100%;
}

@media (min-width: 1024px) {
    .contact-info__grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info__details {
        padding-inline: clamp(1.5rem, 5vw, 3rem) 0;
    }

    .contact-info__map {
        align-self: stretch;
        border-radius: 0;
        margin-right: calc(50% - 50vw);
        margin-left: 0;
        min-height: 32rem;
        width: calc(50vw - 0px);
    }
}

@media (max-width: 767px) {
    .contact-info {
        padding-block: 0;
    }

    .contact-info__details {
        max-width: none;
        padding: 2.75rem 0 2rem;
        padding-inline: clamp(1.5rem, 5vw, 3rem);
    }

    .contact-info__heading {
        margin-bottom: 1.375rem;
    }

    .contact-info__map {
        margin-inline: 0;
        min-height: 30rem;
    }

    .contact-info__form .gfield {
        margin-bottom: 1rem;
    }

    .contact-info__form .gfield_label {
        letter-spacing: 0.08em;
        margin-bottom: 0.35rem;
    }

    .contact-info__form input[type="text"],
    .contact-info__form input[type="email"],
    .contact-info__form input[type="tel"],
    .contact-info__form input[type="url"],
    .contact-info__form select {
        min-height: 2.875rem;
        padding: 0.45rem 0.75rem;
    }

    .contact-info__form textarea {
        min-height: 13.5rem;
        padding: 0.7rem 0.75rem;
    }

    .contact-info__form .gform_footer {
        margin-top: 1.25rem;
    }

    .contact-info__form .gform_footer input[type="submit"],
    .contact-info__form .gform_footer button[type="submit"] {
        border-radius: 1rem 0.25rem;
        font-size: 1.125rem;
        line-height: 1;
        min-width: 7.75rem;
        padding: 0.65rem 1.4rem;
    }
}

/* Gravity Forms field overrides (scoped to .contact-info__form) */

.contact-info__form .gform_wrapper {
    margin: 0;
    max-width: none;

    .gform_required_legend { display: none; }
}

.contact-info__form .gfield { margin-bottom: 1.25rem; }

.contact-info__form .gfield_label {
    color: var(--color-cwc-blue-01);
    display: flex;
    font-size: 0.875rem;
    font-weight: 700;
    justify-content: space-between;
    letter-spacing: 0.05em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.contact-info__form .gfield_required {
    color: var(--color-secondary-accessible);
    font-weight: 700;
    margin-left: 0.25rem;
}

.contact-info__form input[type="text"],
.contact-info__form input[type="email"],
.contact-info__form input[type="tel"],
.contact-info__form input[type="url"],
.contact-info__form textarea,
.contact-info__form select {
    background: color-mix(in oklch, var(--color-cwc-blue-03) 30%, white);
    border: 2px solid var(--color-cwc-blue-03);
    border-radius: 0.25rem;
    color: var(--color-dark);
    font-size: 1rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    width: 100%;
}

.contact-info__form input[type="text"]:focus,
.contact-info__form input[type="email"]:focus,
.contact-info__form input[type="tel"]:focus,
.contact-info__form input[type="url"]:focus,
.contact-info__form textarea:focus,
.contact-info__form select:focus {
    border-color: var(--color-cwc-blue-01);
    outline: 2px solid var(--color-cwc-blue-01);
    outline-offset: 2px;
}

.contact-info__form textarea {
    min-height: 10rem;
    padding: 0.5rem;
    resize: vertical;
}

.contact-info__form .gform_footer {
    margin-top: 1.5rem;
}

.contact-info__form .gform_footer input[type="submit"],
.contact-info__form .gform_footer button[type="submit"] {
    background: var(--background-image-button-gradient);
    border: 3px solid transparent;
    border-radius: 1.25rem 0.25rem;
    color: var(--color-white);
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.625rem 2rem;
    transition: background 200ms, border-color 200ms, color 200ms;
}

.contact-info__form .gform_footer input[type="submit"]:hover,
.contact-info__form .gform_footer button[type="submit"]:hover {
    border: 3px solid #D24D32;
}
