/* ==========================================================================
   CONTACT — page-scoped styles
   Same light palette and card vocabulary as the other rebuilt pages.
   Loaded only on /contact-us.
   ========================================================================== */

.cu-page {
    --cu-ink: var(--gf-navy);
    --cu-ink-soft: rgba(48, 68, 79, 0.76);
    --cu-ink-faint: rgba(48, 68, 79, 0.55);
    --cu-line: rgba(94, 179, 70, 0.24);
    --cu-card: #ffffff;
    --cu-shadow: 0 14px 34px rgba(48, 68, 79, 0.1);

    font-family: "Poppins", sans-serif;
    background: linear-gradient(to right, #f1f6f7, #d5f1f1);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.cu-hero {
    position: relative;
    overflow: hidden;
    /* Clears the fixed 72px site header. */
    padding: calc(72px + clamp(2rem, 5vw, 3.5rem)) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.cu-hero-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cu-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cu-blob--a {
    top: -18%;
    left: 4%;
    width: 28rem;
    height: 28rem;
    background: rgba(94, 179, 70, 0.2);
    animation: cuDriftA 24s ease-in-out infinite alternate;
}

.cu-blob--b {
    top: -8%;
    right: -4%;
    width: 26rem;
    height: 26rem;
    background: rgba(90, 196, 180, 0.18);
    animation: cuDriftB 29s ease-in-out infinite alternate;
}

@keyframes cuDriftA {
    to { transform: translate3d(5rem, 2.5rem, 0) scale(1.1); }
}

@keyframes cuDriftB {
    to { transform: translate3d(-4rem, 3rem, 0) scale(0.92); }
}

.cu-hero .container {
    position: relative;
    z-index: 1;
}

.cu-hero-inner {
    max-width: 44rem;
    margin: 0 auto 2.4rem;
    text-align: center;
}

.cu-eyebrow {
    display: inline-block;
    margin-bottom: 0.9rem;
    padding: 0.38rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gf-green-dark);
    background: rgba(94, 179, 70, 0.1);
    border: 1px solid var(--cu-line);
}

.cu-title {
    margin: 0 0 1rem;
    font-weight: 700;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    line-height: 1.14;
    letter-spacing: -0.028em;
    color: var(--cu-ink);
}

.cu-title span {
    color: var(--gf-green);
}

.cu-lead {
    max-width: 36rem;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--cu-ink-soft);
}

/* ---------- contact channels ---------- */
.cu-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    max-width: 66rem;
    margin: 0 auto;
}

.cu-channel {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem;
    text-decoration: none;
    background: var(--cu-card);
    border: 1px solid rgba(94, 179, 70, 0.2);
    border-radius: 20px;
    box-shadow: var(--cu-shadow);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.cu-channel:hover {
    transform: translateY(-6px);
    border-color: rgba(94, 179, 70, 0.5);
    box-shadow: 0 22px 44px -20px rgba(94, 179, 70, 0.45), var(--cu-shadow);
}

.cu-channel-icon {
    display: grid;
    place-items: center;
    width: 2.8rem;
    height: 2.8rem;
    margin-bottom: 1rem;
    border-radius: 14px;
    font-size: 0.95rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gf-green), var(--gf-green-dark));
    box-shadow: 0 10px 20px rgba(94, 179, 70, 0.28);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cu-channel:hover .cu-channel-icon {
    transform: translateY(-3px) scale(1.06);
}

.cu-channel-label {
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gf-green-dark);
}

.cu-channel-value {
    margin-bottom: 0.4rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--cu-ink);
    overflow-wrap: anywhere;
}

.cu-channel-note {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--cu-ink-faint);
}

/* ==========================================================================
   FORM
   ========================================================================== */
.cu-form-section {
    padding: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(2rem, 4vw, 3rem);
}

.cu-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    max-width: 66rem;
    margin: 0 auto;
}

.cu-section-title {
    margin: 0 0 1.2rem;
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--cu-ink);
}

/* ---------- what happens next ---------- */
.cu-steps {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
    counter-reset: cu-step;
}

.cu-steps li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin-bottom: 1.1rem;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--cu-ink-soft);
}

.cu-step-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    font-size: 0.78rem;
    color: var(--gf-green-dark);
    background: rgba(94, 179, 70, 0.12);
    border: 1px solid var(--cu-line);
}

.cu-aside-note {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--gf-green);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--cu-ink-faint);
}

.cu-aside-note a {
    font-weight: 600;
    color: var(--gf-green-dark);
}

/* ---------- the form card ---------- */
.cu-form-wrap {
    padding: clamp(1.5rem, 3vw, 2.2rem);
    background: var(--cu-card);
    border: 1px solid rgba(94, 179, 70, 0.2);
    border-radius: 24px;
    box-shadow: var(--cu-shadow);
}

.cu-field {
    margin-bottom: 1.1rem;
}

.cu-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cu-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--cu-ink);
}

.cu-field label span {
    color: var(--gf-green-dark);
}

.cu-field input,
.cu-field textarea {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--cu-ink);
    background: #f7faf6;
    border: 1px solid rgba(48, 68, 79, 0.16);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.cu-field textarea {
    resize: vertical;
    min-height: 7.5rem;
    line-height: 1.65;
}

.cu-field input::placeholder,
.cu-field textarea::placeholder {
    color: rgba(48, 68, 79, 0.42);
}

.cu-field input:focus,
.cu-field textarea:focus {
    background: #ffffff;
    border-color: var(--gf-green);
    box-shadow: 0 0 0 4px rgba(94, 179, 70, 0.16);
}

/* October's AJAX validation writes into these, and marks the field invalid. */
.cu-error {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: #c0392b;
}

.cu-error:empty {
    display: none;
}

.cu-field input.cu-invalid,
.cu-field textarea.cu-invalid {
    border-color: #c0392b;
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.cu-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.4rem;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    background: linear-gradient(90deg, var(--gf-green), var(--gf-green-dark));
    box-shadow: 0 12px 26px rgba(94, 179, 70, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.cu-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(94, 179, 70, 0.4);
}

.cu-submit i {
    transition: transform 0.25s ease;
}

.cu-submit:hover i {
    transform: translateX(4px);
}

/* October adds this class while the request is in flight. */
.cu-submit.oc-loading {
    opacity: 0.65;
    pointer-events: none;
}

.cu-privacy {
    margin: 0.9rem 0 0;
    font-size: 0.78rem;
    color: var(--cu-ink-faint);
}

/* The component swaps this element's contents on success. */
.cu-result {
    margin-top: 1rem;
}

.cu-result:empty {
    display: none;
}

.cu-result .success {
    margin: 0;
    padding: 0.9rem 1.1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f6b3a;
    background: rgba(94, 179, 70, 0.12);
    border: 1px solid rgba(94, 179, 70, 0.4);
}

/* ==========================================================================
   MAP
   ========================================================================== */
.cu-map-section {
    padding: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.cu-map {
    position: relative;
    max-width: 66rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(94, 179, 70, 0.2);
    box-shadow: var(--cu-shadow);
}

/* The old iframe had a width but no height and collapsed to nothing. */
.cu-map-frame {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    min-height: 20rem;
    border: 0;
    border-radius: 0;
}

.cu-map-card {
    position: absolute;
    left: clamp(1rem, 3vw, 2rem);
    bottom: clamp(1rem, 3vw, 2rem);
    display: flex;
    gap: 0.9rem;
    max-width: 22rem;
    padding: 1.2rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--cu-line);
    box-shadow: 0 18px 38px -16px rgba(48, 68, 79, 0.5);
    backdrop-filter: blur(6px);
}

.cu-map-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    font-size: 0.85rem;
    color: #ffffff;
    background: linear-gradient(135deg, var(--gf-green), var(--gf-green-dark));
}

.cu-map-title {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--cu-ink);
}

.cu-map-text {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--cu-ink-soft);
}

.cu-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--gf-green-dark);
}

.cu-map-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media only screen and (max-width: 991px) {
    .cu-channels { grid-template-columns: 1fr; }
    .cu-grid { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 575px) {
    .cu-field-row { grid-template-columns: 1fr; gap: 0; }
    .cu-submit { width: 100%; justify-content: center; }
    /* Overlaying the card on a short map would cover most of it. */
    .cu-map-card {
        position: static;
        max-width: none;
        border: none;
        border-top: 1px solid var(--cu-line);
        border-radius: 0;
        box-shadow: none;
    }
    .cu-map-frame { aspect-ratio: 4 / 3; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .cu-page *,
    .cu-page *::before,
    .cu-page *::after {
        animation: none !important;
        transition: none !important;
    }
    .cu-blob { transform: none !important; }
}
