/* praison-submit — Submit Form Styles */
/* Mirrors praison-ai-chat dark theme for visual consistency */

.praison-submit-page .wrap { max-width: 860px; margin: 0 auto; }

/* Hero */
.submit-hero {
    position: relative;
    text-align: center;
    padding: 3rem 1.5rem 2rem;
    overflow: hidden;
}
.submit-hero-glow {
    position: absolute;
    top: -60px; left: 50%; transform: translateX(-50%);
    width: 400px; height: 200px;
    background: radial-gradient(ellipse at center, rgba(99,102,241,0.35) 0%, transparent 70%);
    pointer-events: none;
}
.submit-hero-chords .submit-hero-glow {
    background: radial-gradient(ellipse at center, rgba(16,185,129,0.35) 0%, transparent 70%);
}
.submit-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.5rem;
}
.submit-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* Container */
.submit-container {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    margin: 0 0 2rem;
}

/* Chord guide box */
.chord-notation-guide {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}
.chord-notation-guide h3 {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6ee7b7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.chord-notation-guide pre {
    background: rgba(0,0,0,0.3);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-family: 'Noto Sans Tamil', 'Latha', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre-wrap;
    margin: 0.5rem 0;
}
.guide-note { font-size: 0.85rem; color: #64748b; margin: 0.5rem 0 0; }

/* Form */
.submit-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.02em;
}
.required { color: #f87171; margin-left: 2px; }
.optional { color: #475569; font-weight: 400; font-size: 0.8rem; }

.form-group input,
.form-group textarea,
.form-group select {
    background: #0f172a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: 0.95rem;
    font-family: 'Noto Sans Tamil', 'Latha', -apple-system, sans-serif;
    padding: 0.65rem 0.9rem;
    resize: vertical;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #334155; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-group select option { background: #1e293b; }
.field-hint { font-size: 0.78rem; color: #475569; margin: 0; }
.field-error { border-color: #f87171 !important; }

/* Notice */
.form-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #64748b;
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.form-notice svg { flex-shrink: 0; color: #818cf8; margin-top: 1px; }

/* Button */
.submit-btn {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    transition: opacity 0.2s, transform 0.15s;
    align-self: flex-start;
}
.submit-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Result messages */
.submit-result {
    padding: 0.9rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.result-success {
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.3);
    color: #6ee7b7;
}
.result-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.25);
    color: #fca5a5;
}

/* Duplicate warning (live pre-check) */
.dedup-container { margin-bottom: 0.5rem; }
.dedup-warning {
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.3);
    border-radius: 8px;
    color: #fde68a;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
}
.dedup-warning strong { display: block; margin-bottom: 0.4rem; }
.dedup-warning ul { margin: 0.25rem 0 0.5rem 1rem; padding: 0; }
.dedup-warning li { margin-bottom: 0.2rem; }
.dedup-warning a { color: #93c5fd; text-decoration: underline; }
.dedup-warning p { margin: 0.4rem 0 0; color: #94a3b8; }

/* Match list in submission error */
.dedup-matches { margin: 0.5rem 0 0.5rem 1rem; padding: 0; }
.dedup-matches li { margin-bottom: 0.25rem; }
.dedup-matches a { color: #93c5fd; text-decoration: underline; }
.match-reason { color: #64748b; font-size: 0.8rem; }
.dedup-note { font-size: 0.82rem; color: #64748b; margin-top: 0.5rem; }
