/* File: /public/css/rebates/public-rebate.css */

.rb-rebate-page {
    background: #f5f7fa;
    min-height: 70vh;
    padding: clamp(2rem, 5vw, 4.5rem) 0;
    color: #1d2939;
}

.rb-rebate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
    align-items: start;
}

.rb-rebate-card,
.rb-rebate-aside,
.rb-handoff-card {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(16, 24, 40, .08);
}

.rb-rebate-card { overflow: hidden; }
.rb-rebate-card__header { padding: clamp(1.5rem, 4vw, 2.5rem); padding-bottom: 1.25rem; }
.rb-rebate-eyebrow { display: inline-block; color: #175cd3; font-size: .76rem; font-weight: 800; letter-spacing: .12em; margin-bottom: .6rem; }
.rb-rebate-card h1,
.rb-handoff-card h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.12; font-weight: 800; letter-spacing: -.035em; margin: 0 0 .75rem; }
.rb-rebate-card__header p,
.rb-handoff-lead { color: #667085; font-size: 1.05rem; margin: 0; }

.rb-rebate-product {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    margin: 0 clamp(1.5rem, 4vw, 2.5rem);
    padding: 1rem 1.15rem;
    border: 1px solid #d1e0ff;
    background: #f5f8ff;
    border-radius: 14px;
}
.rb-rebate-product div { display: flex; flex-direction: column; gap: .2rem; }
.rb-rebate-product span { color: #667085; font-size: .78rem; }
.rb-rebate-product strong { color: #101828; }

#rebate-claim-form { padding: clamp(1.5rem, 4vw, 2.5rem); }
.rb-rebate-fieldset { border: 0; margin: 0 0 1.5rem; padding: 0; }
.rb-rebate-fieldset legend,
.rb-verification h2,
.rb-rebate-terms h2,
.rb-rebate-aside h2 { font-size: 1.15rem; font-weight: 800; margin: 0; }
.rb-rebate-help { color: #667085; font-size: .9rem; margin: .35rem 0 1rem; }
.rb-rebate-page .form-label { color: #344054; font-size: .88rem; font-weight: 700; }
.rb-rebate-page .form-label span { color: #98a2b3; font-size: .75rem; font-weight: 500; }
.rb-rebate-page .form-control { border-color: #d0d5dd; border-radius: 11px; font-size: 1rem; }
.rb-rebate-page .form-control:focus { border-color: #84adff; box-shadow: 0 0 0 4px rgba(21, 112, 239, .1); }
.rb-rebate-page .form-control[readonly] { background: #f2f4f7; }

.rb-rebate-terms,
.rb-verification {
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    padding: 1.15rem;
    margin: 1.5rem 0;
}
.rb-rebate-terms { background: #fcfcfd; }
.rb-rebate-terms__heading { display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.rb-rebate-terms__heading > i { color: #175cd3; font-size: 1.35rem; }
.rb-rebate-terms__heading p { color: #667085; font-size: .84rem; margin: .2rem 0 0; }
.rb-rebate-consent { padding-left: 2rem; }
.rb-rebate-consent .form-check-input { width: 1.15rem; height: 1.15rem; margin-left: -2rem; }
.rb-rebate-consent label { color: #475467; font-size: .86rem; line-height: 1.55; }
.rb-rebate-legal-links { color: #667085; font-size: .8rem; margin: .8rem 0 0; }
.rb-rebate-legal-links a { color: #175cd3; font-weight: 700; }

.rb-verification { background: #f8faff; border-color: #b2ccff; text-align: center; }
.rb-verification p { color: #667085; font-size: .9rem; margin: .35rem 0 1rem; }
.rb-otp-row { display: flex; gap: .65rem; justify-content: center; }
.rb-otp-row input { max-width: 180px; text-align: center; font-size: 1.45rem; font-weight: 800; letter-spacing: .25em; }
.rb-otp-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: .6rem; font-size: .82rem; color: #667085; }
.rb-otp-actions .btn-link { font-size: .82rem; padding: 0; }
.rb-verification-success { display: flex; align-items: center; justify-content: center; gap: .75rem; color: #067647; }
.rb-verification-success i { font-size: 1.7rem; }
.rb-verification-success div { display: flex; flex-direction: column; text-align: left; }
.rb-verification-success span { color: #667085; font-size: .82rem; }

.rb-rebate-submit { width: 100%; border-radius: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: .65rem; padding: .9rem 1.1rem; }
.rb-rebate-submit-note { color: #667085; font-size: .78rem; line-height: 1.5; text-align: center; margin: .8rem auto 0; max-width: 620px; }
.rb-rebate-alert { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; margin: 1rem clamp(1.5rem, 4vw, 2.5rem) 0; border-radius: 12px; font-size: .88rem; }
#rebate-claim-form > .rb-rebate-alert { margin: 0 0 1rem; }
.rb-rebate-alert--error { color: #b42318; background: #fef3f2; border: 1px solid #fecdca; }
.rb-rebate-alert--info { color: #175cd3; background: #eff8ff; border: 1px solid #b2ddff; }

.rb-rebate-aside { padding: 1.4rem; position: sticky; top: 1.5rem; }
.rb-rebate-aside ol { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 1.1rem; }
.rb-rebate-aside li { display: flex; gap: .75rem; align-items: flex-start; }
.rb-rebate-aside li > span { width: 28px; height: 28px; border-radius: 50%; background: #eaf2ff; color: #175cd3; display: grid; place-items: center; font-weight: 800; flex: 0 0 auto; }
.rb-rebate-aside li div { display: flex; flex-direction: column; gap: .16rem; }
.rb-rebate-aside small { color: #667085; line-height: 1.35; }
.rb-rebate-eligibility { border-top: 1px solid #e4e7ec; margin-top: 1.25rem; padding-top: 1rem; }
.rb-rebate-eligibility p { color: #667085; font-size: .82rem; line-height: 1.5; white-space: pre-line; margin: .35rem 0 0; }


/* Friendly public rebate guide */
.rb-rebate-guide__header { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid #e4e7ec; }
.rb-rebate-guide__gift { width: 54px; height: 54px; margin: 0 auto .7rem; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #12b76a, #039855); box-shadow: 0 10px 22px rgba(3, 152, 85, .22); font-size: 1.45rem; }
.rb-rebate-guide__eyebrow { display: block; color: #067647; font-size: .68rem; font-weight: 900; letter-spacing: .1em; margin-bottom: .25rem; }
.rb-rebate-guide__header h2 { color: #101828; font-size: 1.3rem; }
.rb-rebate-guide__header p { color: #667085; font-size: .82rem; line-height: 1.45; margin: .35rem 0 0; }

.rb-rebate-guide__steps { margin-top: 1rem !important; gap: .9rem !important; }
.rb-rebate-guide__steps li { padding: .75rem; border: 1px solid #e4e7ec; border-radius: 13px; background: #fcfcfd; }
.rb-rebate-guide__steps li > span { width: 32px; height: 32px; color: #fff; background: #175cd3; box-shadow: 0 5px 12px rgba(23, 92, 211, .18); }
.rb-rebate-guide__steps strong { color: #1d2939; font-size: .84rem; line-height: 1.35; }
.rb-rebate-guide__steps strong i { color: #175cd3; margin-right: .25rem; }
.rb-rebate-guide__steps small { font-size: .76rem; line-height: 1.45; }

.rb-rebate-guide__important { display: flex; gap: .7rem; margin-top: 1.1rem; padding: .9rem; border: 1px solid #fdb022; border-radius: 14px; background: linear-gradient(145deg, #fffaeb, #fff7d6); }
.rb-rebate-guide__important-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #f79009; color: #fff; }
.rb-rebate-guide__important strong { color: #93370d; font-size: .84rem; line-height: 1.35; }
.rb-rebate-guide__important p { color: #7a2e0e; font-size: .76rem; line-height: 1.5; margin: .3rem 0; }
.rb-rebate-guide__important span { display: block; color: #7a2e0e; font-size: .73rem; font-weight: 800; line-height: 1.45; }

.rb-rebate-guide__updates { display: flex; gap: .7rem; align-items: flex-start; margin-top: 1rem; padding: .85rem; border: 1px solid #abefc6; border-radius: 14px; background: #ecfdf3; }
.rb-rebate-guide__updates > i { color: #079455; font-size: 1.35rem; }
.rb-rebate-guide__updates div { display: flex; flex-direction: column; gap: .18rem; }
.rb-rebate-guide__updates strong { color: #05603a; font-size: .82rem; }
.rb-rebate-guide__updates small { color: #067647; font-size: .75rem; line-height: 1.45; }


.rb-rebate-page--handoff { display: grid; place-items: center; }
.rb-handoff-card { width: min(720px, 100%); margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem); text-align: center; }
.rb-handoff-success { color: #12b76a; font-size: 3.2rem; line-height: 1; margin-bottom: .75rem; }
.rb-claim-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.5rem 0; text-align: left; }
.rb-claim-summary div { border: 1px solid #e4e7ec; border-radius: 12px; padding: .85rem; }
.rb-claim-summary dt { color: #667085; font-size: .74rem; font-weight: 600; }
.rb-claim-summary dd { color: #101828; font-weight: 800; margin: .2rem 0 0; overflow-wrap: anywhere; }
.rb-handoff-card .rb-rebate-alert { margin: 1rem 0; text-align: left; }
.rb-handoff-warning { background: #fffaeb; border: 1px solid #fedf89; border-radius: 14px; padding: 1rem; margin: 1.25rem 0; text-align: left; }
.rb-handoff-warning strong { color: #93370d; }
.rb-handoff-warning p { color: #7a2e0e; font-size: .88rem; margin: .35rem 0 0; }

@media (max-width: 900px) {
    .rb-rebate-shell { grid-template-columns: 1fr; }
    .rb-rebate-aside { position: static; }
}

@media (max-width: 575px) {
    .rb-rebate-page { padding: 1rem 0; }
    .rb-rebate-card,
    .rb-rebate-aside,
    .rb-handoff-card { border-radius: 16px; }
    .rb-rebate-product { grid-template-columns: 1fr; }
    .rb-otp-row { flex-direction: column; }
    .rb-otp-row input { max-width: none; }
    .rb-claim-summary { grid-template-columns: 1fr; }
}

.rb-rebate-terms--after-submit { margin-top: 1rem; }
.rb-rebate-authorization-copy { margin: 1rem 0; color: #344054; font-size: .9rem; line-height: 1.65; }


/* =========================================================
   Public rebate recovery page
   ========================================================= */
.rb-recovery-page { min-height: 72vh; display: flex; align-items: center; padding: 4rem 0; background: linear-gradient(145deg, #f7f9fc 0%, #eef4ff 52%, #ecfdf3 100%); }
.rb-recovery-shell { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(310px, .75fr); overflow: hidden; border: 1px solid #dfe5ee; border-radius: 24px; background: #fff; box-shadow: 0 24px 65px rgba(16, 24, 40, .12); }
.rb-recovery-content { position: relative; padding: 3.25rem; color: #fff; background: linear-gradient(145deg, #123b78 0%, #175cd3 58%, #1570ef 100%); }
.rb-recovery-content::after { content: ""; position: absolute; right: -70px; bottom: -100px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.rb-recovery-icon { position: relative; z-index: 1; width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 1.25rem; border: 1px solid rgba(255, 255, 255, .28); border-radius: 20px; color: #fff; background: rgba(255, 255, 255, .14); font-size: 2rem; box-shadow: 0 12px 25px rgba(0, 0, 0, .12); }
.rb-recovery-eyebrow { position: relative; z-index: 1; display: block; margin-bottom: .55rem; color: #d1e9ff; font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.rb-recovery-content h1 { position: relative; z-index: 1; max-width: 620px; margin: 0; color: #fff; font-size: clamp(2rem, 4vw, 3.15rem); font-weight: 850; line-height: 1.08; letter-spacing: -.035em; }
.rb-recovery-message { position: relative; z-index: 1; max-width: 650px; margin: 1.15rem 0 0; color: #eaf2ff; font-size: 1.03rem; line-height: 1.7; }
.rb-recovery-assurance { position: relative; z-index: 1; display: grid; gap: .85rem; margin-top: 2rem; }
.rb-recovery-assurance > div { display: flex; align-items: flex-start; gap: .8rem; padding: .9rem 1rem; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; background: rgba(255, 255, 255, .09); backdrop-filter: blur(4px); }
.rb-recovery-assurance i { flex: 0 0 auto; margin-top: .12rem; color: #abefc6; font-size: 1.2rem; }
.rb-recovery-assurance span { display: flex; flex-direction: column; gap: .18rem; color: #eaf2ff; font-size: .82rem; line-height: 1.45; }
.rb-recovery-assurance strong { color: #fff; font-size: .88rem; }
.rb-recovery-forward { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; text-align: center; background: #fff; }
.rb-recovery-forward__icon { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 1rem; border-radius: 50%; color: #067647; background: #dcfae6; font-size: 1.8rem; }
.rb-recovery-forward__eyebrow { color: #067647; font-size: .7rem; font-weight: 900; letter-spacing: .11em; }
.rb-recovery-forward h2 { margin: .45rem 0 .7rem; color: #101828; font-size: 1.45rem; font-weight: 800; line-height: 1.25; }
.rb-recovery-forward p { margin: 0; color: #667085; font-size: .92rem; line-height: 1.55; }
.rb-recovery-forward p strong { color: #344054; }
.rb-recovery-progress { width: 100%; height: 8px; overflow: hidden; margin: 1.4rem 0; border-radius: 999px; background: #eaecf0; }
.rb-recovery-progress__bar { width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #12b76a, #1570ef); animation: rb-recovery-countdown var(--rb-recovery-delay, 10s) linear forwards; }
.rb-recovery-button { display: flex; align-items: center; justify-content: center; gap: .55rem; width: 100%; border-radius: 12px; font-weight: 800; }
.rb-recovery-forward small { margin-top: .85rem; color: #98a2b3; font-size: .75rem; line-height: 1.45; }

@keyframes rb-recovery-countdown {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 900px) {
    .rb-recovery-page { padding: 2rem 0; }
    .rb-recovery-shell { grid-template-columns: 1fr; }
    .rb-recovery-content { padding: 2.25rem 1.5rem; }
    .rb-recovery-forward { padding: 2rem 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .rb-recovery-progress__bar { animation: none; }
}