@font-face {
  font-family: "Commit Mono";
  src: url("../fonts/commit-mono/CommitMono-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Commit Mono";
  src: url("../fonts/commit-mono/CommitMono-Italic.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  position: relative;
  overflow-x: hidden;
}

.ev-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: 0;
}

.ev-main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 2rem 1.25rem 2rem;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
}

@media (min-width: 540px) {
  .ev-main {
    padding: 3rem 2rem 2rem;
  }
}

.ev-logo {
  max-width: 80%;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 2rem;
}

.ev-description {
  text-align: center;
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 400px;
  white-space: pre-line;
}

/* Form */
.ev-form {
  width: 100%;
  margin-bottom: 2rem;
}

.ev-field {
  margin-bottom: 0.75rem;
}

.ev-field input,
.ev-field textarea,
.ev-field select {
  width: 100%;
  padding: 0.85rem 0.75rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.ev-field input::placeholder,
.ev-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ev-field input:focus,
.ev-field textarea:focus,
.ev-field select:focus {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.5);
}

.ev-field select option {
  background: #1a1a2e;
  color: #fff;
}

.ev-field fieldset {
  border: none;
  padding: 0.75rem 0;
}

.ev-field legend {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.5rem;
}

.ev-required {
  color: rgba(255, 100, 100, 0.8);
  margin-left: 2px;
}

.ev-choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.ev-choice input {
  width: auto;
  accent-color: rgba(255, 255, 255, 0.6);
}

.ev-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

.ev-submit-row button {
  padding: 0.6rem 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}

.ev-submit-row button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.ev-submit-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ev-msg {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.ev-msg-ok {
  color: rgba(130, 255, 180, 0.9);
}

.ev-msg-err {
  color: rgba(255, 130, 130, 0.9);
}

/* Success */
.ev-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

.ev-success-text {
  font-size: 0.9rem;
  line-height: 2;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  max-width: 400px;
  white-space: pre-line;
}

/* Bottom */
.ev-bottom {
  text-align: center;
  margin-top: auto;
  padding-top: 1.5rem;
}

.ev-location {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
  line-height: 1.8;
}

.ev-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.ev-date-sep {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
}

.ev-deadline {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.5rem;
}

.ev-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding-top: 2rem;
  padding-bottom: 1rem;
  width: 100%;
}

.ev-footer-logo {
  height: 30px;
  width: auto;
  opacity: 0.7;
}

.ev-footer-sponsors {
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
}
