/* AHWF referral program page — uses the theme's colours (--thm-base / --thm-primary). */
.ahwf-ref { padding: 70px 0 90px; --ref-base: var(--thm-base, #004da1); --ref-sky: var(--thm-primary, #65cef5); }
.ahwf-ref__head h2 { margin-bottom: 10px; white-space: normal; overflow-wrap: anywhere; }
.ahwf-ref__intro { max-width: 760px; margin: -20px auto 0; font-size: 17px; line-height: 1.6; text-align: center; color: #585858; }
.ahwf-ref__head { margin-bottom: 30px; }
.ahwf-ref__notice { background: #f2f8fd; border: 1px solid #d6e9f8; border-radius: 14px; padding: 22px; text-align: center; font-size: 17px; }
.ahwf-ref__perks { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 34px 0 10px; }
.ahwf-ref__perk { flex: 1 1 200px; max-width: 260px; background: var(--ref-base); color: #fff; border-radius: 18px; padding: 22px 18px; text-align: center; }
.ahwf-ref__perk b { display: block; font-size: 40px; line-height: 1; margin-bottom: 6px; }
.ahwf-ref__perk span { font-size: 15px; opacity: .92; }
.ahwf-ref__value { text-align: center; color: #585858; margin: 6px 0 30px; }
.ahwf-ref__steps { list-style: none; padding: 0; margin: 0 auto 40px; max-width: 900px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.ahwf-ref__steps li { background: #f2f8fd; border-radius: 14px; padding: 16px; font-size: 15px; line-height: 1.45; display: flex; gap: 10px; align-items: flex-start; }
.ahwf-ref__steps li span { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--ref-sky); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ahwf-ref__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.ahwf-ref__grid--one { grid-template-columns: minmax(0, 640px); justify-content: center; }
.ahwf-ref__card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 10px 30px rgba(0, 77, 161, .09); border: 1px solid #e6eff8; min-width: 0; }
.ahwf-ref__card h3 { margin: 0 0 6px; font-size: 24px; }
.ahwf-ref__muted { color: #6b7a89; margin-bottom: 16px; }
.ahwf-ref__form .input-box { margin-bottom: 14px; }
.ahwf-ref__form .input-box input, .ahwf-ref__form .input-box textarea { width: 100%; }
.ahwf-ref__form textarea { min-height: 70px; padding: 12px 20px; border: 1px solid #e2e2e2; border-radius: 6px; }
.ahwf-ref__label { font-weight: 600; margin: 4px 0 8px; }
.ahwf-ref__codefield { display: flex; gap: 10px; align-items: flex-start; }
.ahwf-ref__codefield .input-box { flex: 1; margin-bottom: 6px; }
.ahwf-ref__checkbtn, .ahwf-ref__copy, .ahwf-ref__again, .ahwf-ref__sh { border: 1px solid var(--ref-base); background: #fff; color: var(--ref-base); border-radius: 30px; padding: 10px 18px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-block; line-height: 1.3; }
.ahwf-ref__checkbtn { height: 54px; }
.ahwf-ref__checkbtn:hover, .ahwf-ref__sh:hover, .ahwf-ref__copy:hover, .ahwf-ref__again:hover { background: var(--ref-base); color: #fff; }
.ahwf-ref__codestatus { min-height: 22px; font-size: 14px; margin-bottom: 10px; }
.ahwf-ref__codestatus.is-ok { color: #12805c; font-weight: 600; }
.ahwf-ref__codestatus.is-bad { color: #c62828; }
.ahwf-ref__check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.45; margin: 4px 0 16px; cursor: pointer; }
.ahwf-ref__check input { margin-top: 3px; flex: 0 0 auto; width: 18px; height: 18px; }
.ahwf-ref__msg { border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; background: #fdecea; color: #b3261e; }
.ahwf-ref__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ahwf-ref__done-msg { background: #e8f6ef; color: #0f6b4a; border-radius: 12px; padding: 14px 16px; font-weight: 600; margin-bottom: 16px; line-height: 1.5; }
.ahwf-ref__code { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ref-base); color: #fff; border-radius: 14px; padding: 16px 18px; margin-bottom: 14px; }
.ahwf-ref__code-val { font-size: 28px; font-weight: 800; letter-spacing: 2px; word-break: break-all; }
.ahwf-ref__code .ahwf-ref__copy { background: #fff; }
.ahwf-ref__share { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ahwf-ref__sh--wa { border-color: #25d366; color: #128c4b; }
.ahwf-ref__sh--wa:hover { background: #25d366; border-color: #25d366; }
.ahwf-ref__sh--fb { border-color: #1877f2; color: #1877f2; }
.ahwf-ref__sh--fb:hover { background: #1877f2; border-color: #1877f2; }
.ahwf-ref__small { text-align: center; color: #7a8693; font-size: 13px; margin-top: 26px; }
.ahwf-ref button[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 991px) { .ahwf-ref__grid { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
	.ahwf-ref { padding: 44px 0 60px; }
	.ahwf-ref__card { padding: 20px 16px; }
	.ahwf-ref__perk b { font-size: 32px; }
	.ahwf-ref__head h2 { font-size: 30px !important; line-height: 1.25 !important; }
	.ahwf-ref__code-val { font-size: 22px; }
}
