* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: #f5f7fb; color: #1f2937; }
a { color: #0057B8; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1100px, 92%); margin: 0 auto; }
.public-wrapper { min-height: 100vh; padding: 32px 0; }
.card { background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08); padding: 24px; margin-bottom: 20px; }
.event-header { text-align: center; }
.logo-row { display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.logo-row img { max-height: 86px; max-width: 240px; object-fit: contain; }
.event-title { margin: 8px 0; font-size: 2rem; }
.event-meta { color: #4b5563; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
label { display: block; font-weight: 700; margin-bottom: 8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="password"], select, textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 10px; padding: 11px 12px; font-size: 1rem; background: #fff; }
textarea { min-height: 120px; resize: vertical; }
.help { color: #6b7280; font-size: .92rem; }
.required { color: #b91c1c; }
.checkbox-line, .radio-line { display: flex; align-items: flex-start; gap: 8px; margin: 8px 0; font-weight: 400; }
.btn { display: inline-block; border: 0; border-radius: 10px; padding: 11px 18px; font-weight: 700; cursor: pointer; background: #0057B8; color: #fff; }
.btn:hover { opacity: .92; text-decoration: none; }
.btn.secondary { background: #374151; }
.btn.danger { background: #b91c1c; }
.btn.small { padding: 7px 10px; font-size: .9rem; }
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.info { background: #dbeafe; color: #1e40af; }
.admin-header { background: #111827; color: #fff; padding: 14px 0; margin-bottom: 24px; }
.admin-header .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.admin-header a { color: #fff; margin-left: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; border-bottom: 1px solid #e5e7eb; padding: 10px; vertical-align: top; }
th { background: #f9fafb; font-size: .92rem; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.login-box { max-width: 420px; margin: 60px auto; }
.muted { color: #6b7280; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.privacy-box { background: #f9fafb; border: 1px solid #e5e7eb; padding: 14px; border-radius: 10px; margin-bottom: 12px; }

.logo-row a, .footer-logo-row a { display: inline-flex; align-items: center; justify-content: center; }
.logo-row.logo-count-1 img { max-height: 110px; max-width: 320px; }
.logo-row.logo-count-2 img { max-height: 92px; max-width: 260px; }
.logo-row.logo-count-3 img, .logo-row.logo-count-4 img { max-height: 78px; max-width: 220px; }
.event-footer-logos { margin: 18px 0 4px; padding: 20px; text-align: center; background: #fff; border-radius: 14px; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); }
.footer-logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px 18px; justify-content: center; align-items: center; }
.footer-logo-row a { width: 100%; height: 92px; display: flex; align-items: center; justify-content: center; padding: 10px; background: #fff; border-radius: 10px; }
.footer-logo-row > img { width: 100%; height: 92px; max-width: none; max-height: none; padding: 10px; background: #fff; border-radius: 10px; object-fit: contain; }
.footer-logo-row a img { width: 100%; height: 72px; max-width: 100%; max-height: none; object-fit: contain; filter: none; }
.admin-logo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.admin-logo-item { border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px; background: #f9fafb; }
.admin-logo-item img { display: block; max-height: 90px; max-width: 100%; object-fit: contain; margin-bottom: 10px; background: #fff; border-radius: 8px; padding: 8px; }
.admin-logo-item .form-group { margin-bottom: 12px; }
@media (max-width: 760px) {
    .footer-logo-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
    .footer-logo-row a, .footer-logo-row > img { height: 82px; padding: 8px; }
    .footer-logo-row a img { height: 62px; }
}
@media (max-width: 620px) {
    .logo-row { gap: 14px; }
    .logo-row img { max-height: 70px; max-width: 160px; }
    .event-footer-logos { padding: 14px; }
    .footer-logo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 380px) {
    .footer-logo-row { grid-template-columns: 1fr; }
}

.admin-user {
    display: inline-block;
    opacity: .85;
    font-size: .95rem;
    margin-left: .75rem;
}
