/* Layout 4 – two-face toggle campaign page (templates/layouts/layout-four.php) */

.gnt {
    --gnt-navy: #03196e;
    --gnt-red: #da2738;
    --gnt-red-bright: #ee3048;
    --gnt-mint: #f0fdfa;
    --gnt-text: #4b5563;
    --gnt-heading-dark: #1a1a1a;
    --gnt-border: #e2e2e2;
    --gnt-image-border: #c6c6c6;
    font-family: 'Inter', sans-serif;
    color: var(--gnt-text);
}

.gnt *,
.gnt *::before,
.gnt *::after {
    box-sizing: border-box;
}

.gnt h1,
.gnt h2,
.gnt p {
    margin: 0;
}

.gnt-face[hidden] {
    display: none;
}

.gnt-container {
    width: 100%;
    max-width: 1288px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Banner */
.gnt-banner,
.gnt-banner__img {
    display: block;
    width: 100%;
}

.gnt-banner__img {
    height: auto;
}

/* Toggle bar */
.gnt-toggle-bar {
    background: var(--gnt-red);
    padding: 16px 34px;
}

.gnt-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.gnt-toggle__text {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    text-transform: uppercase;
    text-align: center;
}

.gnt-toggle__track {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-start;
    width: 60px;
    border-radius: 999px;
    background: #fff;
}

.gnt-toggle[aria-checked="true"] .gnt-toggle__track {
    justify-content: flex-end;
}

.gnt-toggle__knob {
    display: block;
    width: 30px;
    height: 30px;
}

.gnt-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 6px;
}

/* Shared text styles */
.gnt-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.gnt-stack--hero {
    gap: 24px;
}

.gnt-stack--intro {
    gap: 16px;
}

.gnt-heading {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gnt-eyebrow {
    color: var(--gnt-red-bright);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
}

.gnt-display {
    color: var(--gnt-navy);
    font-size: 44px;
    font-weight: 700;
    line-height: 58px;
}

.gnt-subtitle {
    color: var(--gnt-navy);
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
}

.gnt-h2 {
    color: var(--gnt-navy);
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
}

.gnt-quote {
    color: var(--gnt-navy);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-transform: uppercase;
}

.gnt-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--gnt-text);
    font-size: 18px;
    line-height: 29px;
}

.gnt-body a {
    color: var(--gnt-red);
    text-decoration: underline;
}

/* Buttons */
.gnt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--gnt-red);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.gnt-btn:hover,
.gnt-btn:focus-visible {
    background: #b81f2e;
    color: #fff;
}

.gnt-btn--inverse {
    padding: 14px 32px;
    border-radius: 100px;
    background: #fff;
    color: var(--gnt-red);
}

.gnt-btn--inverse:hover,
.gnt-btn--inverse:focus-visible {
    background: #ffe4e6;
    color: var(--gnt-red);
}

/* Hero + donation box */
.gnt-hero {
    padding: 80px 0;
    background: #fff;
}

.gnt-hero__inner {
    display: flex;
    align-items: center;
    gap: 72px;
}

.gnt-hero__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-width: 0;
}

.gnt-donate {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
    width: 480px;
    padding: 28px;
    border: 1px solid var(--gnt-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.08);
    scroll-margin-top: 140px;
}

.gnt-donate__title {
    color: var(--gnt-heading-dark);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    text-align: center;
    text-transform: uppercase;
}

.gnt-donate__element {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.gnt-donate:focus {
    outline: none;
}

.gnt-donate:focus-visible {
    outline: 3px solid var(--gnt-red);
    outline-offset: 4px;
}

/* Jummah sign-up box (templates/layouts/partials/jummah-box.php).
   Styled after the FundraiseUp element on the monthly face (values measured from its iframe), so both
   faces' boxes look alike. */
.gnt-jbox {
    --gnt-fu-navy: #03196e;
    --gnt-fu-line: rgba(3, 25, 110, 0.4);
    --gnt-fu-line-soft: rgba(3, 25, 110, 0.2);
    --gnt-fu-muted: rgba(3, 25, 110, 0.8);
    color: var(--gnt-fu-navy);
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 24px;
}

.gnt-jbox__card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-width: 360px;
    margin: 8px auto;
    padding: 20px;
    border: 2px solid #dedfe3;
    border-radius: 6px;
    background: #fff;
}

.gnt-jbox__card[data-gnt-step="details"] {
    gap: 16px;
}

.gnt-jbox__card[hidden] {
    display: none;
}

.gnt-jbox__card:focus {
    outline: none;
}

.gnt-jbox__label {
    padding-top: 8px; /* the element's heading sits 8px lower; margins on <p> are reset by .gnt p */
    font-weight: 400;
    text-align: center;
}

.gnt-jbox__pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: -4px;
}

.gnt-jbox__pill {
    height: 40px;
    margin: 0;
    padding: 0;
    border: 2px solid var(--gnt-fu-line-soft);
    border-radius: 6px;
    background: transparent;
    color: var(--gnt-fu-navy);
    font: inherit;
    line-height: 36px;
    cursor: pointer;
}

.gnt-jbox__pill:hover {
    border-color: var(--gnt-fu-line);
}

.gnt-jbox__pill[aria-checked="true"] {
    border-color: var(--gnt-red);
    background: rgba(218, 39, 56, 0.1);
    color: var(--gnt-red);
    font-weight: 600;
}

.gnt-jbox__pill:focus-visible,
.gnt-jbox__back:focus-visible {
    outline: 2px solid var(--gnt-fu-navy);
    outline-offset: 2px;
}

.gnt-jbox__amount {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 52px;
    padding-inline-start: 11px;
    border: 2px solid var(--gnt-fu-line);
    border-radius: 6px;
    cursor: text;
}

.gnt-jbox__amount:focus-within,
.gnt-jbox__float:focus-within {
    border-color: var(--gnt-fu-navy);
}

.gnt-jbox__currency {
    font-size: 21px;
    line-height: 26px;
}

.gnt-jbox__amount input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gnt-red);
    font: inherit;
    font-size: 36px;
    line-height: 44px;
    outline: none;
    box-shadow: none;
}

.gnt-jbox__amount input::placeholder {
    color: var(--gnt-fu-line);
    font-size: 16px;
}

.gnt-jbox__code {
    padding-inline: 12px 16px;
}

/* Field with its label inside the top edge, like the element's "Designation". */
.gnt-jbox__float {
    position: relative;
    display: block;
    height: 52px;
    border: 2px solid var(--gnt-fu-line);
    border-radius: 6px;
    background: #fff;
}

.gnt-jbox__float-label {
    position: absolute;
    inset-block-start: 4px;
    inset-inline-start: 11px;
    color: var(--gnt-fu-muted);
    font-size: 13px;
    line-height: 18px;
    pointer-events: none;
}

.gnt-jbox__float input,
.gnt-jbox__float select {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 19px 11px 3px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--gnt-fu-navy);
    font: inherit;
    outline: none;
    box-shadow: none;
    appearance: none;
}

.gnt-jbox__float--select select {
    padding-inline-end: 38px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%2303196e' stroke-opacity='.6' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
    cursor: pointer;
}

[dir="rtl"] .gnt-jbox__float--select select {
    background-position: left 16px center;
}

.gnt-jbox__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.gnt-jbox__payment {
    width: 100%;
}

.gnt-jbox__helper {
    color: var(--gnt-fu-muted);
    font-size: 14px;
    line-height: 20px;
}

.gnt-jbox__card[data-gnt-step="amount"] .gnt-jbox__helper {
    text-align: center;
}

.gnt-jbox__error {
    color: var(--gnt-red);
    font-size: 14px;
    line-height: 20px;
}

.gnt-jbox__error[hidden] {
    display: none;
}

.gnt-jbox__unavailable {
    text-align: center;
}

.gnt-jbox__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.gnt-jbox__back {
    flex-shrink: 0;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gnt-red);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

.gnt-jbox__done {
    text-align: center;
}

.gnt-jbox .gnt-btn--block {
    width: 100%;
    height: 56px;
    padding: 0 6px;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    cursor: pointer;
}

.gnt-jbox .gnt-btn--block[disabled] {
    opacity: 0.6;
    cursor: progress;
}

.gnt-donate__notice {
    padding: 16px;
    border: 1px dashed var(--gnt-red);
    border-radius: 12px;
    color: var(--gnt-red);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

/* Content sections */
.gnt-section {
    padding: 88px 0;
}

.gnt-bg--white {
    background: #fff;
}

.gnt-bg--mint {
    background: var(--gnt-mint);
}

.gnt-bg--navy {
    padding: 96px 0;
    background: var(--gnt-navy);
}

.gnt-bg--navy .gnt-h2,
.gnt-bg--navy .gnt-quote,
.gnt-bg--navy .gnt-body {
    color: #fff;
}

.gnt-section__inner {
    display: flex;
    align-items: center;
    gap: 72px;
}

.gnt-section__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    min-width: 0;
}

.gnt-section--text-image .gnt-media {
    order: 2;
}

.gnt-media {
    flex-shrink: 0;
    width: 500px;
    height: 440px;
    overflow: hidden;
    border: 1px solid var(--gnt-image-border);
    border-radius: 16px;
    background: linear-gradient(60.4deg, #cdece9 14.8%, #6fbfbd 88.9%);
}

.gnt-media__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gnt-section--centered .gnt-section__inner {
    justify-content: center;
}

.gnt-section--centered .gnt-section__text {
    flex: 0 1 860px;
    align-items: center;
    text-align: center;
}

/* Tablet & mobile */
@media (max-width: 1023px) {
    .gnt-toggle-bar {
        padding: 14px 16px;
    }

    .gnt-toggle {
        gap: 16px;
    }

    .gnt-toggle__text {
        font-size: 16px;
        line-height: 22px;
        text-align: start;
    }

    .gnt-hero {
        padding: 48px 0;
    }

    .gnt-hero__inner,
    .gnt-section__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
    }

    .gnt-donate {
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 20px;
    }

    .gnt-section,
    .gnt-bg--navy {
        padding: 56px 0;
    }

    .gnt-section--text-image .gnt-media {
        order: 0;
    }

    .gnt-media {
        width: 100%;
        height: auto;
        aspect-ratio: 500 / 440;
    }

    .gnt-section--centered .gnt-section__text {
        flex-basis: auto;
    }
}

@media (max-width: 767px) {
    .gnt-container {
        padding: 0 16px;
    }

    .gnt-eyebrow {
        font-size: 18px;
        line-height: 26px;
    }

    .gnt-display {
        font-size: 32px;
        line-height: 40px;
    }

    .gnt-subtitle {
        font-size: 18px;
        line-height: 26px;
    }

    .gnt-h2 {
        font-size: 26px;
        line-height: 32px;
    }

    .gnt-quote {
        font-size: 18px;
        line-height: 26px;
    }

    .gnt-body {
        gap: 16px;
        font-size: 16px;
        line-height: 26px;
    }

    .gnt-btn {
        width: 100%;
    }

    .gnt-jbox__row {
        grid-template-columns: 1fr;
    }
}
