/* Registration flow polish (visual only). Scoped to html.reg-page and the product entry card. */
html.reg-page{--rp-navy:#003a7d;--rp-ink:#13284a;--rp-muted:#55627d;--rp-line:#d3dcea;--rp-wash:#f3f7fd;--rp-gold:#f5c542}

/* Product entry chooser */
.product-entry{max-width:720px;width:calc(100% - 24px);box-sizing:border-box;margin:28px auto;padding:28px 24px;border:1px solid var(--rp-line,#d3dcea);border-radius:12px;box-shadow:0 4px 16px rgba(0,58,125,.07);gap:16px}
.product-entry h1{font-size:clamp(1.25rem,4vw,1.55rem);font-weight:700;line-height:1.35;color:#003a7d;text-shadow:none;overflow-wrap:anywhere}
.product-entry-price{font-size:1.5rem;font-weight:700;color:#13284a;padding-top:12px;border-top:1px solid #e3e9f3}
.product-entry-price small{font-size:.92rem;font-weight:400;color:#55627d}
.product-entry-actions{gap:12px;max-width:560px;width:100%;margin:4px auto 0}
.product-entry-actions .btn{min-height:48px;padding:10px 14px;border-radius:8px;font-size:1rem;font-weight:600;box-shadow:none!important;text-shadow:none!important;background-image:none!important}
.product-entry-actions .product-entry-new{background:#003a7d!important;color:#fff!important;border:1px solid #003a7d}
.product-entry-actions .product-entry-existing{background:#fff;color:#003a7d;border:1px solid #003a7d}
.product-entry-actions .btn:hover{filter:brightness(.96)}
.product-entry-actions .btn:focus-visible{outline:3px solid #f5c542;outline-offset:2px}

/* Card */
html.reg-page #payStage .pay-stage-form{width:min(720px,100%)}
html.reg-page #payStage .pay-card{border:1px solid var(--rp-line);border-radius:12px;box-shadow:0 4px 16px rgba(0,58,125,.07);padding:28px 28px 24px;box-sizing:border-box;max-width:100%}

/* Compact course summary: title + day/time on the right, price on the left */
html.reg-page #payChosen{display:flex!important;flex-direction:row!important;flex-wrap:wrap;align-items:baseline;column-gap:14px;row-gap:4px;margin:0 0 10px;padding:12px 16px!important;background:var(--rp-wash)!important;border:1px solid var(--rp-line)!important;border-right:4px solid var(--rp-gold)!important;border-radius:8px!important}
html.reg-page #payChosen span{color:var(--rp-muted)!important;font-size:15px;line-height:1.4;overflow-wrap:anywhere;min-width:0}
html.reg-page #payChosen .reg-course-title{flex-basis:100%;color:var(--rp-navy)!important;font-size:18px;font-weight:700}
html.reg-page #payChosen .reg-course-amount{margin-inline-start:auto;color:var(--rp-ink)!important;font-size:20px;font-weight:700}
html.reg-page #payNote{display:flex;align-items:flex-start;gap:8px;margin:0 0 14px;padding:0!important;font-size:14px;line-height:1.5}
html.reg-page #payNote .pay-note-icon{flex:0 0 18px;width:18px;height:18px;margin-top:2px;color:#a35f00}

/* Steps */
html.reg-page #payFields h2{font-size:21px;font-weight:700;margin:16px 0 12px;color:var(--rp-ink)}
html.reg-page .pay-progress{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0 0 20px}
html.reg-page .pay-progress span{display:flex;align-items:center;justify-content:center;min-height:42px;padding:6px 10px;border-radius:8px;background:#fff;border:1px solid var(--rp-line);color:var(--rp-muted);text-align:center}
html.reg-page .pay-progress span b{font-size:15px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
html.reg-page .pay-progress span.is-on{background:var(--rp-navy);border-color:var(--rp-navy);color:#fff}
html.reg-page #payFields h3{font-size:17px;font-weight:600;color:var(--rp-navy);margin:0 0 14px}

/* Fields */
html.reg-page #payFields .pay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
html.reg-page #payFields .field-line{display:block;min-width:0;margin-bottom:16px}
html.reg-page #payFields .field-label{display:block;margin-bottom:6px;font-size:15px;font-weight:600;color:var(--rp-ink)}
html.reg-page #payFields .field-control{position:relative;display:block;min-width:0}
html.reg-page #payFields input:not([type=checkbox]):not([type=radio]){width:100%;max-width:100%;min-width:0;box-sizing:border-box;min-height:46px;font-size:16px;border-radius:8px;border:1px solid #c3cee0;padding-inline:12px 44px}
html.reg-page #payFields input:focus{border-color:var(--rp-navy);outline:2px solid rgba(0,58,125,.18);outline-offset:0}
html.reg-page #payFields .field-tip{width:24px!important;height:24px!important;min-width:24px;font-size:13px!important;box-shadow:none!important}
html.reg-page #payFields .field-tip-panel{font-size:14px;line-height:1.5;margin-top:6px}
html.reg-page #payFields .email-echo{border-radius:6px;font-size:14px;font-weight:400;overflow-wrap:anywhere}

/* Actions: primary navy, secondary outlined */
html.reg-page #payFields .pay-next-student,html.reg-page #payFields button[type=submit]{min-height:48px;border-radius:8px;font-weight:600;background:var(--rp-navy);border-color:var(--rp-navy);background-image:none}
html.reg-page #payFields [data-pay-prev],html.reg-page #payFields [data-pay-back]{min-height:44px;border-radius:8px;border:1px solid var(--rp-navy);color:var(--rp-navy);background:#fff;padding:8px 18px}
html.reg-page #payFields .pay-alarm-open{min-height:44px;border-radius:8px;box-shadow:none;text-shadow:none;background-image:none;white-space:normal;line-height:1.4}

@media (max-width:600px){
  html.reg-page #payStage .pay-card{padding:18px 14px}
  html.reg-page #payFields .pay-grid{grid-template-columns:minmax(0,1fr)}
  html.reg-page .pay-progress span b{font-size:14px}
  .product-entry{padding:22px 16px;margin:16px auto}
}
