body {
  font-family: 'Oswald', sans-serif;
  text-align: center;
  margin: 0;
  padding: 20px;
  background-color: #f3f3f3;
}

p, body {
  font-size: clamp(3rem, 4.5vw, 1.8rem); /* min 19.2px, scales, max 28.8px */
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400; /* Regular */
  letter-spacing: 0.1em;
  color: black;
  line-height: 1.5;
}

h3 {
  font-weight: 400;       /* ExtraLight */
  font-size: clamp(2rem, 8vw, 3rem); /* min 28.8px, scales with screen, max 48px */
  letter-spacing: 0.2em;
  margin: 0;
  color: #000;
  text-transform: uppercase;
  margin:0;
  line-height:1em;
}

.sponsor {
  padding: 10px;
  background:#000000;
  color: #ffffff;
  display:inline-block;
  max-width: 200px;
  margin: 2px;
}

strong {
  color:#940203;
}

a {
  text-decoration: none;
  color: #029493;
}

.header1 {
  font-weight: 200;       /* ExtraLight */
  font-size: clamp(1.8rem, 8vw, 3rem); /* min 28.8px, scales with screen, max 48px */
  letter-spacing: 0.2em;
  color: #808080;
  text-transform: uppercase;
}

.title {
  font-weight: 200;       /* ExtraLight */
  font-size: clamp(5rem, 10vw, 3.5rem); /* min 32px, scales, max 56px */
  letter-spacing: 0.2em;
  color: #940203;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1em;
  margin: 0;
  margin-bottom: 20px;
}

.subtitle {
  font-weight: 400;       /* ExtraLight */
  font-size: clamp(2rem, 8vw, 3rem); /* min 28.8px, scales with screen, max 48px */
  letter-spacing: 0.2em;
  color: #940203;
  text-transform: uppercase;
  margin:0;
}

.logo {
  width: 90%;           /* mobile */
  max-width: 700px;     /* desktop */
  height: auto;
  margin: 0 auto;
  display: block;
}

.sponsor-logo {
  width: 40%;           /* mobile */
  height: auto;
  margin: 0 auto;
  display: inline-block;
}

.accordion {
  margin: 5px;
}

.accordion-button {
  background: #940203;
  border: none;
  cursor: pointer;
  font-size: clamp(1.8rem, 8vw, 3rem); /* responsive font */
  padding: 10px 20px;
  margin: 2px 0;
  color: #fff;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box; /* ensures padding doesn't shrink width */
  background: #940203;
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  font-size: clamp(3rem, 4vw, 1.2rem);
  letter-spacing: 0.1em;
}

.accordion-icon {
  display: inline-block;
  transition: transform 0.4s ease;
  color: #fff;
  font-size: clamp(2rem, 2vw, 2rem);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease;
  padding: 0 20px;
  text-align: left;
  margin-bottom: 20px;
  background: rgba(128, 128, 128, 0.2);
}

form {
  display: flex;
  flex-direction: column;
  width: 80%;
  font-size: clamp(1.8rem, 8vw, 3rem); /* responsive font */
  padding: 12px 20px;
  margin: 10px auto;
}

input, select, textarea, button {
  width: 100%;
  font-weight: 300;
  font-size: clamp(1.8rem, 8vw, 3rem); /* responsive font */
  padding: 0.3em;
  margin: 5px 0;
  box-sizing: border-box;
  font-size: clamp(3rem, 4.5vw, 1.8rem);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  border: 1px #aaa solid;
}

button {
  background: #940203;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

label {
  color: #940203;
  font-weight: 400;
  letter-spacing: 0;
}

.container {
  padding: 15px; /* small padding for phones */
  max-width: 1200px;  /* optional, keeps content from stretching too much on large screens */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Tabs for forms */
.form-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.tab-button {
  padding: 8px 15px;
  margin: 0 5px;
  cursor: pointer;
  background: #ddd;
  border: none;
  font-weight: 200;
  font-size: clamp(1.8rem, 8vw, 3rem); /* responsive font */
  transition: background 0.3s;
}

.tab-button.active {
  background: #aaa;
  color: #ffffff;
}

/* Forms inside accordion */
/* Smooth tab form animation */

form > div {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
}

.form-row {
  margin: 0;
}

.tab-form {
  display: flex;             /* always flex for alignment */
  flex-direction: column;
  align-items: center;
  margin: 0 auto;         /* center horizontally */
  width: 100%;                /* 75% of parent/container */
  box-sizing: border-box;    /* includes padding in width */
  overflow: hidden;
  max-height: 0;
  padding: 0;                /* animate padding if needed */
  transition: max-height 0.6s ease, padding 0.6s ease;
}

.tab-form.active {
  max-height: 2000px;  /* large enough to fit all content */
  padding: 20px 0;     /* optional padding animation */
}  

.tab-form input,
.tab-form select,
.tab-form textarea,
.tab-form button {
  width: 100%;               /* 100% of form width (75% of screen) */
  box-sizing: border-box;    /* ensure padding doesn't break width */
}

/* Form selection buttons */
.form-selection {
  display: block;
  justify-content: center;
  margin: 0;
  font-size: clamp(2rem, 4vw, 1.2rem);
}

.form-link {
  padding: 10px 20px;
  margin: 2px 0;
  cursor: pointer;
  background: #940203;
  color: #fff;
  border: none;
  font-family: 'Oswald', sans-serif;
  font-weight: 200;
  font-size: clamp(3rem, 4vw, 1.2rem);
  transition: background 0.3s ease, color 0.3s ease;
  letter-spacing: 0.1em;
}

.form-link:hover, .form-link.active  {
  background: #808080;
  color: #aaa;
}

/* Popup */
.popup {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: #000000;
  color: #fff;
  text-align:center;
  padding: 15px 25px;
  border-radius: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.popup > p {
  color: #fff;
}

.popup.show {
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  body {
    padding: 0 8em;
  }
  h1, .title {
    font-size: 40px;
  }
  h2, h3, .subtitle {
    font-size: 30px;
  }
  p, h2, h3, .subtitle, .header1, .form, button, .accordion, .accordion-button, .tab-button, form, input, select, textarea, button, .form-selection, .form-link {
    font-size: 20px;
  }
  .logo {
    width: 60%;     
  }
}
