/* ============================================================
   FREELY — FreelyPage.cshtml only
   Prefix: fr-

   Same vertical scale as the Accounts, Cards and Financial Inclusion pages:
   40px between sections, 24px from a heading to its content, 16px between cards
   in a row.

   The cards restate the Accounts card design with literal values rather than
   linking accounts.css: that file carries a global reset (*, body, h1-h6, img)
   and redefines :root tokens the globally loaded sheets also define, so loading
   it here would repaint the header and footer. Values mirror .accounts-card* —
   1px #CBCBCB border, 24px radius, image 320 / 280 >=768 / 227 >=1024, 22px/400
   #003B70 title, #F9FAFB toggle at 11px radius with a 14px/400 label, rows at
   300 weight #6A7282 with the 18px teal check.
   ============================================================ */
.fr-page {
    --fr-section-gap: 0px;
    --fr-heading-gap: 16px;   /* one gap under every section title */
    --fr-card-gap: 16px;
    --fr-navy: #003B70;
    --fr-teal: #00C4B3;
    --fr-green: #8BDC64;
    --fr-body: #6A7282;
    display: flex;
    flex-direction: column;
    gap: var(--fr-section-gap);
   /* padding: var(--fr-section-gap) 30px;*/
    background: #FFFFFF;
}

.fr-section {
    display: flex;
    flex-direction: column;
    gap: var(--fr-heading-gap);
}

/* ── Hero ──
   .Hero_Content is z-index:2, so the title stays above the scrim. The dark end
   follows the text, which rtl.css moves to the right in Arabic. */
.fr-hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #003B70 0%, rgba(0, 29, 56, 0.72) 45%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.5;
}

[dir="rtl"] .fr-hero__overlay {
    background: linear-gradient(270deg, #003B70 0%, rgba(0, 29, 56, 0.72) 45%, rgba(0, 0, 0, 0) 100%);
}

/* The teal tail of the hero title runs on from the white part, so this is inline
   rather than the global .Hero_Title_Accent, which is display:block !important. */
.fr-hero__accent {
    color: #00C4B3;
}
.Link{
    font-size:16px;
    font-weight:400;
    text-decoration:underline;
    
}
/* ============================================================
   CARDS (Accounts design)
   ============================================================ */
.fr-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--fr-card-gap);
    align-items: start;
}

/* A lone card on the last row sits centred rather than stranded left */
    .fr-card-grid > .fr-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 8px);
        margin-inline: auto;
    }

.fr-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background-color: #FFFFFF;
    border: 1px solid #CBCBCB;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.08);
}

.fr-card__image {
    position: relative;
    width: 100%;
    height: 320px;
    background-color: #F9FAFB;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@media (min-width: 768px) {
    .fr-card__image {
        height: 280px;
    }
}

@media (min-width: 1024px) {
    .fr-card__image {
        height: 227px;
        border-top-left-radius: 23px;
        border-top-right-radius: 23px;
    }
}

.fr-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 24px;
    margin-top: 10px;
}

@media (min-width: 768px) {
    .fr-card__content {
        padding: 15px;
    }
}

.fr-card__header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fr-card__title {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--fr-navy);
}

.fr-card__details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fr-card__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px;
    background: #F9FAFB;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-family: 'Co Headline', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: var(--fr-navy);
    text-align: start;
    transition: background-color 300ms ease-in-out;
}

    .fr-card__toggle:hover {
        background-color: #F1F4F7;
    }

    .fr-card__toggle:focus-visible {
        outline: 2px solid var(--fr-teal);
        outline-offset: -2px;
    }

.fr-card__toggle-label {
    flex: 1;
    min-width: 0;
}

.fr-card__toggle-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--fr-navy);
    transition: transform 300ms ease-in-out;
}

.fr-card__toggle[aria-expanded="true"] .fr-card__toggle-icon {
    transform: rotate(180deg);
}

.fr-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}

    .fr-card__list.is-expanded {
        max-height: 1500px;
        opacity: 1;
        padding: 10px;
    }

.fr-card__list-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.fr-card__list-text {
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 20px;
    color: var(--fr-body);
}

/* A point's text can carry a pasted <a class="DownloadLink">, same as the
   Cards page — matches .DownloadLink in Cards.css so a link looks the same
   wherever an editor pastes one. */
.fr-card__list-text .DownloadLink {
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
    color: #003B70;
}

/* Teal disc with a white tick, drawn the same way as on the Accounts cards */
.fr-card__list-icon {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    background-color: var(--fr-teal);
    border-radius: 50%;
}

    .fr-card__list-icon::after {
        content: '';
        position: absolute;
        top: 5px;
        left: 3px;
        width: 8px;
        height: 5px;
        border: solid #FFFFFF;
        border-width: 0 0 1px 1px;
        transform: rotate(-45deg);
    }

/* Green pill, centred at the foot of the card. Wider than the 40% used on the
   three-per-row Accounts grid because these cards sit two per row. */
.fr-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    margin: auto;
    margin-bottom: 20px;
    padding: 10px 30px;
    border-radius: 9999px;
    background: var(--fr-green);
    color: #F7FAFA;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 300ms ease-in-out, transform 300ms ease-in-out;
}

    .fr-card__btn:hover {
        background: #7ACF52;
        color: #F7FAFA;
        transform: translateY(-2px);
    }

/* ── Carousel: arrows and swiping are mobile only ── */
.fr-carousel__controls {
    display: none;
}

.fr-carousel__nav {
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: var(--fr-navy);
    color: #FFFFFF;
    cursor: pointer;
}

    .fr-carousel__nav:disabled {
        background: #DDDDDD;
        cursor: not-allowed;
    }

    [dir="rtl"] .fr-carousel__nav i {
        transform: scaleX(-1);
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .fr-page {
        --fr-section-gap: 28px;
        --fr-heading-gap: 16px;
        padding: 28px 16px;
    }

    /* One card per swipe, scrollbar hidden — arrows do the paging */
    .fr-carousel .fr-card-grid[data-fr-carousel-track] {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: 100%;
        grid-template-columns: none;
        gap: 15px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
        scrollbar-width: none;
    }

        .fr-carousel .fr-card-grid[data-fr-carousel-track]::-webkit-scrollbar {
            display: none;
        }

        .fr-carousel .fr-card-grid[data-fr-carousel-track] .fr-card {
            scroll-snap-align: start;
        }

    /* The centring rule would shrink the single card inside the swipe track,
       and grid-column: 1 / -1 would pull it into the first swipe slot ahead
       of the cards before it — undo both so DOM order matches swipe order. */
    .fr-carousel .fr-card-grid[data-fr-carousel-track] > .fr-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: auto;
        margin-inline: 0;
    }

    .fr-carousel__controls {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 16px;
    }

    /* Nearly the full card width on a phone, as drawn */
    .fr-card__btn {
        width: 85%;
    }
}

/* ============================================================
   REQUEST FORM
   ============================================================ */
.fr-form {
    padding: 48px 30px;
    /* Decorative line art, same treatment as the Accounts/Cards apply form:
       background-color is the fallback if the image fails to paint. */
    background-color: var(--fr-navy);
    background-image: url("/assets/NewFolder/FormBg.svg");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: auto;
}

.fr-form__inner {
    max-width: 972px;
    margin-inline: auto;
}

.fr-form__title {
    margin: 0 0 32px;
    font-family: 'Co Headline', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 1.2;
    color: #FFFFFF;
    text-align: center;
}

.fr-form__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fr-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.fr-form__field input,
.fr-form__field select {
    width: 100%;
    height: 56px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    background: #FFFFFF;
    color: var(--fr-navy);
    font-family: 'Co Headline', sans-serif;
    font-size: 12px;
    appearance: none;
    -webkit-appearance: none;
}

.fr-form__field input::placeholder {
    color: #7A8CA3;
}

.fr-form__field select:invalid,
.fr-form__field select:has(option[value=""]:checked) {
    color: #7A8CA3;
}

.fr-form__field select option {
    color: var(--fr-navy);
}

.fr-form__submit-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.fr-form__submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 40px;
    border: 0;
    border-radius: 999px;
    background: #7BDC4F;
    color: #FFFFFF;
    font-family: 'Co Headline', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity .2s;
}

.fr-form__submit-btn:hover {
    opacity: .88;
}

.fr-form__note {
    margin: 0;
    font-family: 'Co Headline', sans-serif;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
}

@media (max-width: 768px) {
    .fr-form {
        padding: 32px 20px;
        background-size: contain;
    }

    .fr-form__title {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .fr-form__grid {
        grid-template-columns: 1fr;
    }
}
