body {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  color: #303030;
  background-color: #f8f8f8;
}

a {
  text-decoration: none;
  color: inherit;
}

header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 3rem 1.25rem 3rem;
  background: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  position: relative;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ef8508;
  margin-top: -1px;
}

nav {
  display: flex;
  gap: 4rem;
  align-items: center;
  font-size: 1rem;
}

nav a:hover {
  text-decoration: underline;
  color: #ef8508;
  transition: 0.2s;
}

.btn-outline {
  padding: 0.5rem 1rem;
  border: 2px solid #ef8508;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
}

.btn-outline:hover {
  color: white;
  background-color: #ef8508;
  transition: 0.35s;
}

.container {
  display: flex;
  min-height: calc(100vh - 70px);
}

.left-section {
  width: 35rem;
  background: linear-gradient(rgba(0, 0, 0, 0.648), rgba(0, 0, 0, 0.648)),
    url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80");
  background-size: cover;
  color: white;
  display: flex;
  align-items: center;
  padding: 2rem;
}

.left-content {
  max-width: 400px;
  margin-left: 1rem;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.left-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.left-content ul {
  list-style: none;
  padding: 0;
}

.left-content li {
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.left-content li::before {
  content: "✓";
  margin-right: 0.5rem;
  color: #ef8508;
  font-weight: bold;
}

.right-section {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  background-color: #ffffff;
  height: 150vh;
}

.form-container {
  width: 60%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  animation: slideUp 0.4s ease-out;
}

.form-container h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #444;
}

.form-group {
  margin-bottom: 1.5rem;
  align-items: flex-start;
  width: 100%;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #444;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: "Bricolage Grotesque", sans-serif;
}

.form-group input::placeholder,
.form-group select::placeholder {
  color: #aaa;
}

.required {
  color: red;
}

.role-selection {
  margin-bottom: 1.5rem;
  width: 100%;
}

.role-selection label {
  display: block;
  margin-bottom: 1rem;
  font-weight: 600;
  color: #444;
  text-align: center;
}

.role-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.role-option {
  flex: 1;
  padding: 1rem;
  border: 2px solid #ccc;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1rem;
  font-weight: 500;
}

.role-option:hover {
  border-color: #ef8508;
  background-color: #fff5e6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 133, 8, 0.2);
}

.role-option.selected {
  border-color: #ef8508;
  background-color: #ef8508;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 133, 8, 0.3);
}

.role-option .role-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.role-option .role-description {
  font-size: 0.9rem;
  opacity: 0.8;
}

.dynamic-field {
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.dynamic-field.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.custom-category {
  margin-top: 1rem;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.custom-category.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.terms {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  width: 100%;
  align-items: flex-start;
}

.terms input[type="checkbox"] {
  margin-right: 0.5rem;
}

.terms label a {
  color: #ef8508;
  text-decoration: none;
}

.terms label a:hover {
  text-decoration: underline;
}

.join-button {
  width: 80px;
  padding: 0.75rem;
  background-color: #ef8508;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-family: "Bricolage Grotesque", sans-serif;
  margin-top: 1rem;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
}

.join-button:hover {
  background: #ffde59;
  color: #80562b;
  transition: 0.3s;
  transform: translateY(-1px) scale(1.03);
}

.form-container form {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.form-container form a {
  width: fit-content;
  height: fit-content;
  align-items: center;
}

.error-message {
  color: red;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: center;
  display: none;
}

@media (max-width: 768px) {
  .join-header {
    padding: 1rem 1.5rem;
  }

  .join-header nav {
    gap: 1rem;
  }

  .join-button-outline {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }

  .container {
    flex-direction: column;
    min-height: auto;
  }

  .left-section {
    padding: 1.5rem;
    text-align: center;
  }

  .right-section {
    padding: 1.5rem;
  }

  .role-buttons {
    flex-direction: column;
  }
}
