/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Make page fill the screen height and push footer to bottom */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: radial-gradient(
  circle at 0% 0%,
  rgba(238, 233, 247, 0.6),
  rgba(255, 246, 229, 0.585));
  color: #5d4b4b;
  line-height: 1.6;
  font-family: 'GlacialIndifference-Bold','Teachers', sans-serif;
}

/* Main takes all remaining space */
main {
  flex: 1;
  display: block;
  /* ensures normal block layout inside */
}

/* ===== Join the Conversation page ===== */

.join-conversation {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  text-align: center;
}

/* --- Top area (image + title + subtitle) --- */
.join-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 30px;
}

.join-header-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  position: relative;
}

.join-image img {
  width: 400px;
  height: auto;
  display: block;
  position: relative;
  z-index: 0;
}

.join-header-row h1 {
  font-family: "HandyCasual", "Happy monkey", sans-serif;
  letter-spacing: 3px;
  font-size: 2.5rem;
  color: #5d4b4b;
  margin: 0;
  line-height: 1.1;
  margin-left: -20px;
  position: relative;
  z-index: 0;
}

.join-subtitle {
  font-family: "HandyCasual", "Happy monkey", sans-serif;
  letter-spacing: 3px;
  font-size: 2rem;
  color: #5d4b4b;
  margin: 0;
}

/* --- Body text under intro section --- */
.join-text {
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 1px;
  font-size: 1.5rem;
  max-width: 900px;
  margin: 30px auto 40px;
  color: #5d4b4b;
}

.join-text p {
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 1px;
  font-size: 1.5rem;
  margin-bottom: 14px;
  line-height: 1.8;
}

/* --- Form section card --- */
.join-form-section {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 26px;
  padding: 30px 26px 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  text-align: left;
}

.join-form-section h2 {
  text-align: center;
  font-family: "HandyCasual", "Happy monkey", sans-serif;
	letter-spacing: 3px;
  font-size: 2rem;
  color: #5d4b4b;
  margin-bottom: 6px;
}

.join-form-section p {
  text-align: center;
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif;
  letter-spacing: 1px;
  font-size: 1.5rem;
  color: #5d4b4b;
  margin-bottom: 22px;
}

/* form fields */
.form-row {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-family: "HandyCasual", "Happy monkey", sans-serif;
	letter-spacing: 3px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #5d4b4b;
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: "HandyCasual", "Happy monkey", sans-serif;
	letter-spacing: 3px;
  font-size: 1.5rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #faf5f2;
}

.form-row textarea {
  resize: vertical;
}

/* checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.checkbox-group label {
  font-weight: 400;
}

/* submit button */
.primary-btn {
  margin-top: 10px;
  background: #9b59b6;
  color: #faf5f2;
  border: none;
  padding: 10px 22px;
  border-radius: 22px;
  font-family: 'GlacialIndifference-Bold', "Teachers", "Lexend", "Didact Gothic", Helvetica, sans-serif; 
  letter-spacing: 1px;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
}

.primary-btn:hover {
  background: #7d3c98;
}

.error-message {
  color: red;
  font-size: 1rem;
  display: block;
  margin-top: 4px;
}

.success-message {
  text-align: center;
  margin-top: 20px;
  color: green;
  font-size: 1.2rem;
}

.form-row select#country-code {
  width: 250px; /* Adjust as needed */
  font-family: "HandyCasual", "Happy monkey", sans-serif;
  letter-spacing: 3px;
  font-size: 1.5rem;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  justify-content: left;
}

/* responsive adjustments */

@media (max-width: 1200px) {
  .join-conversation { max-width: 1100px; padding: 36px 20px 72px; }
  .join-header-row h1 { font-size: 2.3rem; margin-left: -10px; }
  .join-subtitle { font-size: 1.8rem; }
  .join-image img { width: 320px; max-width: 100%; }
  .join-text { font-size: 1.35rem; }
  .join-form-section { padding: 28px 24px 32px; }
}

@media (max-width: 900px) {
  .join-conversation { max-width: 820px; padding: 28px 16px 60px; }
  .join-header-row { flex-direction: column; gap: 8px; }
  .join-header-row h1 { font-size: 2rem; margin-left: 0; }
  .join-image img { width: 260px; }
  .join-subtitle { font-size: 1.6rem; }
  .join-text { font-size: 1.2rem; margin: 20px auto 30px; }
  .join-form-section { padding: 22px 16px 26px; }
  .form-row input, .form-row select, .form-row textarea { font-size: 1.25rem; padding: 9px 10px; }
}

@media (max-width: 480px) {
  .join-conversation { max-width: 100%; padding: 20px 12px 40px; }
  .join-header-row h1 { font-size: 1.6rem; margin-left: 0; }
  .join-subtitle { font-size: 1.3rem; }
  .join-image img { width: 140px; }
  .join-text { font-size: 1.05rem; margin: 18px auto 24px; }
  .join-form-section { padding: 18px 14px 22px; border-radius: 20px; }
  .form-row input, .form-row select, .form-row textarea { font-size: 1.05rem; padding: 8px 10px; }
  .form-row label { font-size: 1.1rem; }
  .primary-btn { padding: 8px 16px; font-size: 1.2rem; }
}