/* ==========================================================================
   Sales funnel UI: resume-enrolment bar, USP strip, course enrol box,
   mobile sticky CTA, checkout reassurance. Loaded from SiteMaster.master.
   ========================================================================== */

:root {
    --acs-orange: #e7863c;
    --acs-orange-dark: #c96d25;
    --acs-green: #3c9d5d;
    --acs-ink: #222;
    --acs-muted: #666;
    --acs-panel: #f6f6f6;
}

/* ---- Resume enrolment bar (abandoned-cart recovery) ---- */
.acs-resume {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: 8px 16px; padding: 12px 16px; background: #fff7ef;
    border-bottom: 2px solid var(--acs-orange); text-align: center; font-size: 16px; color: var(--acs-ink);
}
.acs-resume strong { font-weight: 700; }
.acs-resume .btn { background: var(--acs-orange); border: 0; color: #fff; font-weight: 700; padding: 8px 18px; border-radius: 6px; }
.acs-resume .btn:hover, .acs-resume .btn:focus { background: var(--acs-orange-dark); color: #fff; }

/* ---- USP / trust strip ---- */
.acs-usps {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px;
    margin: 10px 0 30px; padding: 18px 16px; background: var(--acs-panel); border-radius: 8px;
    list-style: none;
}
.acs-usps li { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; color: var(--acs-ink); }
.acs-usps .fa { color: var(--acs-orange); font-size: 20px; }
.acs-usps a { color: inherit; text-decoration: underline; }

/* ---- Course page: enrol box ---- */
@media (min-width: 992px) {
    /* flex row so the right column is full height and the box can stick */
    .course-layout { display: flex; align-items: stretch; }
    .course-layout:before, .course-layout:after { display: none; }
    .course-layout > [class*="col-"] { float: none; }
    .course-layout .enrolNow { position: sticky; top: 90px; }
}
.enrolNow .enrol-price-label { display: block; margin: 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--acs-muted); }
.enrolNow #Step2 p.price { margin-top: 0; }
.enrolNow .btn-enrol {
    display: block; width: 100%; padding: 14px 10px; font-size: 20px; font-weight: 700;
    background: var(--acs-orange); border: 0; border-radius: 6px; color: #fff; white-space: normal;
}
.enrolNow .btn-enrol:hover, .enrolNow .btn-enrol:focus { background: var(--acs-orange-dark); color: #fff; }
.enrol-trust { list-style: none; margin: 14px 10px 6px; padding: 0; font-size: 14px; text-align: left; }
.enrol-trust li { position: relative; padding: 3px 0 3px 24px; }
.enrol-trust li:before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 3px; color: var(--acs-green); }
.enrol-help { margin: 12px 10px 4px; padding-top: 12px; border-top: 1px solid #ddd; font-size: 14px; text-align: left; }
.enrol-help a { font-weight: 600; }

/* ---- Course page: mobile sticky CTA ---- */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 16px; background: #fff; box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}
.mobile-cta.is-hidden { transform: translateY(110%); }
.mobile-cta .mobile-cta-price { font-size: 18px; font-weight: 700; color: var(--acs-ink); line-height: 1.2; }
.mobile-cta .mobile-cta-price small { display: block; font-size: 12px; font-weight: 400; color: var(--acs-muted); }
.mobile-cta .btn { background: var(--acs-orange); border: 0; color: #fff; font-weight: 700; font-size: 17px; padding: 10px 22px; border-radius: 6px; }
.mobile-cta-spacer { height: 70px; }
@media (min-width: 992px) { .mobile-cta, .mobile-cta-spacer { display: none; } }
@media (prefers-reduced-motion: reduce) { .mobile-cta { transition: none; } }

/* ---- Enrolment steps / checkout ---- */
.funnel-cta { margin: 20px 0; }
.funnel-cta .btn { padding: 12px 28px; font-size: 18px; font-weight: 700; white-space: normal; }
.funnel-reassure { margin: 10px 0 0; font-size: 14px; color: var(--acs-muted); }
.funnel-reassure .fa { color: var(--acs-green); margin-right: 4px; }
.funnel-notes { margin-top: 30px; font-size: 13px; color: var(--acs-muted); }
.funnel-notes h4 { font-size: 15px; }
.checkout-optional-heading { margin: 25px 0 5px; font-size: 16px; font-weight: 700; }
.checkout-optional-heading small { font-weight: 400; color: var(--acs-muted); }
.consent-missing { outline: 2px solid #d9534f; outline-offset: 2px; }
.payment-redirect { padding: 40px 16px; text-align: center; font-size: 18px; }
.payment-redirect .fa { color: var(--acs-green); }

/* ---- Course listing cards (courses/list_courses.aspx) ---- */
.product-list { display: grid; gap: 18px; margin-bottom: 30px; }
.product-list .productItem {
    display: flex; flex-direction: column; margin: 0;
    background: #fff; border: 1px solid #e5e5e5; border-top: 4px solid var(--acs-orange);
    border-radius: 8px; overflow: hidden; line-height: 1.5;
}
.product-list .productItem__main { flex: 1; min-width: 0; padding: 16px 18px 6px; }
.product-list h2.productTitle,
.product-list .productItem.qualification h2.productTitle { margin: 0 0 8px; padding: 0; background: none; font-family: inherit; }
.product-list h2.productTitle a,
.product-list .productItem.qualification h2.productTitle a { color: var(--acs-ink); font-size: 20px; line-height: 1.3; }
.product-list h2.productTitle a:hover { color: var(--acs-orange-dark); }
.product-list div.productDetails { padding: 0; font-size: 15px; color: #444; overflow-wrap: break-word; }
.product-list div.productDetails img { max-width: 100%; height: auto; }
.product-list .productItem__side { padding: 12px 18px 18px; background: var(--acs-panel); }
.product-list .productMeta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--acs-ink); }
.product-list .productMeta li { display: flex; align-items: center; gap: 6px; }
.product-list .productMeta li:empty { display: none; }
.product-list .productMeta img { width: 22px; height: auto; margin: 0; position: static; }
.product-list .productItem__cta {
    display: block; width: 100%; padding: 11px 14px; font-size: 16px; font-weight: 700; white-space: normal;
    background: var(--acs-orange); border: 0; border-radius: 6px; color: #fff;
}
.product-list .productItem__cta:hover, .product-list .productItem__cta:focus { background: var(--acs-orange-dark); color: #fff; }
@media (min-width: 768px) {
    .product-list .productItem { flex-direction: row; }
    .product-list .productItem__main { padding: 20px 22px; }
    .product-list .productItem__side {
        flex: 0 0 250px; display: flex; flex-direction: column; justify-content: space-between;
        padding: 20px; border-left: 1px solid #eee;
    }
    .product-list .productMeta { flex-direction: column; gap: 10px; }
}

/* ---- Checkout layout (courses/checkout.aspx) ---- */
.checkout-layout { margin-top: 10px; }
@media (min-width: 992px) {
    .checkout-layout { display: flex; align-items: stretch; }
    .checkout-layout:before, .checkout-layout:after { display: none; }
    .checkout-layout > [class*="col-"] { float: none; }
    .checkout-summary-col { order: 2; }
    .checkout-form-col { order: 1; }
    .order-summary { position: sticky; top: 90px; }
}
.order-summary {
    margin-bottom: 20px; padding: 18px; background: var(--acs-panel);
    border: 1px solid #e5e5e5; border-radius: 8px;
}
.order-summary__title { margin: 0 0 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--acs-muted); }
.order-summary h1.order-summary__course { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.order-summary__rows { margin: 0 0 12px; font-size: 14px; }
.order-summary__rows dt { font-weight: 400; color: var(--acs-muted); }
.order-summary__rows dd { margin: 0 0 8px; font-weight: 600; }
.order-summary__change { margin-left: 4px; font-size: 13px; font-weight: 400; }
.order-summary__total {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 12px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; font-size: 16px;
}
.order-summary__total strong { font-size: 22px; color: var(--acs-ink); }
.order-summary__note { margin: 8px 0 0; font-size: 13px; color: var(--acs-muted); }
.order-summary__promo { margin-top: 14px; }
.order-summary__promo-row { display: flex; gap: 6px; }
.order-summary__promo-row .form-control { min-width: 0; }
.order-summary .enrol-trust { margin: 14px 0 0; }

.checkout-section {
    margin-bottom: 18px; padding: 18px 18px 6px; background: #fff;
    border: 1px solid #e5e5e5; border-radius: 8px;
}
.checkout-section__title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.checkout-section__title span {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 28px;
    width: 28px; height: 28px; border-radius: 50%; background: var(--acs-orange); color: #fff; font-size: 15px;
}
.checkOut .field { margin-bottom: 14px; }
.checkOut .field-label { display: block; margin-bottom: 4px; font-weight: 600; }
.checkOut .field-label small { font-weight: 400; color: var(--acs-muted); }
.checkOut .form-control { height: 44px; font-size: 16px; } /* 16px stops iOS zooming into fields */
.field-hint { margin-top: 4px; font-size: 13px; color: var(--acs-muted); }
.dob-row { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; max-width: 460px; }
.checkout-check { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 14px; font-weight: 400; cursor: pointer; }
.checkout-check input { margin-top: 3px; }
.checkout-optional { padding-bottom: 18px; }
.checkout-optional summary { cursor: pointer; font-size: 16px; font-weight: 700; }
.checkout-optional summary small { font-weight: 400; color: var(--acs-muted); }
.checkout-optional[open] summary { margin-bottom: 14px; }
.pay-method {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-bottom: 16px; padding: 12px 14px; border: 2px solid var(--acs-green); border-radius: 8px; background: #f3faf5;
}
.pay-method label { margin: 0 0 0 6px; font-weight: 600; }
.pay-method .fa-lock { color: var(--acs-green); font-size: 18px; }
.consents { margin-bottom: 6px; }
.consent-item { padding: 6px 4px; font-size: 14px; }
.consent-item label { display: inline; font-weight: 400; }
.consent-item .field-hint { margin-left: 22px; }
@media (max-width: 767px) {
    .btn-block-xs { display: block; width: 100%; white-space: normal; }
    .checkout-section { padding: 14px 14px 4px; }
}

/* ---- Payment plan cards (courses/shopping_cart.aspx) ---- */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 10px 0 6px; max-width: 900px; }
@media (min-width: 600px) { .plan-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.plan-card {
    position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0;
    padding: 16px; background: #fff; border: 2px solid #ddd; border-radius: 8px;
    font-weight: 400; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.plan-card:hover { border-color: #bbb; }
.plan-card:has(input:checked) { border-color: var(--acs-orange); box-shadow: 0 0 0 3px rgba(231, 134, 60, 0.18); }
.plan-card__head { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.plan-card__head input { margin: 0; width: 18px; height: 18px; }
.plan-card__badge {
    align-self: flex-start; padding: 2px 10px; border-radius: 999px;
    background: var(--acs-green); color: #fff; font-size: 13px; font-weight: 700;
}
.plan-card__today { font-size: 15px; }
.plan-card__today strong { display: block; font-size: 24px; color: var(--acs-ink); }
.plan-card__schedule { list-style: none; margin: 0; padding: 0; font-size: 14px; color: #444; }
.plan-card__schedule .note { color: var(--acs-muted); font-size: 13px; }
.plan-card__schedule-none { font-size: 14px; color: #444; }
.plan-card__total { margin-top: auto; padding-top: 8px; border-top: 1px solid #eee; font-weight: 700; }
.plan-card__code { font-size: 12px; color: var(--acs-muted); }
@media (prefers-reduced-motion: reduce) { .plan-card { transition: none; } }

/* ---- Cart small print (courses/shopping_cart.aspx) ---- */
p.price-footnote { margin: 4px 0; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--acs-muted); }
p.price-footnote .fa { margin-right: 6px; }
.cart-info {
    max-width: 900px; margin: 30px 0 10px; padding: 16px 18px;
    background: var(--acs-panel); border-radius: 8px;
}
.cart-info__title { margin: 0 0 12px; font-size: 15px; font-weight: 700; color: var(--acs-ink); }
.cart-info__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-info__list li { display: flex; gap: 12px; align-items: flex-start; }
.cart-info__list .fa { flex: 0 0 20px; margin-top: 2px; font-size: 17px; text-align: center; color: var(--acs-orange); }
.cart-info__list strong { display: block; font-size: 14px; color: var(--acs-ink); }
.cart-info__list span { display: block; font-size: 13px; line-height: 1.5; color: #555; }
.cart-info__list a { color: inherit; text-decoration: underline; }

/* ---- Overrides for site-wide theme rules that leak into the cards ----
   css/style.css has "label span { color: red }" (meant for required asterisks) and
   style-gold.css makes every <p> semi-bold black. Scoped here so other pages are untouched. */
label.plan-card span { color: var(--acs-ink); }
label.plan-card .plan-card__today { color: #444; }
label.plan-card .plan-card__schedule .note,
label.plan-card .plan-card__code { color: var(--acs-muted); }
label.plan-card .plan-card__badge { color: #fff; }
.product-list div.productDetails,
.product-list div.productDetails p { font-weight: 400; color: #444; }
.product-list .productItem__cta { font-size: 15px; letter-spacing: 0.02em; }
.checkOut label .order-summary__change,
.checkOut .consent-item label span { color: inherit; }
@media (max-width: 479px) {
    .acs-usps { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---- Primary enrolment CTAs: solid orange (the theme's .btn-success is a white outline button) ---- */
.funnel-cta .btn-success {
    background: var(--acs-orange); border: 0; border-radius: 6px; color: #fff;
    padding: 14px 30px; font-size: 18px; font-weight: 700; box-shadow: 0 2px 0 var(--acs-orange-dark);
}
.funnel-cta .btn-success:hover, .funnel-cta .btn-success:focus, .funnel-cta .btn-success:active {
    background: var(--acs-orange-dark); color: #fff; border: 0;
}

/* ---- Progress steps on phones/tablets: one row of numbers, with only the current step named ---- */
@media screen and (max-width: 991px) {
    .form-wizard .form-wizard-steps { flex-wrap: nowrap; margin-top: -20px; }
    .form-wizard .form-wizard-steps li {
        width: auto; flex: 0 0 auto; height: 44px; margin-bottom: 0;
        padding: 0 14px 0 22px; font-size: 0; /* hides the label text; the number keeps its own size */
    }
    .form-wizard .form-wizard-steps li span { margin-right: 0; font-size: 15px; height: 26px; width: 26px; min-width: 26px; line-height: 26px; }
    .form-wizard .form-wizard-steps li.active { flex: 1 1 auto; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
    .form-wizard .form-wizard-steps li.active span { margin-right: 8px; }
    /* fixed-size arrow notch: a percentage notch grows with the wide active step and covers its number */
    .form-wizard .form-wizard-steps li { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%); margin: 0 -5px; }
}
@media screen and (max-width: 479px) {
    /* too narrow for any label: numbers only; each section below is headed with what to do */
    .form-wizard .form-wizard-steps li.active { font-size: 0; flex: 0 0 auto; }
    .form-wizard .form-wizard-steps li.active span { margin-right: 0; }
    .form-wizard .form-wizard-steps { justify-content: center; }
}

/* ---- Date of birth selects need room on narrow phones ---- */
.dob-row .form-control { padding: 6px 8px; }
@media (max-width: 479px) {
    .dob-row { grid-template-columns: 0.9fr 1.5fr 1.1fr; gap: 6px; }
}
