/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2d4d;
  --gold:   #c89b3c;
  --gold-light: #f0d88a;
  --cream:  #faf7f2;
  --white:  #ffffff;
  --gray:   #6b7280;
  --light:  #f3f4f6;
  --border: #e5e7eb;
  --text:   #1f2937;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(0,0,0,.08);
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Header ===== */
header {
  background: var(--navy);
  color: var(--white);
  padding: 0;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-icon {
  width: 52px;
  height: 52px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
}

.header-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.header-text p {
  font-size: .9rem;
  opacity: .75;
  margin-top: 2px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  background: rgba(0,0,0,.15);
  padding: 8px 20px;
}

.breadcrumb-inner {
  max-width: 860px;
  margin: 0 auto;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
}

.breadcrumb a {
  color: var(--gold-light);
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

/* ===== Main layout ===== */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

/* ===== Section headings ===== */
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.section-heading .line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* ===== Card ===== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px 32px;
  margin-bottom: 28px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.card-desc {
  font-size: .88rem;
  color: var(--gray);
  margin-bottom: 22px;
}

/* ===== Form fields ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== Tablet (≤ 768px) ===== */
@media (max-width: 768px) {
  .header-text h1 { font-size: 1.25rem; }
  .card { padding: 24px 24px; }
  .event-banner { padding: 18px 20px; }
}

/* ===== Mobile (≤ 560px) ===== */
@media (max-width: 560px) {
  .header-text h1 { font-size: 1.1rem; }
  .header-text p { font-size: .82rem; }
  .header-icon { width: 42px; height: 42px; font-size: 20px; }

  .form-row { grid-template-columns: 1fr; }
  .card { padding: 18px 16px; }

  .event-banner { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; }
  .event-banner .eb-icon { font-size: 1.8rem; }

  .star-group label { font-size: 2.2rem; padding: 0 4px; }

  .btn-submit { width: 100%; text-align: center; padding: 14px; }

  .radio-group, .check-group { gap: 8px; }
  .radio-group label, .check-group label { font-size: .85rem; padding: 7px 12px; }
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

label .optional {
  font-weight: 400;
  color: var(--gray);
  font-size: .8rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: .93rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== Star rating ===== */
.star-group {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  justify-content: flex-end;
}

.star-group input { display: none; }

.star-group label {
  font-size: 1.8rem;
  color: #d1d5db;
  cursor: pointer;
  margin: 0;
  padding: 0 2px;
  transition: color .1s;
}

.star-group input:checked ~ label,
.star-group label:hover,
.star-group label:hover ~ label {
  color: var(--gold);
}

/* ===== Radio / Checkbox groups ===== */
.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.radio-group label, .check-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  padding: 6px 14px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  transition: border-color .15s, background .15s;
}

.radio-group input, .check-group input { display: none; }

.radio-group input:checked + label,
.check-group input:checked + label {
  border-color: var(--navy);
  background: rgba(26,45,77,.07);
  font-weight: 600;
}

/* ===== Submit button ===== */
.btn-submit {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  border-radius: 7px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  margin-top: 6px;
}

.btn-submit:hover { background: #263f6b; }

/* ===== Success message ===== */
.success-msg {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
  color: #15803d;
  font-weight: 600;
  text-align: center;
}

.success-msg .success-icon { font-size: 2rem; display: block; margin-bottom: 6px; }

/* ===== Event list (homepage) ===== */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.event-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s, box-shadow .15s, transform .12s;
  box-shadow: var(--shadow);
}

.event-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 18px rgba(0,0,0,.12);
  transform: translateY(-2px);
}

.event-card .ec-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.event-card .ec-name {
  font-size: .98rem;
  font-weight: 700;
  color: var(--navy);
}

.event-card .ec-desc {
  font-size: .82rem;
  color: var(--gray);
  line-height: 1.4;
}

.event-card .ec-arrow {
  margin-top: auto;
  font-size: .82rem;
  color: var(--gold);
  font-weight: 600;
}

/* ===== Event page banner ===== */
.event-banner {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.event-banner .eb-icon { font-size: 2.2rem; }

.event-banner h2 { font-size: 1.2rem; font-weight: 700; }

.event-banner p { font-size: .85rem; opacity: .75; margin-top: 3px; }

/* ===== Form section label ===== */
.form-section-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ===== Required mark ===== */
.required-mark {
  color: #dc2626;
  font-weight: 700;
}

/* ===== Rating matrix (Q5) ===== */
.rating-matrix {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
}

.matrix-row {
  display: grid;
  grid-template-columns: 1fr repeat(5, 44px);
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.matrix-row:last-child { border-bottom: none; }

.matrix-header {
  background: var(--light);
  font-size: .78rem;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.matrix-header span { text-align: center; padding: 8px 0; }
.matrix-header span:first-child { padding-left: 14px; text-align: left; }

.matrix-label {
  font-size: .88rem;
  color: var(--text);
  padding: 12px 14px;
  line-height: 1.3;
}

.matrix-row input[type="radio"] { display: none; }

.matrix-row label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray);
  cursor: pointer;
  border-radius: 6px;
  margin: 4px auto;
  transition: background .12s, color .12s;
}

.matrix-row input[type="radio"]:checked + label {
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
}

.matrix-row label:hover {
  background: var(--light);
  color: var(--navy);
}

.matrix-legend {
  font-size: .78rem;
  color: var(--gray);
  margin-top: 6px;
}

@media (max-width: 560px) {
  .matrix-row { grid-template-columns: 1fr repeat(5, 36px); }
  .matrix-row label { width: 36px; height: 36px; font-size: .8rem; }
  .matrix-label { font-size: .82rem; padding: 10px 10px; }
}

/* ===== Divider ===== */
.divider {
  border: none;
  border-top: 2px dashed var(--border);
  margin: 36px 0;
}

/* ===== Language toggle ===== */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border-color: rgba(255,255,255,.6);
}

.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

@media (max-width: 560px) {
  .lang-btn { font-size: .72rem; padding: 3px 8px; }
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  font-size: .8rem;
  color: var(--gray);
  border-top: 1px solid var(--border);
}