/* FMS Member Gate — shared styles for the [fms_signup] and [fms_pricing] pages.
 *
 * Every selector is namespaced under .fms-mg-signup / .fms-mg-pricing so the theme is
 * untouched. The accent (buttons, checks, links, ribbon) is themed via --fms-mg-accent:
 * the shortcode injects the plugin's "Accent color" setting inline, falling back here to
 * the default Frontier teal. The pricing hero uses --fms-mg-hero (yellow). Fonts are
 * inherited from the theme (no web-font imports). */

/* --- Shared buttons --- */
.fms-mg-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.15s ease, background 0.15s ease;
}

.fms-mg-btn--solid {
    background: var(--fms-mg-accent);
    color: #fff;
}

.fms-mg-btn--solid:hover,
.fms-mg-btn--solid:focus {
    filter: brightness(0.93);
    color: #fff;
    text-decoration: none;
}

.fms-mg-btn--outline {
    background: transparent;
    color: var(--fms-mg-accent);
    border-color: var(--fms-mg-accent);
}

.fms-mg-btn--outline:hover,
.fms-mg-btn--outline:focus {
    background: rgba(0, 0, 0, 0.04);
    color: var(--fms-mg-accent);
    text-decoration: none;
}

.fms-mg-btn--lg {
    padding: 14px 28px;
    font-size: 0.9rem;
}

/* --- Shared benefit checklist --- */
.fms-mg-checklist {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.fms-mg-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.fms-mg-check {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--fms-mg-accent);
}

/* ============================================================================
   Signup page
   ========================================================================== */
.fms-mg-signup {
    --fms-mg-accent: #14a89b;
    max-width: 640px;
    margin: 1.5rem auto;
}

.fms-mg-signup * {
    box-sizing: border-box;
}

.fms-mg-signup__card {
    margin: 0 0 1.5rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.fms-mg-signup__card-title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1.5rem;
    font-weight: 700;
}

.fms-mg-signup__lead {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.fms-mg-signup__rule {
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin: 1.25rem 0;
}

.fms-mg-signup__price {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.fms-mg-signup__actions {
    margin: 0 0 1rem;
}

.fms-mg-signup__login {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.fms-mg-signup__login a {
    color: var(--fms-mg-accent);
    font-weight: 600;
}

.fms-mg-signup__note {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.fms-mg-signup__note a {
    color: var(--fms-mg-accent);
    font-weight: 600;
}

.fms-mg-signup__fineprint {
    margin: 0;
    font-size: 0.8rem;
    color: #6e6e73;
    line-height: 1.5;
}

.fms-mg-signup__hint {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: #4b4b50;
    line-height: 1.5;
}

/* Two-column field grid, collapsing to one column on narrow screens. */
.fms-mg-field-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.25rem;
    margin: 0 0 1rem;
}

.fms-mg-field {
    display: flex;
    flex-direction: column;
}

.fms-mg-field label {
    margin-bottom: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
}

.fms-mg-field input {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    font-size: 1rem;
}

.fms-mg-field input:focus {
    outline: 2px solid var(--fms-mg-accent);
    outline-offset: 1px;
    border-color: var(--fms-mg-accent);
}

.fms-mg-req {
    color: #c0392b;
}

@media (max-width: 640px) {
    .fms-mg-field-grid {
        grid-template-columns: 1fr;
    }
}

/* Password field + show/hide toggle. */
.fms-mg-password-wrap {
    position: relative;
}

.fms-mg-password-wrap input {
    padding-right: 2.5rem;
}

.fms-mg-password-toggle {
    position: absolute;
    right: 0.4rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.25rem;
    border: 0;
    background: none;
    line-height: 0;
    color: #8a8a8f;
    cursor: pointer;
}

.fms-mg-password-toggle:hover,
.fms-mg-password-toggle.is-on {
    color: var(--fms-mg-accent);
}

/* Visually-hidden honeypot. */
.fms-mg-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.fms-mg-signup__turnstile {
    margin: 0 0 1rem;
}

.fms-mg-signup__submit {
    margin: 1.25rem 0 0;
}

/* Shared error notice. */
.fms-mg-notice {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.92rem;
    line-height: 1.5;
}

.fms-mg-notice--error {
    background: #fdecec;
    color: #8a1c1c;
    border: 1px solid #f2bcbc;
}

.fms-mg-notice ul {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.fms-mg-notice a {
    color: inherit;
    font-weight: 700;
}

/* ============================================================================
   Pricing page
   ========================================================================== */
.fms-mg-pricing {
    --fms-mg-accent: #14a89b;
    --fms-mg-hero: #ffd200;
}

.fms-mg-pricing * {
    box-sizing: border-box;
}

/* Yellow hero with an angled bottom edge. */
.fms-mg-pricing__hero {
    margin: 0 0 2.5rem;
    padding: 3rem 1.5rem 4.5rem;
    background: var(--fms-mg-hero);
    clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.fms-mg-pricing__hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.fms-mg-pricing__heading {
    margin: 0 0 1rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
}

.fms-mg-pricing__intro {
    margin: 0;
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Tier cards. */
.fms-mg-pricing__tiers-section {
    max-width: 1040px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.fms-mg-pricing__tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 820px) {
    .fms-mg-pricing__tiers {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

.fms-mg-pricing__tier {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.fms-mg-pricing__tier.is-recommended {
    border: 2px solid var(--fms-mg-accent);
}

.fms-mg-pricing__ribbon {
    padding: 0.5rem;
    background: var(--fms-mg-accent);
    color: #fff;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.fms-mg-pricing__tier-body {
    padding: 1.5rem 1.5rem 1.75rem;
    text-align: center;
}

.fms-mg-pricing__tier-name {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fms-mg-pricing__price {
    margin: 0 0 0.5rem;
}

.fms-mg-pricing__amount {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.fms-mg-pricing__interval {
    font-size: 1rem;
    color: #4b4b50;
}

.fms-mg-pricing__trial {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: #eef6ee;
    color: #24613a;
    font-size: 0.85rem;
    font-weight: 600;
}

.fms-mg-pricing__subtitle {
    margin: 0 0 1.25rem;
    color: #4b4b50;
    font-size: 0.95rem;
    line-height: 1.4;
}

.fms-mg-pricing__tier-cta {
    margin: 0 0 1.25rem;
}

.fms-mg-pricing__tier .fms-mg-checklist {
    text-align: left;
}

.fms-mg-pricing__community {
    margin: 1.5rem 0 0;
    text-align: center;
}

.fms-mg-pricing__community a {
    color: var(--fms-mg-accent);
    font-weight: 700;
}

/* Under the tier cards when some card types pay the equivalent in baht (FMS's
 * `currency_note`, DECISIONS #51). */
.fms-mg-pricing__currency-note {
    margin: 1rem auto 0;
    max-width: 44rem;
    text-align: center;
    font-size: .875rem;
    color: #5f6368;
}

.fms-mg-pricing__unavailable {
    padding: 1.5rem 0;
    color: #6e6e73;
    text-align: center;
}

/* Team memberships + seat calculator. */
.fms-mg-pricing__team {
    max-width: 1040px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.fms-mg-pricing__team-heading {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

.fms-mg-pricing__team-intro {
    max-width: 640px;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.fms-mg-pricing__calc {
    display: inline-flex;
    flex-direction: column;
    gap: 0.9rem;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    background: #fff;
}

.fms-mg-calc__seats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.fms-mg-calc__step {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--fms-mg-accent);
    border-radius: 50%;
    background: transparent;
    color: var(--fms-mg-accent);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.fms-mg-calc__step:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.04);
}

.fms-mg-calc__step:disabled {
    opacity: 0.4;
    cursor: default;
}

.fms-mg-calc__count {
    min-width: 2ch;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
}

.fms-mg-calc__unit {
    color: #4b4b50;
}

.fms-mg-calc__price {
    margin: 0;
    font-size: 1.05rem;
}

.fms-mg-calc__cta,
.fms-mg-pricing__team-cta {
    margin: 0;
}

/* FAQ accordion. */
.fms-mg-pricing__faqs {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 1.5rem;
}

.fms-mg-pricing__faqs-heading {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
}

.fms-mg-pricing__faq {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.fms-mg-pricing__faq summary {
    position: relative;
    padding: 1rem 2rem 1rem 0;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

.fms-mg-pricing__faq summary::-webkit-details-marker {
    display: none;
}

.fms-mg-pricing__faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: var(--fms-mg-accent);
}

.fms-mg-pricing__faq[open] summary::after {
    content: "\2212";
}

.fms-mg-pricing__faq-a {
    padding: 0 0 1rem;
    color: #333;
    line-height: 1.6;
}

.fms-mg-pricing__faq-a p {
    margin: 0 0 0.75rem;
}

.fms-mg-pricing__faq-a p:last-child {
    margin-bottom: 0;
}

.fms-mg-pricing__contact {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
    color: #4b4b50;
}

.fms-mg-pricing__contact a {
    color: var(--fms-mg-accent);
}

/* ==========================================================================
   Frontier brand match (0.9.1)
   --------------------------------------------------------------------------
   Re-skins [fms_pricing] / [fms_signup] to read like the site's PMPro
   membership pages: keppel green (#32BA97), PT Sans / Playfair Display, and
   the theme's ._button + .membership-levels card look. Appended last so it
   wins the cascade; every value falls back to a hard-coded token so the
   plugin still renders standalone. NOTE: the keppel accent itself is set via
   the plugin's "Accent color" option (injected inline), not here.
   ========================================================================== */
.fms-mg-pricing,
.fms-mg-signup {
    --fms-mg-accent-hover: var(--teal-green, #22997a);
    --fms-mg-hero: var(--bright-sun, #ffe01a);
    --fms-mg-ink: var(--dark-liver, #4f4f4f);
    --fms-mg-sans: var(--sans-serif, "PT Sans"), sans-serif;
    --fms-mg-display: var(--playfair-display, "Playfair Display"), Georgia, serif;
}

/* --- Buttons → theme ._button (PT Sans, uppercase, keppel, teal-green hover) --- */
.fms-mg-pricing .fms-mg-btn,
.fms-mg-signup .fms-mg-btn {
    font-family: var(--fms-mg-sans);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    border-width: 2px;
    border-radius: 4px;
    padding: 12px 34px;
}

.fms-mg-pricing .fms-mg-btn--lg,
.fms-mg-signup .fms-mg-btn--lg {
    padding: 14px 44px;
    font-size: 16px;
}

.fms-mg-btn--solid:hover,
.fms-mg-btn--solid:focus {
    background: var(--fms-mg-accent-hover);
    border-color: var(--fms-mg-accent-hover);
    color: #fff;
    filter: none;
}

/* --- Tier cards → .membership-levels__column (keppel outline, square) --- */
.fms-mg-pricing__tier,
.fms-mg-pricing__tier.is-recommended {
    border: 1px solid var(--fms-mg-accent);
    border-radius: 0;
    box-shadow: none;
}

.fms-mg-pricing__tier-name {
    font-family: var(--fms-mg-sans);
    font-weight: 400;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    color: #1c1c1c;
}

/* Price → Playfair Display, oldstyle numerals, lowercase interval. */
.fms-mg-pricing__amount {
    font-family: var(--fms-mg-display);
    font-weight: 400;
    font-size: 2.9rem;
    font-feature-settings: "onum" 1;
}

.fms-mg-pricing__interval {
    font-family: var(--fms-mg-display);
    font-weight: 400;
    text-transform: lowercase;
    color: var(--fms-mg-ink);
}

/* Recommended banner → .--recommended:before (PT Sans, not uppercase). */
.fms-mg-pricing__ribbon {
    font-family: var(--fms-mg-sans);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    padding: 0.7rem 0.5rem;
}

/* --- Card row alignment ---------------------------------------------------
 * The ribbon used to sit in the flow at the top of the recommended card, so that
 * one card's name/price/button/benefits all sat a banner-height lower than its
 * neighbours and the three cards ended at different depths. Lift it out of the
 * flow into reserved space above the row: every card then starts at the same y,
 * and the tab reads as a label ON the recommended column rather than a slice cut
 * out of it. The reserve is on the grid, so it holds whether or not any tier is
 * currently marked recommended.
 */
.fms-mg-pricing__tiers {
    align-items: stretch;
    padding-top: 2.75rem;
}

.fms-mg-pricing__tier {
    display: flex;
    flex-direction: column;
    overflow: visible; /* base rule clips; the ribbon now sits outside the box */
}

.fms-mg-pricing__ribbon {
    position: absolute;
    bottom: 100%;
    left: -1px;  /* cover the card's own 1px outline so the tab sits flush */
    right: -1px;
}

/* Equal-height cards: the checklist absorbs the slack so every card's outline
 * reaches the same depth regardless of how many benefits it lists. */
.fms-mg-pricing__tier-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.fms-mg-pricing__tier .fms-mg-checklist {
    flex: 1 1 auto;
}

/* Subtitle → dark Playfair prose (per the published design), and tall enough
 * for two lines so a one-line subtitle does not pull its card's JOIN US button
 * above the others. */
.fms-mg-pricing__subtitle {
    color: #1c1c1c;
    font-family: var(--fms-mg-display);
    font-size: 1.15rem;
    line-height: 1.45;
    min-height: 2.9em;
}

@media (max-width: 820px) {
    /* Single column: cards no longer sit side by side, so nothing needs aligning
     * and the reserved band would just be a gap above the first card. */
    .fms-mg-pricing__tiers {
        padding-top: 0;
    }

    .fms-mg-pricing__tier.is-recommended,
    .fms-mg-pricing__tier.is-current {
        margin-top: 2.75rem;
    }

    .fms-mg-pricing__subtitle {
        min-height: 0;
    }
}

/* --- Section headings + card titles → Playfair Display --- */
.fms-mg-pricing__heading,
.fms-mg-pricing__team-heading,
.fms-mg-pricing__faqs-heading,
.fms-mg-signup__card-title {
    font-family: var(--fms-mg-display);
    font-weight: 700;
    color: #1c1c1c;
}

.fms-mg-pricing__heading {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
}

/* Body copy → PT Sans dark ink (the theme only loads its fonts on Elementor
 * pages, so this surface sets them itself). */
.fms-mg-pricing__intro,
.fms-mg-pricing__team-intro,
.fms-mg-pricing__community,
.fms-mg-pricing__currency-note,
.fms-mg-pricing__contact,
.fms-mg-pricing__unavailable,
.fms-mg-pricing .fms-mg-checklist,
.fms-mg-pricing .fms-mg-calc__price,
.fms-mg-pricing .fms-mg-calc__unit,
.fms-mg-pricing__faq-a {
    font-family: var(--fms-mg-sans);
    color: #1c1c1c;
}

.fms-mg-pricing__intro {
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 1140px;
}

/* The three tier cards form one contiguous panel (no gap); adjacent cards share
 * a single 1px outline. */
.fms-mg-pricing__tiers {
    gap: 0;
}

@media (min-width: 821px) {
    .fms-mg-pricing__tier + .fms-mg-pricing__tier {
        border-left: 0;
    }
}

.fms-mg-pricing .fms-mg-checklist li {
    font-size: 0.9rem;
    line-height: 1.45;
}

/* --- Banded layout, matching the published Membership page exactly: a yellow
   top band (hero + cards) that ends in a diagonal cut into white, a white
   Team-memberships section with the Myanmar collage illustration, then a
   straight-edged yellow band for the FAQs + contact line. Each band bleeds to
   the viewport edges with the negative-margin + matching-padding pair while
   the content stays on the page's container. --- */
.fms-mg-pricing {
    background: transparent;
}

.fms-mg-pricing__band {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
    background: var(--fms-mg-hero);
}

/* Diagonal bottom edge: the yellow runs deepest at the left and climbs ~120px
 * across the page, exactly like the published design. The extra bottom padding
 * is the room the cut consumes. */
.fms-mg-pricing__band--top {
    padding-top: 1rem;
    padding-bottom: 9.5rem;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 120px), 0 100%);
}

.fms-mg-pricing__band--faqs {
    margin-top: 1.5rem;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

/* The hero is prose at the top of the yellow band (no separate sub-band). */
.fms-mg-pricing__hero {
    background: transparent;
    clip-path: none;
    margin: 0 0 1.5rem;
    padding: 1.5rem 0 0;
}

.fms-mg-pricing__hero-inner {
    max-width: 1168px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- Signup: same yellow field, cards constrained + centered on it. --- */
.fms-mg-signup {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 2rem calc(50vw - 50%) 2.5rem;
    background: var(--fms-mg-hero);
}

.fms-mg-signup__card {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--fms-mg-accent);
    border-radius: 0;
    box-shadow: none;
}

.fms-mg-field input:focus {
    outline: 2px solid var(--fms-mg-accent);
    border-color: var(--fms-mg-accent);
}

/* --- Shared container width: the published page runs its content ~1120px wide. --- */
.fms-mg-pricing__tiers-section,
.fms-mg-pricing__team,
.fms-mg-pricing__faqs,
.fms-mg-pricing__contact {
    max-width: 1168px;
}

/* --- Team memberships: white section, copy left / illustration right. --- */
.fms-mg-pricing__team {
    margin: 2.5rem auto 3rem;
}

.fms-mg-pricing__team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3rem;
    align-items: center;
}

.fms-mg-pricing__team-heading {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin: 0 0 1.25rem;
}

.fms-mg-pricing__team-intro {
    max-width: 720px;
    margin: 0 0 2rem;
}

.fms-mg-pricing__team-art {
    margin: 0;
}

.fms-mg-pricing__team-art img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* The seat calculator blends into the white section (the published page shows a
 * plain LEARN MORE button here; the calculator keeps checkout functional while
 * reading as part of the prose column). */
.fms-mg-pricing__calc {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

.fms-mg-calc__step {
    border-color: var(--fms-mg-accent);
    color: var(--fms-mg-accent);
}

/* --- FAQs band internals. --- */
.fms-mg-pricing__faqs {
    margin-bottom: 0;
}

.fms-mg-pricing__faqs-heading {
    font-size: clamp(2rem, 4.5vw, 3rem);
    margin: 0 0 2.75rem;
}

.fms-mg-pricing__faqs-mark {
    display: block;
    margin-top: 0.3rem;
    color: var(--fms-mg-accent);
}

.fms-mg-pricing__faq {
    border-bottom: 1px solid #1c1c1c;
}

.fms-mg-pricing__faq summary {
    font-family: var(--fms-mg-sans);
    font-size: 1rem;
    color: #1c1c1c;
    padding: 0.9rem 2.25rem 0.9rem 0;
}

/* Thin chevron (∨ → ∧) on the right, replacing the base +/− marker. */
.fms-mg-pricing__faq summary::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #1c1c1c;
    border-bottom: 2px solid #1c1c1c;
    color: transparent;
    font-size: 0;
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.15s ease;
}

.fms-mg-pricing__faq[open] summary::after {
    content: "";
    transform: translateY(-30%) rotate(225deg);
}

.fms-mg-pricing__faq-a {
    color: #1c1c1c;
}

/* --- Contact line: dark prose on the yellow band, teal underlined links. --- */
.fms-mg-pricing__contact {
    margin: 2rem auto 0;
    color: #1c1c1c;
}

.fms-mg-pricing__contact a {
    color: var(--fms-mg-accent);
    text-decoration: underline;
    font-weight: 400;
}

/* --- Community call-out sits on the yellow band under the cards. --- */
.fms-mg-pricing__community a {
    color: #1c1c1c;
    text-decoration: underline;
}

/* Member view: the downgrade-to-free call-out is a form button styled as the link. */
.fms-mg-pricing__community-form {
    display: inline;
    margin: 0;
}

.fms-mg-pricing__community-link {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #1c1c1c;
    text-decoration: underline;
    cursor: pointer;
}

/* --- Level-aware cards for a logged-in member. --- */
.fms-mg-pricing__tier.is-current {
    border-color: #1c1c1c;
}

.fms-mg-pricing__ribbon--current {
    background: #1c1c1c;
    color: #fff;
}

.fms-mg-pricing .fms-mg-btn.is-disabled {
    background: #e4e4e6;
    border-color: #e4e4e6;
    color: #6e6e73;
    cursor: default;
    pointer-events: none;
}

.fms-mg-pricing__tier-cta form {
    margin: 0;
}

/* ==========================================================================
   Team pricing page — [fms_team_pricing] (mirrors the published
   /membership-packages design). Sits inside .fms-mg-pricing so the yellow
   bands, diagonal cut, buttons, and FAQ accordion all inherit from above.
   ========================================================================== */

/* --- Hero benefit columns on the yellow band. --- */
.fms-mg-teamp__benefits {
    max-width: 1168px;
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.fms-mg-teamp__benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    margin: 0 0 2rem;
}

.fms-mg-teamp__icon {
    display: block;
    margin: 0 0 0.9rem;
    color: #1c1c1c;
}

.fms-mg-teamp__benefit-copy {
    margin: 0;
    max-width: 280px;
    font-family: var(--fms-mg-sans);
    color: #1c1c1c;
    line-height: 1.5;
}

.fms-mg-teamp__benefit-copy strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}

/* "See all benefits ∨" expander. */
.fms-mg-teamp__all summary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    cursor: pointer;
    font-family: var(--fms-mg-sans);
    font-weight: 700;
    color: #1c1c1c;
}

.fms-mg-teamp__all summary::-webkit-details-marker {
    display: none;
}

.fms-mg-teamp__all summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #1c1c1c;
    border-bottom: 2px solid #1c1c1c;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.15s ease;
}

.fms-mg-teamp__all[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

.fms-mg-teamp__all .fms-mg-checklist {
    max-width: 640px;
    margin-top: 1rem;
}

/* --- White "Sign up now" section: everything centered. --- */
.fms-mg-teamp__signup {
    max-width: 1168px;
    margin: 2.5rem auto 3rem;
    padding: 0 1.5rem;
    text-align: center;
}

.fms-mg-teamp__signup-heading {
    margin: 0 0 1.5rem;
    font-family: var(--fms-mg-display);
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #1c1c1c;
}

.fms-mg-teamp__signup-heading .fms-mg-pricing__faqs-mark {
    margin: 0.3rem auto 0;
}

.fms-mg-teamp__signup-intro {
    margin: 0 0 2rem;
    font-family: var(--fms-mg-sans);
    color: #1c1c1c;
    line-height: 1.6;
}

.fms-mg-teamp__select-label {
    margin: 0 0 0.9rem;
    font-family: var(--fms-mg-sans);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1c1c1c;
}

/* Rectangular − n + stepper. */
.fms-mg-teamp__stepper {
    display: inline-flex;
    align-items: stretch;
    margin: 0 0 1.5rem;
    border: 1px solid #1c1c1c;
    background: #fff;
}

.fms-mg-teamp__step {
    width: 2.75rem;
    padding: 0.5rem 0;
    border: 0;
    background: transparent;
    color: #1c1c1c;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.fms-mg-teamp__step:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.05);
}

.fms-mg-teamp__step:disabled {
    opacity: 0.35;
    cursor: default;
}

.fms-mg-teamp__count {
    min-width: 3.25rem;
    padding: 0.5rem 0.5rem;
    font-family: var(--fms-mg-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #1c1c1c;
}

/* "3 seats at $280 per user per year, totaling $840 annually" — serif prose. */
.fms-mg-teamp__price {
    margin: 0 0 1.75rem;
    font-family: var(--fms-mg-display);
    font-size: 1.35rem;
    line-height: 1.5;
    color: #1c1c1c;
}

.fms-mg-teamp__cta {
    margin: 0 0 1.25rem;
}

.fms-mg-teamp__fineprint {
    margin: 0;
    font-family: var(--fms-mg-sans);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #1c1c1c;
}

.fms-mg-teamp__fineprint a {
    color: var(--fms-mg-accent);
    text-decoration: underline;
}

/* --- White contact-form section. --- */
.fms-mg-teamp__ask {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1.5rem;
}

.fms-mg-teamp__ask-heading {
    margin: 0 0 2rem;
    text-align: center;
    font-family: var(--fms-mg-sans);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1c1c1c;
}

.fms-mg-teamp__ask-sent {
    text-align: center;
    font-family: var(--fms-mg-sans);
    color: #1c1c1c;
}

.fms-mg-teamp__form .fms-mg-field textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.fms-mg-teamp__form .fms-mg-field textarea:focus {
    outline: 2px solid var(--fms-mg-accent);
    outline-offset: 1px;
    border-color: var(--fms-mg-accent);
}

.fms-mg-teamp__form-message {
    margin: 0 0 1.5rem;
}

.fms-mg-teamp__form-submit {
    margin: 0;
}

.fms-mg-teamp__submit {
    width: 100%;
}

@media (max-width: 820px) {
    .fms-mg-teamp__benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

@media (max-width: 820px) {
    /* Softer diagonal on small screens; illustration drops below the copy. */
    .fms-mg-pricing__band--top {
        padding-bottom: 5.5rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%);
    }

    .fms-mg-pricing__team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .fms-mg-pricing__team-art img {
        margin: 0 auto;
        max-height: 340px;
    }
}
