/* Ebenhaezer George Renaldi Muljadi - 2702230461 */

.event-container {
  background-color: #ffffff;
  max-width: 1100px;
  margin: 5rem auto;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.event-content {
  display: flex;
  flex-direction: column;
}

.event-banner {
  position: relative;
  flex: 1;
  min-height: 300px;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.event-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1.5rem;
  background: none;
  color: #ffffff;
  border-radius: 15px 0 15px 15px;
}

.event-overlay h2 {
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 500;
}

.event-form {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-form h3 {
  font-size: 1.8rem;
  text-align: center;
  color: #2c2c2c;
}

label {
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: block;
}

input[type="text"],
select {
  width: 100%;
  padding: 0.6rem 1rem;
  border: 1px solid #2c2c2c;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ffffff;
  transition: border-color 0.3s ease;
}

input:focus,
select:focus {
  border-color: #2c2c2c;
  outline: none;
}

.dob-container {
  display: flex;
  gap: 0.5rem;
}

.dob-container select {
  flex: 1;
}

.gender-group {
  display: flex;
  gap: 2rem;
}

.gender-group label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.submitBtn[type="submit"] {
  margin-top: 1rem;
  padding: 0.8rem;
  background-color: #2c2c2c;
  color: #ffffff;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.submitBtn[type="submit"]:hover {
  background-color: #d1cfcf;
}

#error-message {
  color: red;
  text-align: center;
  font-size: 0.9rem;
}

@media (min-width: 768px) {
  .event-content {
    flex-direction: row;
    gap: 2rem;
  }

  .event-banner {
    width: 50%;
    border-radius: 15px 0 0 15px;
  }

  .event-img {
    border-radius: 15px 0 0 15px;
    height: 100%;
  }

  .event-overlay {
    border-radius: 15px 0 15px 15px;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  }

  .event-form {
    width: 50%;
    padding: 2rem 1rem;
  }
}