/* Credit restoration page and contextual callouts shared with pricing/qualifications. */

.credit-resource-callout {
    box-sizing: border-box;
    width: min(100%, 880px);
    margin: 1.5rem auto 2rem;
    padding: 1.35rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    background: #f8f6f0;
    border: 1px solid #e0dcd3;
    border-left: 5px solid #d89b00;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(7, 28, 62, 0.08);
    text-align: left;
}

.credit-resource-callout > i {
    color: #23346d;
    font-size: 1.55rem;
}

.credit-resource-callout strong,
.credit-resource-callout span {
    display: block;
}

.credit-resource-callout strong {
    color: #071c3e;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.15rem;
}

.credit-resource-callout span {
    margin-top: 0.2rem;
    color: #5d6678;
    font-size: 0.9rem;
}

.credit-resource-callout a {
    color: #23346d;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    text-underline-offset: 4px;
}

.page-qualifications .credit-resource-callout {
    width: 100%;
    margin: 1.25rem 0 1.75rem;
}

.credit-hero {
    background:
        linear-gradient(112deg, rgba(7, 28, 62, 0.96), rgba(35, 52, 109, 0.76)),
        url("../../images/dillon-kydd-pvdx8c6Y5BY-unsplash.png") center 58% / cover;
}

.credit-intro {
    box-sizing: border-box;
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: clamp(5rem, 9vw, 8rem) 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 6rem);
}

.credit-intro h2,
.credit-video-section h2,
.credit-factors h2,
.credit-cta h2 {
    margin: 0.75rem 0 1.25rem;
    color: #071c3e;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -0.04em;
    line-height: 1.03;
}

.credit-intro__content > p {
    color: #5d6678;
    font-size: 1.03rem;
}

.button--navy {
    margin-top: 1rem;
    background: #23346d;
    color: #ffffff;
}

.button--navy:hover {
    background: #071c3e;
    color: #ffffff;
}

.credit-intro__note {
    padding: clamp(2rem, 4vw, 3rem);
    background: #f8f6f0;
    border-top: 4px solid #d89b00;
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(7, 28, 62, 0.12);
}

.credit-intro__note > i {
    color: #d89b00;
    font-size: 1.7rem;
}

.credit-intro__note h3 {
    margin: 1.1rem 0 0.6rem;
    color: #071c3e;
    font-size: 1.55rem;
}

.credit-intro__note p { color: #5d6678; }
.credit-intro__note a { color: #23346d; font-weight: 800; text-underline-offset: 4px; }

.credit-video-section {
    padding: clamp(5rem, 9vw, 8rem) 1.5rem;
    background: #071c3e;
    color: #ffffff;
}

.credit-video-section__heading {
    width: min(100%, 900px);
    margin: 0 auto 2.5rem;
    text-align: center;
}

.credit-video-section h2 { color: #ffffff; }
.credit-video-section__heading p,
.credit-video-fallback { color: rgba(255, 255, 255, 0.72); }

.credit-video-frame {
    position: relative;
    width: min(100%, 980px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    overflow: hidden;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.credit-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.credit-video-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: #000000;
    border: 0;
    border-radius: 0;
}

.credit-video-poster::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 28, 62, 0.06), rgba(7, 28, 62, 0.5));
    content: "";
}

.credit-video-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.credit-video-poster__play,
.credit-video-poster__label {
    position: absolute;
    z-index: 1;
    left: 50%;
    transform: translateX(-50%);
}

.credit-video-poster__play {
    top: 50%;
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    background: #f1c768;
    color: #071c3e;
    border-radius: 50%;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
    font-size: 1.4rem;
    transform: translate(-50%, -50%);
    transition: background-color 180ms ease, transform 180ms ease;
}

.credit-video-poster__play i { margin-left: 0.2rem; }

.credit-video-poster__label {
    bottom: 1.5rem;
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.credit-video-poster:hover .credit-video-poster__play,
.credit-video-poster:focus-visible .credit-video-poster__play {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.05);
}

.credit-video-poster:focus-visible {
    outline: 3px solid #f1c768;
    outline-offset: -6px;
}

.credit-video-fallback {
    margin: 1.25rem auto 0;
    text-align: center;
}

.credit-video-fallback a { color: #f1c768; }

.credit-factors {
    padding: clamp(5rem, 9vw, 8rem) 1.5rem;
    background: #f8f6f0;
}

.credit-factors__heading {
    width: min(100%, 900px);
    margin: 0 auto 3rem;
    text-align: center;
}

.credit-factors__grid {
    width: min(100%, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: #ddd6c8;
    border: 1px solid #ddd6c8;
}

.credit-factors article {
    min-height: 315px;
    padding: clamp(2rem, 4vw, 3rem);
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.credit-factors article > span {
    color: #d89b00;
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
}

.credit-factors article > i {
    margin: 2rem 0 1rem;
    color: #23346d;
    font-size: 1.7rem;
}

.credit-factors h3 {
    margin: 0 0 0.65rem;
    color: #071c3e;
    font-size: 1.45rem;
}

.credit-factors article p { margin: 0; color: #5d6678; }

.credit-cta {
    box-sizing: border-box;
    width: min(calc(100% - 3rem), 1180px);
    margin: clamp(5rem, 9vw, 8rem) auto 2rem;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    background: #23346d;
    color: #ffffff;
    border-radius: 28px;
}

.credit-cta h2 { max-width: 760px; color: #ffffff; }
.credit-cta p { max-width: 700px; margin-bottom: 0; color: rgba(255, 255, 255, 0.72); }
.credit-cta .button { flex: 0 0 auto; }

.credit-disclosure {
    width: min(calc(100% - 3rem), 1000px);
    margin: 0 auto clamp(4rem, 8vw, 7rem);
    color: #5d6678;
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 800px) {
    .credit-intro,
    .credit-factors__grid { grid-template-columns: 1fr; }
    .credit-cta { align-items: flex-start; flex-direction: column; }
    .credit-cta .button { width: 100%; }
}

@media (max-width: 600px) {
    .credit-resource-callout { grid-template-columns: auto 1fr; }
    .credit-resource-callout a { grid-column: 1 / -1; white-space: normal; }
    .credit-video-frame { border-radius: 10px; }
}
