
.header-text {
  border-bottom: 1px solid var(--border-light);
  margin-top: 20px;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.event-item {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-light);
}

.event-right {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: flex-start;
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.event-month {
  font-size: 18px;
  color: var(--text-light);
  font-weight: 500;
  line-height: 28px;
  margin-bottom: 5px;
}

.event-day {
  font-size: 42px;
  color: var(--text-light);
  font-weight: 500;
  line-height: 40px;
}

.event-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.event-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 36px;
}

.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-black);
  font-size: 14px;
  font-weight: 400;
  line-height: 28px;
}

.meta-item img {
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%);
}

.event-description {
  color: var(--text-light);
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  margin-bottom: 25px;
}

.previous-events {
  padding-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.previous-events p {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  margin: 0;
}

.previous-events-btn {
  background: transparent;
  border: 1px solid var(--green-1000);
  padding: 8px 12px;
  font-size: 0.95em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-1000);
  transition: all 0.3s ease;
}

.previous-events-btn:hover {
  border-color: var(--green-900);
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
   z-index: 50;
}

.modal {
  background: var(--background-white);
  border-radius: 12px;
  padding: 16px 24px;
  width: 90%;
  max-width: 800px;
  position: relative;
  border: 1px solid var(--grey-200);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--grey-200);
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  margin-bottom: 30px;
  color: var(--text-light);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-input {
  padding: 16px 12px;
  border: 1px solid var(--grey-300);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.3s ease;
  background-color: transparent;
}

.form-input:focus {
  outline: none;
  border-color: var(--green-1000);
  background-color: var(--text-white);
}

.form-input::placeholder {
  color: var(--grey-300);
}

.submit-btn {
  background-color: var(--green-1000);
  color: var(--text-white);
  border: none;
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  float: right;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--green-200);
  color: var(--green-1000);
}

/* Success Modal */
.success-modal {
  text-align: center;
  padding: 50px 40px;
}

#successModal {
  display: none;
  align-items: center;
  justify-content: center;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
}

.success-title {
  color: var(--text-light);
  font-size: 18px;
  line-height: 28px;
  font-weight: 600;
  margin-bottom: 15px;
}

.success-message {
  color: var(--text-light);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
}

@media (max-width: 768px) {
  .event-item {
    flex-direction: column;
    gap: 20px;
  }

  .event-image {
    width: 100%;
    height: 180px;
  }

  .event-title {
    font-size: 18px;
    line-height: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    padding: 30px 20px;
    max-width: 600px;
  }
  .previous-events {
    margin-bottom: 16px;
  }
}
