/* ===== AASP Theme Variables (สามารถนำไปประกาศรวมที่ root ได้) ===== */
.reg-page {
    --brand: #D1236B;          /* aasp-primary */
    --brand-dark: #A31250;     /* aasp-primary-dark */
    --brand-soft: #FDEBF3;     /* aasp-primary-light */
    --ink: #1E1A47;            /* aasp-indigo-dark */
    --muted: #6B668A;          /* adjusted muted text */
    --line: #E5CDD8;           /* pinkish border */
    --bg-cream: #FFFDF9;       /* aasp-bg-cream */
    --danger: #D83F52;         /* aasp-danger */
}

/* ===== Cards ===== */
.reg-page .reg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(45, 39, 105, .18); padding: 26px; margin-bottom: 24px; }
.reg-page .sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.reg-page .sec-num { flex: 0 0 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; background: var(--brand-soft); color: var(--brand); }
.reg-page .sec-title { font-weight: 700; font-size: 1.2rem; margin: 0; color: var(--ink); }
.reg-page .sec-sub { color: var(--muted); font-size: .88rem; margin: 0; }
.reg-page .req { color: var(--danger); }

/* ===== Radio tiles ===== */
.reg-page .option-tile { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 48px; margin: 0; background: #fff; transition: .18s ease; }
.reg-page .option-tile:hover { border-color: var(--brand); box-shadow: 0 6px 16px -10px rgba(209, 35, 107, .5); } /* rgba ของ aasp-primary */
.reg-page .option-tile .form-check-input { position: absolute; left: 18px; top: 17px; margin: 0; width: 1.15rem; height: 1.15rem; cursor: pointer; }
.reg-page .option-tile .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.reg-page .option-tile .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(209, 35, 107, .2); }
.reg-page .option-tile .form-check-label { font-weight: 600; color: var(--ink)!important; cursor: pointer; display: block; }
.reg-page .option-tile:has(> .form-check-input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.reg-page .option-tile:has(> .form-check-input:disabled) { background: var(--bg-cream); border-style: dashed; box-shadow: none; }
.reg-page .option-tile:has(> .form-check-input:disabled) .form-check-label, .reg-page .option-tile .form-check-input:disabled { cursor: not-allowed; color: var(--muted)!important; }
.reg-page .tile-icon { font-size: 1.2rem; color: var(--brand); margin-right: .4rem; }
.reg-page .tile-desc { color: var(--muted); font-size: .85rem; font-weight: 400; margin-top: 2px; }
.reg-page .tile-desc ul { padding-left: 1.1rem; margin: .4rem 0 0; }
.reg-page .tile-desc li { margin-bottom: 3px; }
.reg-page .na-badge { display: inline-block; font-size: .7rem; font-weight: 600; background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle; }
.reg-page .sub-options { margin-top: 12px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line); }

/* ===== Fee ===== */
.reg-page .fee-table { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.reg-page .fee-table table { margin: 0; }
.reg-page .fee-table thead th { background: var(--ink); color: #fff; font-weight: 600; vertical-align: middle; border-color: rgba(255, 255, 255, .12); }
.reg-page .fee-table thead .phase-0 { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); } /* ไล่สี Magenta */
.reg-page .fee-table thead .phase-1 { background: #2D2769; } /* สี Indigo */
.reg-page .fee-table .date-chip { display: block; font-size: .75rem; font-weight: 500; opacity: .85; margin-top: 3px; }
.reg-page .fee-table tbody td { padding: 14px; vertical-align: middle; }
.reg-page .price { font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.reg-page .price small { font-weight: 500; font-size: .75rem; color: var(--muted); }
.reg-page .save-badge { font-size: .7rem; background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 8px; margin-left: 6px; font-weight: 600; }
.reg-page .group-note { background: #FFF9E6; border: 1px solid #FDE49E; border-radius: 12px; padding: 14px 16px; font-size: .93rem; } /* โทนสีเหลือง AASP Accent */

/* ===== Timeline ===== */
.reg-page .timeline { position: relative; padding-left: 28px; margin: 0; list-style: none; }
.reg-page .timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.reg-page .timeline li { position: relative; margin-bottom: 18px; }
.reg-page .timeline li:last-child { margin-bottom: 0; }
.reg-page .timeline li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); }
.reg-page .timeline .t-date { font-weight: 700; color: var(--ink); }
.reg-page .timeline .t-desc { color: var(--muted); font-size: .9rem; }

/* ===== Sidebar / Submit ===== */
.reg-page .sticky-side { position: sticky; top: 24px; }
.reg-page #summaryBox dd { overflow-wrap: anywhere; }
.reg-page .btn-reg { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); border: 0; color: #fff; font-weight: 600; padding: .85rem 2.6rem; border-radius: 14px; box-shadow: 0 12px 24px -10px rgba(209, 35, 107, .7); transition: .2s; }
.reg-page .btn-reg:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px -10px rgba(209, 35, 107, .85); }
.reg-page .flow-img { border-radius: 14px; border: 1px solid var(--line); }

/* ===== Confirm Register Modal ===== */
#ConfirmRegisterModal .modal-content { border: 0; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(45, 39, 105, .45); }
#ConfirmRegisterModal .modal-header { background: linear-gradient(135deg, #D1236B, #A31250); border: 0; }
#ConfirmRegisterModal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
#ConfirmRegisterModal .modal-footer { border-top: 1px solid #E5CDD8; gap: 8px; }
#ConfirmRegisterModal .modal-footer .btn { border-radius: 12px; padding: .55rem 1.3rem; font-weight: 600; }

#ConfirmRegisterModalBody {
    --brand: #D1236B;
    --brand-dark: #A31250;
    --brand-soft: #FDEBF3;
    --ink: #1E1A47;
    --muted: #6B668A;
    --line: #E5CDD8;
    padding: 0!important;
}
#ConfirmRegisterModalBody > .fw-500 { margin: 0!important; padding: 22px 24px 18px 84px; position: relative; background: linear-gradient(135deg, var(--brand-soft) 0%, #FFFDF9 100%); border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
#ConfirmRegisterModalBody > .fw-500::before { content: "\2713"; position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 1.2rem; font-weight: 700; box-shadow: 0 8px 18px -8px rgba(209, 35, 107, .8); }
#ConfirmRegisterModalBody > .fw-500::after { content: 'Please review your information before submitting.'; display: block; font-size: .85rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
#ConfirmRegisterModalBody > .px-3 { padding: 18px 24px 22px!important; display: grid; gap: 10px; }
#ConfirmRegisterModalBody .pl-3 { padding: 12px 16px 12px 20px!important; background: #FFFDF9; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; }
#ConfirmRegisterModalBody .pl-3 > .fw-300 { display: block; font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
#ConfirmRegisterModalBody .pl-3 > .fw-400 {  font-style: normal!important; font-weight: 600; font-size: 1rem; color: var(--ink); }
#ConfirmRegisterModalBody .tile-desc, #ConfirmRegisterModalBody .tile-icon, #ConfirmRegisterModalBody .bi, #ConfirmRegisterModalBody .na-badge, #ConfirmRegisterModalBody ul { display: none!important; }

/* ===== Roadmap ===== */
.roadmap {
    --rm-brand: #D1236B;       /* aasp-primary */
    --rm-soft: #FDEBF3;        /* aasp-primary-light */
    --rm-line: #E5CDD8;        /* pinkish border */
    --rm-muted: #6B668A;       /* aasp-muted */
    --rm-ink: #1E1A47;         /* aasp-indigo-dark */
    --rm-done: #1D9E75;        /* aasp-teal (สีสำหรับขั้นตอนที่เสร็จแล้ว) */
    --rm-dot: 48px;
    background: #fff;
    border: 1px solid var(--rm-line);
    border-radius: 18px;
    box-shadow: 0 10px 30px -12px rgba(45, 39, 105, .18);
    padding: 22px 24px;
    margin-bottom: 24px;
}
.roadmap .rm-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.roadmap .rm-title { font-weight: 700; font-size: 1.05rem; color: var(--rm-ink); margin: 0; }
.roadmap .rm-type { font-size: .72rem; font-weight: 600; background: var(--rm-soft); color: var(--rm-brand); border-radius: 999px; padding: 3px 10px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.roadmap .rm-progress { font-size: .85rem; color: var(--rm-muted); white-space: nowrap; }
.roadmap .rm-progress b { color: var(--rm-brand); }
.roadmap .rm-bar { height: 6px; border-radius: 99px; background: var(--rm-line); overflow: hidden; margin-bottom: 22px; }
.roadmap .rm-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rm-brand), var(--rm-done)); border-radius: 99px; transition: width .5s ease; }
.roadmap .rm-steps { display: flex; list-style: none; margin: 0; padding: 0; }
.roadmap .rm-step { flex: 1 1 0; min-width: 0; position: relative; text-align: center; padding: 0 4px; }
.roadmap .rm-step::before { content: ""; position: absolute; top: calc(var(--rm-dot) / 2 - 1.5px); left: calc(-50% + var(--rm-dot) / 2 + 6px); right: calc(50% + var(--rm-dot) / 2 + 6px); height: 3px; background: var(--rm-line); border-radius: 3px; transition: background .3s; }
.roadmap .rm-step:first-child::before { display: none; }
.roadmap .rm-step.done::before, .roadmap .rm-step.current::before { background: var(--rm-done); }
.roadmap .rm-dot { position: relative; width: var(--rm-dot); height: var(--rm-dot); margin: 0 auto 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: calc(var(--rm-dot) * .38); font-weight: 700; line-height: 1; background: #fff; color: var(--rm-muted); border: 2px dashed #D4B8C6; transition: .25s ease; }
.roadmap .rm-step.done .rm-dot { background: var(--rm-done); border: 2px solid var(--rm-done); color: #fff; }
.roadmap .rm-step.current .rm-dot { background: var(--rm-brand); border: 2px solid var(--rm-brand); color: #fff; animation: rmPulse 1.8s infinite; }
.roadmap .rm-mail { position: absolute; right: -5px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--rm-brand); font-size: .62rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.roadmap .rm-step:not(.done) .rm-mail { display: none; }
.roadmap .rm-label { font-size: .85rem; font-weight: 600; color: var(--rm-muted); line-height: 1.25; overflow-wrap: anywhere; }
.roadmap .rm-step.done .rm-label { color: var(--rm-ink); }
.roadmap .rm-step.current .rm-label { color: var(--rm-brand); font-weight: 700; }
.roadmap .rm-note { display: block; font-size: .72rem; font-weight: 500; color: var(--rm-muted); margin-top: 2px; }
@keyframes rmPulse { 0%, 100% { box-shadow: 0 0 0 5px rgba(209, 35, 107, .15); } 50% { box-shadow: 0 0 0 9px rgba(209, 35, 107, .05); } } /* pulse สี magenta */

@media (max-width: 768px) { .roadmap { --rm-dot: 42px; padding: 18px; } .roadmap .rm-label { font-size: .78rem; } }
@media (max-width: 576px) { 
    .roadmap { --rm-dot: 34px; padding: 16px 12px; border-radius: 14px; } 
    .roadmap .rm-title { font-size: .95rem; } 
    .roadmap .rm-bar { margin-bottom: 16px; } 
    .roadmap .rm-step { padding: 0 2px; } 
    .roadmap .rm-step::before { left: calc(-50% + var(--rm-dot) / 2 + 3px); right: calc(50% + var(--rm-dot) / 2 + 3px); } 
    .roadmap .rm-label { font-size: .68rem; } 
    .roadmap .rm-note { font-size: .62rem; } 
    .roadmap .rm-mail { width: 16px; height: 16px; font-size: .5rem; right: -4px; bottom: -2px; } 
    .reg-page .reg-card { padding: 18px; } 
}
@media (max-width: 380px) { .roadmap .rm-note { display: none; } .roadmap .rm-label { font-size: .62rem; } }

/* ===== Hero ===== */
.reg-hero { background: linear-gradient(135deg, #D1236B 0%, #A31250 45%, #2D2769 100%); color: #fff; border-radius: 0 0 40px 40px; padding: 64px 0 120px; position: relative; overflow: hidden; } /* ปรับไล่สี Magenta -> Dark Magenta -> Indigo */
.reg-hero::after { content: ""; position: absolute; inset: auto -120px -160px auto; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.reg-hero .badge-pill { background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); padding: .45rem 1rem; border-radius: 999px; font-weight: 500; font-size: .9rem; }
.reg-hero h1 { font-weight: 800; letter-spacing: -.02em; font-size: clamp(2rem, 4vw, 3.2rem); }
.reg-wrap { margin-top: -80px; position: relative; z-index: 2; }