.frc-page{--blue:#ff4521;--blue-dark:#d93819;--ink:#263244;--muted:#6c778b;background:#fff7f4;color:var(--ink);font-family:"Montserrat",Arial,sans-serif}.frc-page *{box-sizing:border-box}.frc-container{width:min(1120px,calc(100% - 36px));margin:auto}.frc-hero{padding:72px 0;background:linear-gradient(110deg,#e53617 0%,#ff4521 58%,#ff7855 100%);color:#fff;text-align:center}.frc-kicker{display:inline-block;margin-bottom:13px;color:#fff0ea;font-size:12px;font-weight:800;letter-spacing:.18em}.frc-hero h1{margin:0 0 17px;font-size:42px;font-weight:500}.frc-hero p{max-width:700px;margin:auto;color:rgba(255,255,255,.88);font-size:16px;line-height:1.65}.frc-section{padding:55px 0}.frc-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,.85fr);gap:24px;align-items:stretch}.frc-card{padding:28px;border:0;border-radius:16px;background:#fff;box-shadow:0 8px 28px rgba(130,39,20,.09)}.frc-card h2{margin:0;color:var(--ink);font-size:21px}.frc-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px}.frc-card-head>span{padding:6px 10px;border-radius:7px;background:#fff0ea;color:var(--blue);font-size:11px;font-weight:800}.frc-form label{display:block}.frc-form label>span{display:block;margin-bottom:8px;color:#4c576a;font-size:12px;font-weight:650}.frc-form input,.frc-form select{width:100%;height:45px;padding:0 13px;border:1px solid #dce2eb;border-radius:9px;background:#fff;color:var(--ink);font:inherit;font-size:13px;outline:none}.frc-form input:focus,.frc-form select:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(255,69,33,.16)}.frc-form>label{margin-bottom:16px}.frc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.frc-help{margin:20px 0 0;padding:12px 14px;border-radius:9px;background:#fff0ea;color:#8a4a3c;font-size:12px;line-height:1.55}.frc-help i{margin-right:5px;color:var(--blue)}
.frc-result {
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 92% 25%, rgba(255, 107, 76, .42), transparent 48%), linear-gradient(145deg, #776a67, #c92704);
    color: #fff;
}.frc-result h2{color:#fff}.frc-total{padding:30px 0;text-align:center}.frc-total small,.frc-total span{display:block;color:rgba(255,255,255,.78);font-size:12px}.frc-total strong{display:block;margin:10px 0 7px;font-size:39px}.frc-total span#frcMonthlyVnd{display:flex;justify-content:center;align-items:baseline;gap:4px;white-space:nowrap}.frc-total span .frc-vnd-amount{display:inline;min-height:0;color:inherit;font-size:inherit}.frc-total span .frc-vnd-unit{display:inline;margin:0;color:inherit;font-size:inherit;font-weight:700}.frc-result-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:25px}.frc-result-grid div{padding:11px 6px;border-radius:9px;background:rgba(255,255,255,.13);text-align:center}.frc-result-grid span,.frc-result-grid b{display:block}.frc-result-grid span{min-height:30px;color:rgba(255,255,255,.78);font-size:10px}.frc-result-grid b{font-size:13px}.frc-cta{display:flex;align-items:center;justify-content:center;gap:9px;margin-top:auto;padding:13px;border-radius:9px;background:#fff;color:var(--blue);font-size:12px;font-weight:750;text-decoration:none}.frc-cta:hover{color:var(--blue-dark);text-decoration:none}.frc-note{padding:0 0 60px}.frc-note .frc-container{padding:25px 28px;border-left:4px solid var(--blue);border-radius:0 12px 12px 0;background:#fff}.frc-note h2{margin:0 0 12px;font-size:18px}.frc-note p{margin:6px 0;color:var(--muted);font-size:13px;line-height:1.6}
@media(max-width:900px){.frc-grid{grid-template-columns:1fr}.frc-result{min-height:420px}}
@media(max-width:600px){.frc-hero{padding:55px 0}.frc-hero h1{font-size:32px}.frc-section{padding:35px 0}.frc-card{padding:20px}.frc-fields{grid-template-columns:1fr}.frc-result-grid{grid-template-columns:1fr}.frc-result-grid span{min-height:0}.frc-result{min-height:0}.frc-total strong{font-size:34px}}

/* Layered motion for the rebate calculator. */
.frc-hero .frc-container.aos-animate .frc-kicker,
.frc-hero .frc-container.aos-animate h1,
.frc-hero .frc-container.aos-animate p,
.frc-form.aos-animate .frc-card-head,
.frc-form.aos-animate > label,
.frc-form.aos-animate .frc-fields > label,
.frc-form.aos-animate .frc-help,
.frc-result.aos-animate h2,
.frc-result.aos-animate .frc-total,
.frc-result.aos-animate .frc-result-grid > div,
.frc-result.aos-animate .frc-cta {
    animation: frcItemReveal .52s ease-out both;
}

.frc-hero .frc-container.aos-animate h1 { animation-delay: .12s; }
.frc-hero .frc-container.aos-animate p { animation-delay: .22s; }
.frc-form.aos-animate > label { animation-delay: .14s; }
.frc-form.aos-animate .frc-fields > label:nth-child(1) { animation-delay: .22s; }
.frc-form.aos-animate .frc-fields > label:nth-child(2) { animation-delay: .30s; }
.frc-form.aos-animate .frc-fields > label:nth-child(3) { animation-delay: .38s; }
.frc-form.aos-animate .frc-fields > label:nth-child(4) { animation-delay: .46s; }
.frc-form.aos-animate .frc-help { animation-delay: .54s; }
.frc-result.aos-animate .frc-total { animation-delay: .14s; }
.frc-result.aos-animate .frc-result-grid > div:nth-child(1) { animation-delay: .24s; }
.frc-result.aos-animate .frc-result-grid > div:nth-child(2) { animation-delay: .32s; }
.frc-result.aos-animate .frc-result-grid > div:nth-child(3) { animation-delay: .40s; }
.frc-result.aos-animate .frc-cta { animation-delay: .50s; }

@keyframes frcItemReveal {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .frc-page [data-aos],
    .frc-page [data-aos] * {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Match the calculator opening slide with the FXTM rebate pages. */
.frc-page .frc-hero {
    background-color: #52555d !important;
    background-image: url('../img/web/bg_about03.png') !important;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* Public FXTM calculator: keep the trading-information fields in two columns on phones. */
@media (max-width: 768px) {
    .frc-page .frc-form .frc-top-fields,
    .frc-page .frc-form .frc-fields {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 10px;
        row-gap: 12px;
    }

    .frc-page .frc-form .frc-top-fields label,
    .frc-page .frc-form .frc-fields label {
        min-width: 0;
        margin-bottom: 0;
    }

    .frc-page .frc-form input,
    .frc-page .frc-form select {
        min-width: 0;
        height: 42px;
        padding-right: 7px;
        padding-left: 7px;
        font-size: 12px;
    }
}
.frc-container h2{
    font-weight:700;
}
@media (max-width: 768px) {
    body: has(.frc-page) .site-breadcrumb {
        margin-top: 90px;
    }

    .frc-page {
        max-width: 100%;
        overflow-x: hidden;
    }

    .frc-container {
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .frc-hero {
        padding: 40px 0;
        text-align: left;
    }

    .frc-kicker {
        margin-bottom: 10px;
        font-size: 11px;
        line-height: 1.5;
    }

    .frc-hero h1 {
        margin-bottom: 15px;
        font-size: 30px;
        line-height: 1.2;
    }

    .frc-hero p {
        font-size: 14px;
        line-height: 1.7;
    }

    .frc-section {
        padding: 24px 0;
    }

    .frc-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .frc-card {
        min-width: 0;
        min-height: 0;
        height: auto;
        padding: 20px 16px;
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(31, 48, 86, .07);
    }

    .frc-card-head {
        gap: 12px;
        margin-bottom: 22px;
    }

    .frc-card h2 {
        font-size: 18px;
        line-height: 1.35;
    }

    .frc-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .frc-form > label,
    .frc-fields label {
        margin-bottom: 17px;
    }

    .frc-form input,
    .frc-form select {
        height: 48px;
        font-size: 16px;
    }

    .frc-result {
        min-height: 0;
        padding: 22px 16px;

    }

    .frc-total {
        padding: 24px 0;
    }

    .frc-total strong {
        margin: 8px 0;
        font-size: clamp(30px, 10vw, 38px);
        overflow-wrap: anywhere;
    }

    .frc-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 18px;
    }

    .frc-result-grid div {
        min-width: 0;
        padding: 12px 8px;
    }

    .frc-result-grid div:last-child {
        grid-column: 1 / -1;
    }

    .frc-result-grid span {
        min-height: 0;
        margin-bottom: 6px;
    }

    .frc-cta {
        min-height: 48px;
        padding: 12px 14px;
        text-align: center;
    }

    .frc-note {
        padding: 0 0 28px;
    }

    .frc-note .frc-container {
        padding: 20px 16px;
        border-left-width: 3px;
        border-radius: 0 10px 10px 0;
    }

    .frc-note h2 {
        font-size: 17px;
        line-height: 1.4;
    }

    .frc-note p {
        overflow-wrap: anywhere;
    }

    .frc-page table {
        display: block;
        width: 100% !important;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .frc-page img {
        max-width: 100%;
        height: auto;
    }
}

.frc-top-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}


@media (max-width: 600px) {
    .frc-top-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Result breakdown follows the supplied reference while retaining the existing card. */
.frc-result-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.frc-result-grid .frc-result-half {
    grid-column: span 3;
}

.frc-result-grid .frc-result-third {
    grid-column: span 2;
}

.frc-result-grid .frc-result-half span {
    min-height: 0;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .frc-result-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .frc-result-grid div:last-child {
        grid-column: span 2;
    }
}

/* Subtle elevation for calculator cards and result tiles. */
.frc-card,
.frc-result-grid > div {
    transition: box-shadow .24s ease, transform .24s ease;
}

.frc-card:hover {
    box-shadow: 0 16px 38px rgba(174, 48, 22, .18);
    transform: translateY(-2px) !important;
}

.frc-result-grid > div:hover {
    box-shadow: 0 10px 22px rgba(174, 48, 22, .24);
    transform: translateY(-2px) !important;
}

@media (prefers-reduced-motion: reduce) {
    .frc-card,
    .frc-result-grid > div {
        transition: none;
    }

    .frc-card:hover,
    .frc-result-grid > div:hover {
        transform: none !important;
    }
}
