@font-face {
  font-family: 'Race Sport';
  src: url('font/Race Sport Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #16a34a;
  --green-dark: #0f7a37;
  --navy: #0f172a;
  --gray-100: #f4f6f5;
  --gray-300: #d9dfdc;
  --gray-500: #6b7a75;
  --gray-700: #374151;
  --red: #dc2626;
  --radius: 10px;
  --font-race: 'Race Sport', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-700);
  min-height: 100vh;
}
.bg-carousel {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.bg-carousel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 30, 0.6);
}
.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
.bg-slide.active { opacity: 1; }
header {
  background: #221047;
  color: #fff;
  padding: 40px 20px 32px;
  text-align: center;
}
header h1 {
  margin: 0 0 6px;
  font-family: var(--font-race);
  font-size: 2.1rem;
  letter-spacing: 0.5px;
  color: #EFBF04;
}
header p {
  margin: 0;
  color: #d7ffe4;
  font-size: 0.95rem;
}
.title-sponsor {
  margin-top: 20px;
}
.title-sponsor img {
  max-height: 70px;
  max-width: 220px;
  height: auto;
  width: auto;
}
.sponsor-footer {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sponsor-footer img {
  max-height: 60px;
  max-width: 180px;
  height: auto;
  width: auto;
}
main {
  max-width: 720px;
  margin: 30px auto 60px;
  padding: 0 16px;
}
form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  padding: 28px 24px 32px;
}
fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}
fieldset:last-of-type { margin-bottom: 0; }
legend {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  padding: 0 0 12px;
  border-bottom: 2px solid #221047;
  width: 100%;
  margin-bottom: 16px;
}
.field {
  margin-bottom: 16px;
}
.row {
  display: flex;
  gap: 16px;
}
.row .field { flex: 1; min-width: 0; }
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
label .req { color: var(--red); }
.info-wrap {
  position: relative;
  display: inline-block;
}
.info-icon {
  display: inline-block;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--gray-500);
  font-weight: 400;
  cursor: pointer;
}
.info-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 220px;
  background: var(--navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  z-index: 5;
}
.info-wrap:hover .info-tooltip,
.info-wrap.open .info-tooltip {
  display: block;
}
input[type="file"] {
  width: 100%;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}
input[type="text"],
input[type="tel"],
input[type="email"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--gray-700);
  transition: border-color 0.15s ease;
}
input:focus, select:focus {
  outline: none;
  border-color: #EFBF04;
}
input[readonly] {
  background: var(--gray-100);
  color: var(--gray-500);
}
select:disabled {
  background: var(--gray-100);
  color: var(--gray-500);
  cursor: not-allowed;
}
.hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}
.fee-amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #221047;
  flex: none;
}
.submit-btn {
  width: 100%;
  background: #221047;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
}
.submit-btn:hover { background: #2e1660; }
.status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}
.status.success { display: block; background: #f0fdf4; color: var(--green-dark); border: 1px solid var(--green); }
.status.error { display: block; background: #fef2f2; color: var(--red); border: 1px solid #fca5a5; }
@media (max-width: 480px) {
  .row { flex-direction: column; gap: 0; }
}
