/* ==========================================================================
   Care Club sign-up (#join) on the club page
   template-parts/care-club-signup.php, loaded on page-care-club.php only
   (inc/care-club-signup.php).

   The section also carries .process-section, so the dark band (background,
   texture, eyebrow, heading and intro colours) comes from the parent and
   child.css. This file sets the two-column layout, the white form card and
   the call line. The form takes the contact page's styling from the parent
   through the .contact-page > .contact-form-wrap wrapper.
   ========================================================================== */

/* The Join buttons jump here: stop under the sticky header (123px on desktop,
   the 64px mobile header at 1100px and below). */
.cc-join-section { scroll-margin-top: 123px; }
@media (max-width: 1100px) {
    .cc-join-section { scroll-margin-top: 64px; }
}
/* At 900px and below child.css lowers the header under the call bar and sets
   html { scroll-padding-top: 128px }, which already clears it. */
@media (max-width: 900px) {
    .cc-join-section { scroll-margin-top: 0; }
}

.cc-join {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

/* Intro: the band's section header, left-aligned beside the card. */
.cc-join-section .section-header.cc-join__intro {
    text-align: left;
    max-width: 34em;
    margin: 0;
}
.cc-join-section .cc-join__intro h2 { margin: 8px 0 14px; }
.cc-join-section .cc-join__intro p:not(.eyebrow) {
    max-width: none;
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.65;
}
.cc-join-section .cc-join__intro .cc-join__call {
    margin-top: 22px;
    color: #fff;
    font-weight: 700;
}
.cc-join__call a {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    min-height: 44px;
    margin-left: 0.25em;
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgb(255 255 255 / 0.45);
    text-underline-offset: 4px;
    white-space: nowrap;
}
.cc-join__call a:hover,
.cc-join__call a:focus-visible { color: #fff; text-decoration-color: #fff; }
.cc-join__call a i {
    --fa-primary-color: var(--brand-accent);
    --fa-secondary-color: var(--brand-accent);
    color: var(--brand-accent);
}

/* Form card. */
.cc-join__card {
    background: #fff;
    color: var(--brand-ink);
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.55);
    overflow: hidden;
}
.cc-join__card .contact-form-wrap { padding: 28px 30px 30px; }
.cc-join__card .gform_confirmation_message {
    padding: 8px 0;
    color: var(--brand-ink);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.6;
}
.cc-join__card .contact-form-fallback p { margin: 0; }

@media (max-width: 900px) {
    .cc-join { grid-template-columns: minmax(0, 1fr); }
    .cc-join-section .section-header.cc-join__intro { max-width: none; }
}
@media (max-width: 600px) {
    .cc-join__card .contact-form-wrap { padding: 22px 20px 24px; }
}
