/* ===== style.css – SubJudice.art Unified Styles ===== */

/* ---------- Variables ---------- */
:root {
    --bg-dark: #0a0c0e;
    --bg-card: #101316;
    --bg-panel: #1a1f26;
    --bg-elevated: #1e242c;
    --bg-input: #1c2128;
    --border-color: #2a2f35;
    --border-light: #373e48;
    --border-panel: #3f4853;
    --accent-gold: #c0a062;
    --accent-gold-light: #e0b87b;
    --accent-gold-dark: #5e4e32;
    --text-primary: #ffffff;
    --text-secondary: #e4e7eb;
    --text-muted: #b0b6bd;
    --text-dim: #9aa2af;
    --text-dark: #0a0c0e;
    --success: lightgreen;
    --warning: orange;
    --error: #ff6b6b;
}

/* ---------- Base ---------- */
body {
    margin: 0;
    background-color: var(--bg-dark);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 2rem 1rem;
}

/* ---------- Cards ---------- */
.form-container, .success-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
    overflow: auto;
}

/* ---------- Header Images ---------- */
.image-row {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
}

.image-box {
    flex: 1 1 0;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid #444c56;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

.image-box img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .image-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* ---------- Typography ---------- */
h1 {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-top: 0;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-gold);
    padding-left: 1.2rem;
    clear: both;
}

.subhead {
    font-size: 1.1rem;
    font-weight: 350;
    color: var(--text-muted);
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    padding-left: 1.6rem;
}

/* ---------- Intro Panel ---------- */
.intro {
    margin-bottom: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-panel);
    border-radius: 12px;
    border-left: 3px solid var(--accent-gold);
}

.intro p {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #d1d5db;
}
.intro p:last-child {
    margin-bottom: 0;
}
.intro strong {
    color: var(--text-primary);
}
.intro a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold-dark);
}
.intro a:hover {
    border-bottom-color: var(--accent-gold);
}

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 1.75rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 450;
    color: #e0e4e9;
    font-size: 1rem;
}

input, select, textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(192, 160, 98, 0.2);
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cbd0d6'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
}

.row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.row .form-group {
    flex: 1 1 200px;
}

.file-note {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

/* ---------- Fee Panel ---------- */
.fee-panel {
    background: var(--bg-elevated);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 1.5rem 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border: 1px solid var(--border-panel);
}

.fee-label {
    font-size: 1.1rem;
    font-weight: 400;
    color: #cbd0d6;
}

.fee-amount {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #2c343e;
    padding: 0.5rem 1.5rem;
    border-radius: 40px;
    border: 1px solid #5e6b7a;
    line-height: 1;
}

.fee-note {
    font-size: 0.9rem;
    color: var(--text-dim);
    width: 100%;
    margin-top: 0.75rem;
    text-align: right;
    border-top: 1px dashed var(--border-panel);
    padding-top: 0.75rem;
}

/* ---------- Terms Group ---------- */
.terms-group {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-panel);
    border-radius: 12px;
    border-left: 3px solid var(--accent-gold);
}

.checkbox-item {
    margin-bottom: 1.2rem;
}
.checkbox-item:last-child {
    margin-bottom: 0;
}
.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 0.75rem;
    accent-color: var(--accent-gold);
    transform: scale(1.1);
    vertical-align: middle;
}
.checkbox-item label {
    color: #e0e4e9;
    font-weight: 400;
    font-size: 0.95rem;
    display: inline;
    vertical-align: middle;
}

details.terms-details {
    margin-top: 0.5rem;
    margin-left: 2rem;
}
details.terms-details summary {
    color: var(--accent-gold);
    cursor: pointer;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--accent-gold-dark);
    display: inline-block;
}
details.terms-details div {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #0f141a;
    border-radius: 8px;
    border: 1px solid #2f3842;
    font-size: 0.85rem;
    color: #b0b6bd;
    max-height: 200px;
    overflow-y: auto;
}

/* ---------- Buttons ---------- */
.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--text-dark);
    font-weight: 600;
    padding: 1rem 2rem;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1 1 auto;
    text-align: center;
    border: 1px solid var(--accent-gold-light);
    text-decoration: none;
    display: inline-block;
}
.btn-primary:hover {
    background: #d4b078;
}

.btn-secondary {
    background: transparent;
    color: #cbd0d6;
    font-weight: 500;
    padding: 1rem 2rem;
    border: 1px solid #4f5a66;
    border-radius: 40px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1 1 auto;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}
.btn-secondary:hover {
    background: #2a3038;
}

/* ---------- Result Box (vote-balance) ---------- */
.result-box {
    background: var(--bg-elevated);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 2rem 0 1rem;
    border: 1px solid var(--border-panel);
    text-align: center;
}
.balance-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--text-primary);
    background: #2c343e;
    padding: 0.5rem 2rem;
    border-radius: 60px;
    display: inline-block;
    margin: 0.5rem 0;
    border: 1px solid #5e6b7a;
}
.balance-note {
    color: var(--accent-gold);
    font-size: 1rem;
}

/* ---------- Flash Messages ---------- */
.flash-messages {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #2a1a1a;
    border-left: 4px solid var(--error);
    color: var(--error);
    border-radius: 8px;
}

/* ---------- Back Link ---------- */
.back-link {
    margin-top: 2rem;
    text-align: center;
}
.back-link a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold-dark);
}
.back-link a:hover {
    border-bottom-color: var(--accent-gold);
}

/* ---------- Footnote ---------- */
.footnote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-dim);
    text-align: center;
}
.footnote a {
    color: var(--accent-gold);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-gold-dark);
}
.footnote a:hover {
    border-bottom-color: var(--accent-gold);
}

/* ---------- Utility ---------- */
.text-ok { color: lightgreen; }
.text-warn { color: orange; }
.text-error { color: #ff6b6b; }
