:root {
  --side-padding: 2rem; /* Default padding for all elements */
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to right, #3a0ca3, #7209b7, #4361ee);
  color: #ffffff;
}

.top-nav {
  display: flex;
  gap: 1rem;
  padding: 1rem var(--side-padding);
  background: rgba(0, 0, 0, 0);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  border-radius: 8px;
}

.top-nav a {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, color 0.3s ease;
}

.top-nav a:hover {
  background: #c77dff;
  color: #1e1e2f;
}

.container {
  display: flex;
  flex-direction: column;
  padding: 6rem var(--side-padding) 2rem var(--side-padding);
  align-items: flex-start; /* Align content to the left */
}

@media(min-width: 768px) {
  .container {
    flex-direction: row;
    justify-content: flex-start; /* Align content to the left */
    align-items: flex-start;
    padding-left: 3rem; /* Move content more from the left */
  }
}

.content-column {
  flex: 1;
  max-width: 500px;
  margin-bottom: 2rem;
  padding-left: 0; /* Remove extra offset */
}

.form-column {
  position: relative;
  max-width: 350px; /* Keep form width reasonable */
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  margin-left: auto; /* Align form to the right */
  margin-top: 3rem; /* Prevent form from overlapping content */
  margin-right: 2rem; /* Ensure form doesn't touch the edge of the screen */
}

.title {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 0.25rem; /* Reduced gap between heading and button */
  color: #fff;
}

.subtitle {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #d0bcff;
  font-weight: 600;
}

.description {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #f1f1f1;
}

.join-button, .submit-button {
  padding: 0.6rem 1.2rem;
  background: #9d4edd;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.join-button:hover, .submit-button:hover {
  background: #c77dff;
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #e0d4ff;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #eee;
  font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
  width: 100%;
  padding: 0.5rem;
  border: none;
  border-radius: 5px;
  background: #fff;
  color: #333;
  font-size: 0.95rem;
}

.checkbox-group {
  display: flex;
  gap: 1rem;
}

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

.checkbox-option input {
  accent-color: #c77dff;
}

.privacy {
  font-size: 0.85rem;
  color: #ccc;
  margin-top: 1rem;
}

.privacy a {
  color: #ffffff;
  text-decoration: underline;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #ff6b6b;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: none;
  z-index: 1000;
}

.toast.visible {
  display: block;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #3c096c;
  padding: 2rem;
  border-radius: 10px;
  color: #fff;
  text-align: center;
}

.about-container {
  max-width: 800px;
  margin: 5rem auto 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.about-container .title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.about-container .description {
  font-size: 1.1rem;
  color: #e1e1e1;
  margin-bottom: 1rem;
}

.about-container .note {
  font-size: 1rem;
  color: #ccc;
}

.about-container a {
  color: #c77dff;
  text-decoration: underline;
}

@media(max-width: 767px) {
  :root {
    --side-padding: 1.25rem;
  }

  .top-nav {
    padding: 1rem var(--side-padding);
  }

  .container {
    padding: 6rem var(--side-padding) 2rem var(--side-padding);
  }

  .content-column {
    padding-left: 0; /* Ensures content is left-aligned */
  }
  
  .form-column {
    max-width: 100%; /* Form should take up more space */
    margin-left: 0; /* Remove margin from form */
    margin-top: 2rem; /* Provide space between form and content */
  }
  
  .title {
    margin-bottom: 0.2rem; /* Reduced gap between heading and button */
  }
}
