/* Axion Radar — signup.php styles (moved out of the page's inline <style> block). */

:root {
    /* Matches Pilot's own signup (register.html) palette — same primary/accent/danger/success
       values — so the two products' sign-up flows read as one family, not two different apps. */
    --accent: #3498db; --accent-hover: #2980b9; --primary: #2c3e50; --success: #27ae60;
    --bg: #f4f7f6; --panel: #ffffff; --border: #ddd; --border-soft: #eee;
    --text-main: #333333; --text-dim: #7f8c8d; --axion-red: #E60005;
}
html { height: 100%; }
body {
    /* Transparent by default so an embedding WordPress page's own background shows through
       seamlessly around the card — set to var(--bg) by JS below only when this page is opened
       standalone (not in an iframe), same convention as Pilot's register.html. */
    background-color: transparent; color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex; justify-content: center; align-items: flex-start;
    min-height: 100vh; min-height: 100dvh; margin: 0; padding: 18px 16px; box-sizing: border-box;
}
.signup-container {
    background-color: var(--panel); border: none;
    border-radius: 12px; padding: 26px 32px; width: 100%; max-width: 760px;
    box-sizing: border-box;
}
.signup-container { text-align: center; }
.logo-main { max-width: 200px; margin-bottom: 10px; }
.logo-sub  { max-width: 100px; margin-bottom: 22px; vertical-align: middle; }
h2.section-title {
    text-align: left; font-size: 13px; color: var(--primary); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 700; margin: 0 0 10px; padding-bottom: 6px;
    border-bottom: 1px solid var(--border-soft);
}
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 170px; }
.form-group { margin-bottom: 12px; text-align: left; }
.form-group label {
    display: block; font-size: 13px; color: var(--text-dim);
    margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
}
.form-group input, .form-group select {
    width: 100%; padding: 12px; background-color: #fff;
    border: 1px solid var(--border); border-radius: 6px; color: var(--text-main);
    box-sizing: border-box; font-size: 15px; transition: border-color 0.2s; font-family: inherit;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-group input:disabled { opacity: 0.5; }
.form-hint { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.interval-toggle { display: flex; gap: 8px; }
.interval-toggle button {
    flex: 1; padding: 10px; background: #f7f9fa; border: 1px solid var(--border);
    border-radius: 6px; color: var(--text-dim); cursor: pointer; font-size: 14px; font-family: inherit;
}
.interval-toggle button.active { background: rgba(52,152,219,0.15); border-color: var(--accent); color: var(--accent); font-weight: 700; }
.price-preview {
    background: rgba(52,152,219,0.08); border: 1px solid rgba(52,152,219,0.3);
    border-radius: 8px; padding: 12px; text-align: center; margin: 4px 0 14px;
}
.price-preview .amount { font-size: 28px; font-weight: 800; color: var(--accent); }
.price-preview .period { font-size: 13px; color: var(--text-dim); }
.account-type-row { display: flex; gap: 12px; margin-bottom: 18px; }
.account-type-card {
    flex: 1; text-align: left; background: #f7f9fa; border: 1px solid var(--border);
    border-radius: 8px; padding: 14px 16px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
    display: block;
}
.account-type-card input { position: absolute; opacity: 0; pointer-events: none; }
.account-type-card.active { border-color: var(--accent); background: rgba(52,152,219,0.08); }
.atc-title { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.atc-sub { font-size: 12px; color: var(--text-dim); line-height: 1.4; }
.checkbox-row { display: flex; align-items: center; gap: 8px; text-align: left; margin-bottom: 20px; }
.checkbox-row input { width: 16px; height: 16px; flex-shrink: 0; }
.checkbox-row label { font-size: 13px; color: var(--text-main); text-transform: none; font-weight: 400; letter-spacing: normal; margin: 0; }
.btn-submit {
    width: 100%; background-color: var(--accent); color: #fff;
    border: none; padding: 14px; border-radius: 6px; font-size: 15px;
    font-weight: bold; cursor: pointer; margin-top: 10px; transition: background-color 0.2s;
}
.btn-submit:hover { background-color: var(--accent-hover); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
    border-radius: 50%; animation: spin 0.7s linear infinite;
    vertical-align: middle; margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.error-message {
    color: var(--axion-red); background: #fdeaea;
    border: 1px solid rgba(230,0,5,0.3); padding: 10px; border-radius: 6px;
    font-size: 13px; margin-bottom: 20px; font-weight: 600; text-align: left;
}
.info-message {
    color: #555; background: #f7f9fa;
    border: 1px solid var(--border-soft); padding: 10px; border-radius: 6px;
    font-size: 13px; margin-bottom: 20px; text-align: left;
}
.login-link { font-size: 13px; color: var(--text-dim); margin-top: 20px; }
.login-link a { color: var(--accent); text-decoration: none; }
.login-link a:hover { text-decoration: underline; }

/* ── Step wizard ── */
.step-progress { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 16px; }
.step-dot {
    width: 28px; height: 28px; border-radius: 50%; background: #f7f9fa; border: 1px solid var(--border);
    color: var(--text-dim); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.2s;
}
.step-dot.done { background: var(--accent); border-color: var(--accent); color: #fff; }
.step-dot.current { border-color: var(--accent); color: var(--accent); }
.step-line { width: 24px; height: 1px; background: var(--border); flex-shrink: 0; }
.step-line.done { background: var(--accent); }
.step-label { text-align: left; font-size: 13px; color: var(--text-dim); margin: -8px 0 14px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.step-nav { display: flex; gap: 10px; margin-top: 10px; }
.step-nav .btn-submit { margin-top: 0; flex: 1; width: auto; }
.btn-back {
    flex: 0 0 auto; background: none; border: 1px solid var(--border); color: var(--text-dim);
    padding: 14px 20px; border-radius: 6px; font-size: 15px; cursor: pointer; font-family: inherit;
}
.btn-back:hover { border-color: var(--text-dim); color: var(--text-main); }
.field-error { color: var(--axion-red); font-size: 12px; margin-top: -10px; margin-bottom: 14px; display: none; text-align: left; }

@media (max-width: 480px) {
    .signup-container { padding: 24px 20px; }
    .logo-main { max-width: 160px; }
    .step-line { width: 14px; }
}
