/* register.css - /membership/register page specific styles. Requires redesign-core.css. */

/* Page hero band */
.reg-hero { position: relative; padding: 122px 0 30px; overflow: hidden; background: linear-gradient(180deg, var(--bg-tint), var(--bg) 80%); }
.reg-hero::before {
    content: ""; position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
    width: 1100px; height: 560px;
    background: radial-gradient(ellipse at center, rgba(255,102,0,0.13), transparent 62%);
    pointer-events: none; z-index: 0;
}
.reg-hero-inner { position: relative; z-index: 1; text-align: center; }
.reg-hero .pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--bg); font-size: 0.85rem; color: var(--muted);
    margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.reg-hero .pill b { color: var(--ink); font-weight: 700; }
.reg-hero h1 { margin-bottom: 16px; }
.reg-hero h1 .accent { color: var(--orange); }
.reg-hero .sub { color: var(--muted); font-size: 1.12rem; max-width: 620px; margin: 0 auto; }

/* Layout: form + sidebar */
.reg-section { padding: 40px 0 90px; }
.reg-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 36px; align-items: start; }

/* Form card */
.form-card { background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 38px; box-shadow: var(--shadow); transition: background-color .3s ease, border-color .3s ease; }
.form-step-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--orange); margin-bottom: 8px; }
.form-section + .form-section { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section h2 { font-size: 1.18rem; font-weight: 800; }
.form-section .hint { color: var(--muted); font-size: 0.92rem; margin: 6px 0 20px; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; color: var(--ink-2); margin-bottom: 7px; }
.field label .req { color: var(--orange); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
    width: 100%; background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 11px;
    padding: 13px 15px; font-size: 1rem; color: var(--ink); font-family: inherit; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--line-2); background: var(--bg);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field .field-note { font-size: 0.82rem; color: var(--muted-2); margin-top: 6px; }
.field input.error, .field select.error { border-color: #e0398b; }
label.error { color: #e0398b; font-size: 0.82rem; font-weight: 600; display: block; margin-top: 6px; }

/* Plan selector */
.plan-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 6px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-box {
    border: 1.5px solid var(--line-2); border-radius: 14px; padding: 20px 18px; transition: border-color .2s, box-shadow .2s, background .2s;
    background: var(--bg); height: 100%;
}
.plan-opt:hover .plan-box { border-color: var(--orange-2); }
.plan-opt input:checked + .plan-box { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-soft); background: #fffaf6; }
[data-theme="dark"] .plan-opt input:checked + .plan-box { background: var(--orange-soft); }
.plan-box .plan-name { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; color: var(--muted); }
.plan-box .plan-price { font-size: 2rem; font-weight: 900; letter-spacing: -0.03em; margin: 6px 0 2px; color: var(--ink); }
.plan-box .plan-price span { font-size: 0.85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-box .plan-sub { font-size: 0.85rem; color: var(--muted); }
.plan-save { display: inline-block; margin-top: 10px; background: var(--orange-soft); color: #c14b00; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; }
.plan-best { position: absolute; top: -11px; right: 14px; background: var(--orange); color: #fff; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; z-index: 2; }

/* Security check */
#ReCaptchContainer { margin-top: 4px; }
.g-captcha-message { display: block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; }

/* Submit area */
.submit-row { margin-top: 30px; }
.submit-row .btn { width: 100%; font-size: 1.1rem; padding: 18px; }
.submit-reassure { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 0.88rem; margin-top: 14px; text-align: center; }
.submit-reassure .material-icons { font-size: 17px; color: var(--orange); }
.post-note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--muted); font-size: 0.9rem; margin-top: 22px; display: flex; gap: 12px; align-items: flex-start; }
.post-note .material-icons { color: var(--orange); font-size: 20px; flex-shrink: 0; }
.login-line { text-align: center; margin-top: 24px; color: var(--muted); font-size: 0.95rem; }
.login-line a { color: var(--orange); font-weight: 700; }

/* Sidebar */
.side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.side-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: background-color .3s ease, border-color .3s ease; }
.side-card.tint { background: linear-gradient(170deg, var(--bg), var(--bg-tint)); border-color: var(--orange-soft); }
.side-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 16px; }
.benefit-list { list-style: none; padding: 0; margin: 0; }
.benefit-list li { display: flex; gap: 12px; padding: 9px 0; color: var(--ink-2); font-size: 0.95rem; align-items: flex-start; }
.benefit-list li .material-icons { color: var(--orange); font-size: 20px; flex-shrink: 0; }
.benefit-list li b { font-weight: 700; color: var(--ink); }

.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-stat { text-align: center; padding: 14px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.mini-stat .num { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }
.mini-stat .label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-top: 3px; }

.side-quote .stars { height: 18px; margin-bottom: 14px; }
.side-quote .stars img { height: 18px; width: auto; }
.side-quote blockquote { margin: 0 0 16px; font-size: 1rem; line-height: 1.55; color: var(--ink); font-weight: 500; }
.side-quote .author { display: flex; align-items: center; gap: 12px; }
.side-quote .author img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); }
.side-quote .author .name { font-weight: 700; font-size: 0.9rem; }
.side-quote .author .role { color: var(--muted); font-size: 0.82rem; }

.guarantee { display: flex; gap: 12px; align-items: center; color: var(--ink-2); font-size: 0.92rem; }
.guarantee .material-icons { color: var(--orange); font-size: 26px; }

@media (max-width: 980px) {
    .reg-grid { grid-template-columns: 1fr; }
    .side { position: static; order: -1; flex-direction: column; }
    /* On mobile, show only the most persuasive sidebar card above the form */
    .side .side-card.secondary { display: none; }
}
@media (max-width: 560px) {
    .form-card { padding: 24px; }
    .field-grid { grid-template-columns: 1fr; }
    .plan-toggle { grid-template-columns: 1fr; }
}
