:root {
    color-scheme: light;
    --page: #f7f5f3;
    --surface: #fff;
    --ink: #242021;
    --muted: #665e60;
    --line: #dce0e9;
    --brand: #c8101e;
    --brand-hover: #a30d18;
    --brand-soft: #fff0f1;
    --success: #17673d;
    --danger: #b42336;
    --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: 32px 20px; background: var(--page); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, h4, p { margin: 0 0 16px; }
h1 { font-size: clamp(1.7rem, 4vw, 2.35rem); line-height: 1.2; letter-spacing: -.035em; }
h2 { font-size: 1.35rem; line-height: 1.35; }
h3, h4 { font-size: 1.05rem; }
a { color: var(--brand); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.container { max-width: 820px; margin: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: clip; box-shadow: 0 8px 32px #24202108; }
.header { text-align: center; padding: 32px 40px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, #fff, #fff3f0); }
.header p:last-child { color: var(--muted); margin: 0; }
.eyebrow { color: var(--brand); font-size: .75rem; font-weight: 750; letter-spacing: .12em; }
#evento-logo { display: block; max-height: 200px; max-width: 100%; object-fit: contain; margin: 0 auto 16px; }
.content { padding: 32px 40px; }
.form-group { margin-bottom: 22px; min-width: 0; }
label { display: block; margin-bottom: 7px; font-size: .9rem; font-weight: 650; }
input, textarea, select { width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: var(--surface); border: 1px solid #bfc6d4; border-radius: 8px; }
input[type=checkbox] { width: auto; min-height: auto; accent-color: var(--brand); }
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
input::placeholder, textarea::placeholder { color: #697386; }
.required { color: var(--danger); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.type-selector { margin: 28px 0; }
.type-selector br { display: none; }
.type-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.type-btn { flex: 1; min-height: 50px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-weight: 650; }
.type-btn:hover:not(:disabled) { border-color: var(--brand); background: var(--brand-soft); }
.type-btn.active { background: var(--brand-soft); border: 2px solid var(--brand); color: var(--brand); }
.form-section { display: none; border-top: 1px solid var(--line); padding-top: 28px; }
.form-section.active { display: block; }
.section-title { margin-bottom: 24px; }
.file-upload { position: relative; }
.file-input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); border: 0; }
.file-label { display: flex; align-items: center; justify-content: center; padding: 28px 16px; border: 2px dashed #d89b9f; border-radius: 10px; background: #fff8f7; color: var(--brand); cursor: pointer; text-align: center; }
.file-label:hover, .drag-over .file-label { border-color: var(--brand); background: var(--brand-soft); }
.file-input:focus-visible + .file-label { outline: 3px solid var(--brand); outline-offset: 4px; }
.file-selected { display: none; padding: 14px; margin-top: 10px; border: 1px solid #a0cbb2; border-radius: 8px; background: #f1faf5; overflow-wrap: anywhere; }
.submit-btn { width: 100%; min-height: 48px; border: 0; border-radius: 9px; padding: 12px 20px; background: var(--brand); color: white; font-weight: 650; }
.submit-btn:hover:not(:disabled) { background: var(--brand-hover); }
progress { width: 100%; height: 12px; accent-color: var(--brand); }
.upload-status { color: var(--muted); font-size: .9rem; margin: 6px 0 14px; }
.success-message, .error-message { display: none; border-radius: 10px; padding: 18px; margin: 18px 0; overflow-wrap: anywhere; }
.success-message { background: #eff9f2; border: 1px solid #a0cbb2; color: var(--success); }
.error-message { background: #fff2f3; border: 1px solid #e7adb6; color: var(--danger); }
.info-box { padding: 22px; margin-top: 28px; background: #f6f7fb; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .9rem; }
.info-box h2 { color: var(--ink); font-size: 1.05rem; }
.info-box p:last-child { margin: 0; }
.admin-link { display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.admin-link a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.page-notice { padding: 14px 18px; border: 1px solid #e7adb6; border-radius: 9px; color: var(--danger); background: #fff2f3; margin-bottom: 20px; }
.page-notice a { display: inline-block; margin-left: 10px; font-weight: 650; }
.field-error { color: var(--danger); font-size: .85rem; margin-top: 6px; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) {
    body { padding: 16px 10px; }
    .header, .content { padding: 24px 20px; }
    .grid { grid-template-columns: 1fr; }
    .type-buttons { flex-direction: column; }
    .info-box { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.ideias-brandbar { max-width: 1400px; margin: 0 auto 24px; }
.ideias-brandbar a { display: inline-flex; align-items: center; gap: 22px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 750; }
.ideias-brandbar img { display: block; width: 154px; height: auto; }
.ideias-brandbar span { border-left: 1px solid var(--line); padding-left: 22px; }
.ideias-brandbar small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.ideias-footer { margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 12px; }
@media (max-width: 600px) { .ideias-brandbar img { width: 120px; } .ideias-brandbar a { gap: 14px; font-size: 17px; } .ideias-brandbar span { padding-left: 14px; } }
