/* MemberCategoryDemo.css
   Scoped under .mcd. Standalone demo of the new "select category → verify/
   enter details" registration flow. Not wired to any backend — mock data
   only, for client review before real implementation. */

.mcd, .mcd * {
    box-sizing: border-box;
}

.mcd {
    --mcd-navy: #080047;
    --mcd-gold: #e4c479;
    --mcd-gold-deep: #b5872a;
    --mcd-cream: #fffdf7;
    --mcd-line: #ece7d8;
    --mcd-red: #a32224;
    --mcd-green: #1e7d46;
    max-width: 720px;
    margin: 0 auto;
    padding: 36px 16px 40px;
    color: #1c1c2e;
    font-size: 15px;
}

/* ---------- Payment schedule wrap (caps width without needing Bootstrap) ---------- */

.mcd-payment-wrap {
    max-width: 1160px;
    margin: 50px auto 0;
    padding: 0 16px 60px;
}

/* ---------- Brand strip (matches Register2027.aspx) ---------- */

.mcd-brand-strip {
    background: #3d2717;
    padding: 22px 16px;
    text-align: center;
}

.mcd-brand-logo {
    height: 64px;
    width: auto;
}

/* ---------- Demo notice ---------- */

.mcd-demo-notice {
    background: #fff6e0;
    border-bottom: 1px solid var(--mcd-gold);
    color: #6b4e00;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    letter-spacing: .2px;
}

/* ---------- Progress ---------- */

.mcd-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.mcd-progress-dot {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #9a9ab0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mcd-progress-dot span.mcd-dot-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ece7f5;
    color: #7a7a95;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.mcd-progress-dot.is-active {
    color: var(--mcd-navy);
}

.mcd-progress-dot.is-active span.mcd-dot-num {
    background: var(--mcd-navy);
    color: #fff;
}

.mcd-progress-rule {
    width: 40px;
    height: 1px;
    background: var(--mcd-line);
}

/* ---------- Card ---------- */

.mcd-card {
    background: #fff;
    border: 1px solid var(--mcd-line);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(8, 0, 71, .06);
}

@media (max-width: 480px) {
    .mcd-card {
        padding: 20px;
    }
}

.mcd-card h2 {
    font-size: 19px;
    color: var(--mcd-navy);
    margin: 0 0 6px;
}

.mcd-card .mcd-sub {
    font-size: 13.5px;
    color: #6a6a80;
    margin: 0 0 22px;
}

/* ---------- Category select ---------- */

.mcd-select {
    width: 100%;
    height: 54px;
    padding: 0 14px;
    font-size: 16px;
    border: 1px solid rgba(8, 0, 71, .3);
    border-radius: 8px;
    background: #fff;
    color: var(--mcd-navy);
    margin-bottom: 18px;
}

.mcd-select:focus {
    outline: none;
    border-color: var(--mcd-gold-deep);
    box-shadow: 0 0 0 3px rgba(228, 196, 121, .35);
}

.mcd-category-hint {
    display: none;
    font-size: 13px;
    background: var(--mcd-cream);
    border: 1px dashed var(--mcd-gold);
    border-radius: 8px;
    padding: 10px 14px;
    color: #6b4e00;
    margin-bottom: 22px;
}

.mcd-category-hint.is-visible {
    display: block;
}

/* ---------- Buttons ---------- */

.mcd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 26px;
    border-radius: 8px;
    border: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
    cursor: pointer;
    background: var(--mcd-red);
    color: #fff;
    width: 100%;
    transition: box-shadow .2s ease, opacity .2s ease;
}

.mcd-btn:hover {
    box-shadow: 6px 6px 0 var(--mcd-navy);
}

.mcd-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    box-shadow: none;
}

.mcd-btn-secondary {
    background: #fff;
    color: var(--mcd-navy);
    border: 1px solid rgba(8, 0, 71, .3);
    width: auto;
    height: 44px;
    padding: 0 18px;
}

.mcd-btn-secondary:hover {
    box-shadow: 4px 4px 0 var(--mcd-gold);
}

.mcd-back {
    background: none;
    border: 0;
    color: var(--mcd-navy);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mcd-back:hover {
    text-decoration: underline;
}

/* ---------- Category badge ---------- */

.mcd-badge {
    display: inline-block;
    background: var(--mcd-navy);
    color: var(--mcd-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

/* ---------- Sample chips (demo helper) ---------- */

.mcd-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 22px;
}

.mcd-chip {
    font-size: 12.5px;
    font-weight: 700;
    background: var(--mcd-cream);
    border: 1px solid var(--mcd-gold);
    color: var(--mcd-gold-deep);
    border-radius: 999px;
    padding: 6px 13px;
    cursor: pointer;
}

.mcd-chip:hover {
    background: var(--mcd-gold);
    color: #4a3300;
}

/* ---------- Lookup row ---------- */

.mcd-lookup-row {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.mcd-lookup-row .mcd-input {
    flex: 1;
}

.mcd-lookup-row .mcd-btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .mcd-lookup-row {
        flex-direction: column;
    }
    .mcd-lookup-row .mcd-btn {
        width: 100%;
    }
}

.mcd-error {
    display: none;
    font-size: 13.5px;
    color: var(--mcd-red);
    font-weight: 600;
    margin: 4px 0 18px;
}

.mcd-error.is-visible {
    display: block;
}

/* ---------- Fields ---------- */

.mcd-field {
    margin-bottom: 18px;
}

.mcd-label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mcd-navy);
    margin-bottom: 6px;
}

.mcd-input {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    border: 1px solid rgba(8, 0, 71, .3);
    border-radius: 8px;
    color: var(--mcd-navy);
    background: #fff;
}

.mcd-input:focus {
    outline: none;
    border-color: var(--mcd-gold-deep);
    box-shadow: 0 0 0 3px rgba(228, 196, 121, .35);
}

.mcd-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}

@media (max-width: 560px) {
    .mcd-grid-2 {
        grid-template-columns: 1fr;
    }
}

.mcd-upload {
    border: 1px dashed rgba(8, 0, 71, .35);
    border-radius: 8px;
    padding: 14px;
    background: var(--mcd-cream);
}

.mcd-upload input[type="file"] {
    width: 100%;
    font-size: 13.5px;
}

.mcd-upload-note {
    font-size: 12px;
    color: #6a6a80;
    margin-top: 6px;
}

/* ---------- Result reveal ---------- */

.mcd-result {
    display: none;
    border-top: 1px solid var(--mcd-line);
    margin-top: 6px;
    padding-top: 22px;
}

.mcd-result.is-visible {
    display: block;
}

.mcd-result-flag {
    font-size: 13px;
    font-weight: 700;
    color: var(--mcd-green);
    background: #eaf7ef;
    border: 1px solid #bfe6cc;
    border-radius: 8px;
    padding: 9px 14px;
    margin-bottom: 20px;
}

/* ---------- Panels ---------- */

.mcd-panel {
    display: none;
}

.mcd-panel.is-active {
    display: block;
}

/* ---------- Done state ---------- */

.mcd-done {
    display: none;
    text-align: center;
    padding: 20px 0 6px;
}

.mcd-done.is-visible {
    display: block;
}

.mcd-done-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #eaf7ef;
    border: 1px solid #bfe6cc;
    color: var(--mcd-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 24px;
    font-weight: 800;
}

.mcd-done h3 {
    color: var(--mcd-navy);
    margin: 0 0 8px;
}

.mcd-done p {
    color: #6a6a80;
    font-size: 13.5px;
    max-width: 380px;
    margin: 0 auto;
}

/* ---------- Screens ---------- */

.mcd-screen {
    display: none;
}

.mcd-screen.is-active {
    display: block;
}

/* ---------- Step 3: option cards (hotel / conference) ---------- */

.mcd-opt-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcd-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--mcd-line);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.mcd-opt:hover {
    border-color: var(--mcd-gold);
}

.mcd-opt.is-selected {
    border-color: var(--mcd-navy);
    background: #fbfaff;
    box-shadow: 0 0 0 3px rgba(8, 0, 71, .06);
}

.mcd-opt input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--mcd-navy);
    flex-shrink: 0;
}

.mcd-opt-body {
    flex: 1;
}

.mcd-opt-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.mcd-opt-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--mcd-navy);
}

.mcd-opt-price {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--mcd-gold-deep);
    white-space: nowrap;
}

.mcd-opt-desc {
    display: block;
    font-size: 12.5px;
    color: #6a6a80;
    margin-top: 3px;
}

/* ---------- Hotel N.A. note ---------- */

.mcd-note {
    display: none;
    font-size: 13px;
    background: var(--mcd-cream);
    border: 1px dashed var(--mcd-gold);
    border-radius: 8px;
    padding: 10px 14px;
    color: #6b4e00;
    margin-bottom: 18px;
}

.mcd-note.is-visible {
    display: block;
}

/* ---------- Voucher ---------- */

.mcd-voucher-flag {
    display: none;
    font-size: 13px;
    font-weight: 700;
    color: var(--mcd-green);
    background: #eaf7ef;
    border: 1px solid #bfe6cc;
    border-radius: 8px;
    padding: 9px 14px;
    margin: 10px 0 4px;
}

.mcd-voucher-flag.is-visible {
    display: block;
}

/* ---------- Live calculation summary ---------- */

.mcd-summary {
    border: 1px solid var(--mcd-line);
    border-radius: 12px;
    padding: 18px 20px;
    background: var(--mcd-cream);
    margin: 6px 0 22px;
}

.mcd-summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #3a3a52;
    padding: 7px 0;
    border-bottom: 1px dashed var(--mcd-line);
}

.mcd-summary-row span:last-child {
    font-weight: 700;
    color: var(--mcd-navy);
    white-space: nowrap;
}

.mcd-summary-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--mcd-navy);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.mcd-summary-total span:last-child {
    font-size: 22px;
    color: var(--mcd-red);
    letter-spacing: 0;
}

.mcd-summary-note {
    font-size: 11.5px;
    line-height: 1.5;
    color: #6a6a80;
    margin: 10px 0 0;
}
