/* Join Page Styles */

.join-page {
  padding: 40px 0;
}

.join-page h1 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--primary-color, #003366);
  border-bottom: 3px solid var(--primary-color, #003366);
  padding-bottom: 20px;
}

/* Join Intro Section */
.join-section {
  margin-bottom: 60px;
}

.join-intro-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Join Form Styles */
.join-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  max-width: 600px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--primary-color, #003366);
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color, #0066cc);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

/* Address Autocomplete Input */
#address {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

#address:focus {
  outline: none;
  border-color: var(--accent-color, #0066cc);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Address Suggestions List */
#address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  z-index: 50;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

#address-suggestions.hidden {
  display: none;
}

#address-suggestions li {
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 1px solid #f5f5f5;
  color: #333;
  font-size: 0.95rem;
  line-height: 1.4;
}

#address-suggestions li:first-child {
  border-radius: 5px 5px 0 0;
}

#address-suggestions li:last-child {
  border-bottom: none;
  border-radius: 0 0 5px 5px;
}

#address-suggestions li:hover,
#address-suggestions li:focus {
  background-color: #f0f7ff;
  color: var(--accent-color, #0066cc);
  padding-left: 20px;
}

#address-suggestions li:active {
  background-color: #e8f1ff;
}

/* Scrollbar styling */
#address-suggestions::-webkit-scrollbar {
  width: 6px;
}

#address-suggestions::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#address-suggestions::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 3px;
}

#address-suggestions::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Checkbox Group */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-weight: normal;
  color: #333;
  margin: 0;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  height: 20px;
  min-width: 20px;
  margin-right: 12px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label span {
  line-height: 1.5;
}

/* Form Actions */
.form-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-join {
  background: var(--accent-color, #0066cc);
  color: #fff;
  flex: 1;
}

.btn-join:hover {
  background: #0052a3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-join:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
  flex: 0 0 auto;
}

.btn-secondary:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status Messages */
.status-message {
  padding: 15px;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
  min-height: 20px;
}

.status-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Join Benefits Section */
.join-benefits {
  background: #f5f5f5;
  padding: 50px 30px;
  border-radius: 8px;
  margin-bottom: 60px;
}

.join-benefits h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: var(--primary-color, #003366);
  text-align: center;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color, #003366);
}

.benefit-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.benefit-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color, #003366);
  margin-bottom: 10px;
}

.benefit-card p {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Join Info Section */
.join-info {
  margin-bottom: 60px;
}

.join-info h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color, #003366);
}

.info-content {
  background: #fff;
  border-left: 5px solid var(--primary-color, #003366);
  padding: 30px;
  border-radius: 4px;
}

.info-content h3 {
  font-size: 1.2rem;
  color: var(--primary-color, #003366);
  margin-top: 25px;
  margin-bottom: 10px;
}

.info-content h3:first-child {
  margin-top: 0;
}

.info-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.info-content p:last-child {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .join-page h1 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .join-section {
    margin-bottom: 40px;
  }

  .join-form {
    padding: 25px;
    max-width: 100%;
  }

  .form-group {
    margin-bottom: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-secondary {
    flex: 1;
  }

  .join-benefits {
    padding: 30px 20px;
    margin-bottom: 40px;
  }

  .join-benefits h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .join-info h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

  .info-content {
    padding: 20px;
  }

  .checkbox-label {
    align-items: flex-start;
  }

  .checkbox-label input[type="checkbox"] {
    margin-top: 3px;
  }
}
