@font-face {
  font-family: 'ABC Arizona Flare';
  src: url('../../assets/font/ABCArizonaFlare-Regular.woff2') format('woff2'),
    url('../../assets/font/ABCArizonaFlare-Regular.woff') format('woff');
  font-weight: normal;
}

:root {
  --lkk-cream: rgb(254, 244, 222);
  --lkk-red: rgb(222, 41, 33);
  --lkk-yellow: rgb(254, 171, 0);
}

* {
  box-sizing: border-box;
}

body {
  background-color: var(--lkk-cream);
  font-family: ABC Arizona Flare, serif;
}

.participate-page-bg {
  width: 100%;
  height: auto;
}

.info-page-content {
  background-image: url('../../assets/backgrounds/participate_page_bg_mid.jpg');
  background-size: contain;
}

.confirmation-content {
  margin-top: -5vh;
}

#contactSection {
  background-size: cover;
}

#faqSection {
  background-size: cover;
}

#faqSection p {
  text-align: center;
}

#firstRoundSection {
  background-size: cover;
}

#firstRoundSection p {
  text-align: center;
}

#aboutJudgesSection {
  background-size: cover;
}

#aboutJudgesSection p {
  text-align: center;
}

#contactSection input {
    width: 40vw;
}

.info-page-inner {
  margin-left: 20vw;
  margin-right: 20vw;
  text-align: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.info-page-inner p,
.info-page-inner li {
  text-align: left;
  line-height: 1.7;
  font-size: 24px;
}

.info-page-inner ol,
.info-page-inner ul {
  text-align: left;
  padding-left: 1.5rem;
}

h2 {
  color: var(--lkk-red);
  font-size: 6vh;
}

h3 {
  color: var(--lkk-red);
  font-size: 4vh;
  text-align: left;
}

/* Header controls */
.header-controls {
  position: fixed;
  top: 14px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 24px;
  padding: 8px 16px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 3px 6px;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.lang-btn:hover {
  color: #fff;
}

.lang-btn.active {
  color: var(--lkk-yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  pointer-events: none;
}

/* Home button */
.home-btn {
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 28px;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-decoration: none;
}

.home-btn:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* ===== Contact Form ===== */
.input-field {
  border: solid 2px var(--lkk-yellow);
  border-radius: 30px;
  text-align: left;
  padding: 10px;
  margin: 0 0 1rem 0;
}

.multi-line-input {
  display: flex;
  flex-direction: column;
}

.input-field label {
  margin-left: 20px;
  font-size: 20px;
  font-weight: 700;
  font-family: Arial, Helvetica, sans-serif, serif;
}

label.required::after {
  content: ' *';
  color: var(--lkk-red);
}

.input-field input,
.input-field textarea {
  border: none;
  background: transparent;
  font-size: 20px;
  font-weight: 500;
  font-family: Arial, Helvetica, sans-serif, serif;
  margin-left: 20px;
  width: 80%;
}

.input-field textarea {
  resize: vertical;
}

.field-error {
  color: red;
  font-weight: bold;
  display: none;
  text-align: left;
  margin-bottom: 0.5rem;
  margin-left: 20px;
}

.info-page-inner p.field-hint {
  text-align: left;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 1rem 20px;
  
}

.info-page-inner p.contact-subtitle {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  width: 110%;
}

.field-success {
  color: green;
  font-weight: bold;
  display: none;
  text-align: center;
  margin-top: 0.5rem;
}

.contact-submit-btn {
  background-image: url('../../assets/icons/button_icon_red.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border: none;
  color: white;
  font-size: 32px;
  font-weight: bold;
  padding: 32px 40px;
  cursor: pointer;
  width: 250px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 768px) {
  body {
    margin-left: 2vw;
    margin-right: 2vw;
    margin-top: 2vh;
  }

  .info-page-inner {
    margin-left: 2vw;
    margin-right: 2vw;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  h2 {
    font-size: 3.5vh;
  }

  h3 {
    font-size: 2.5vh;
  }

  .input-field {
    border-radius: 20px;
    padding: 8px;
  }

  .input-field label {
    font-size: 16px;
    margin-left: 10px;
  }

  .input-field input,
  .input-field textarea {
    font-size: 16px;
    margin-left: 10px;
    width: 85%;
  }

  .contact-submit-btn {
    font-size: 22px;
    padding: 25px 35px;
    width: auto;
  }
}

/* ===== Spinner Overlay ===== */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top-color: var(--lkk-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Success Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: #28a745;
  color: #fff;
  font-size: 36px;
  line-height: 64px;
  border-radius: 50%;
}

.modal-box h3 {
  text-align: center;
  color: var(--lkk-red);
  margin: 0 0 0.75rem;
}

.modal-box p {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 1.5rem;
  color: #333;
}

.modal-ok-btn {
  background: var(--lkk-red);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 12px 48px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-ok-btn:hover {
  background: #b71c1c;
}

/* Traditional Chinese font */
html[lang="zh-Hant"] * {
  font-family: 'Noto Sans TC', sans-serif;
}
