/* ==========================================================================
   Garden Sansar — Join as a Gardener (Careers) Page Styles
   Matching gardensewa.com/join UI aesthetics & layout
   ========================================================================== */

.join-page {
  background: #ffffff;
  color: #111827;
  padding: 0 0 70px;
  min-height: 80vh;
}

/* Page Header & Breadcrumbs */
.join-header {
  padding: 28px 16px 20px;
  text-align: center;
}

.join-breadcrumbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.join-breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s ease;
}

.join-breadcrumbs a:hover {
  color: #155d59;
}

.join-breadcrumbs svg {
  color: #9ca3af;
  margin: 0 2px;
  display: inline-block;
  vertical-align: middle;
}

.join-breadcrumbs span {
  font-weight: 600;
  color: #1f2937;
}

.join-header h1 {
  font-size: clamp(24px, 3.2vw, 32px);
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

/* View Mode Switcher / Tabs */
.join-view-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 0 auto 20px;
  max-width: 440px;
  background: #f3f4f6;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #e5e7eb;
}

.join-view-btn {
  flex: 1;
  text-align: center;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  color: #4b5563;
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.join-view-btn:hover {
  color: #111827;
}

.join-view-btn.active {
  background: #ffffff;
  color: #155d59;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Notifications */
.join-notice {
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  max-width: 860px;
}

.join-notice.success {
  border: 1px solid #96d5b3;
  background: #effcf4;
  color: #17663d;
}

.join-notice.error {
  border: 1px solid #efb2b2;
  background: #fff5f5;
  color: #9b2c2c;
}

/* Embed Container */
.join-embed-container {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 6px 16px 40px;
}

.join-embed-wrap {
  width: 100%;
  max-width: 896px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f0f0;
}

.join-airtable-iframe {
  width: 100%;
  min-height: 2700px;
  height: 2700px;
  border: none;
  background: transparent;
  display: block;
}

/* Native Cloned Form Card */
.join-card {
  max-width: 860px;
  margin: 0 auto 40px;
  padding: 40px 48px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.join-card-head {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f3f4f6;
}

.join-card-head h2 {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
  line-height: 1.2;
}

.join-card-head p {
  font-size: 14.5px;
  color: #6b7280;
  margin: 0;
}

.join-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

/* Form Grid */
.join-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
}

.join-section-title {
  grid-column: 1 / -1;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 16px 0 0;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.join-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-field.join-field--full {
  grid-column: 1 / -1;
}

.join-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: #374151;
  display: block;
  margin: 0;
}

.join-field b {
  color: #ef4444;
  margin-left: 2px;
}

.join-field input[type="text"],
.join-field input[type="tel"],
.join-field input[type="email"],
.join-field input[type="number"],
.join-field select {
  width: 100%;
  height: 42px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.join-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
}

.join-field input:focus,
.join-field select:focus {
  outline: none;
  border-color: #155d59;
  box-shadow: 0 0 0 3px rgba(21, 93, 89, 0.15);
}

.join-field input::placeholder {
  color: #9ca3af;
  font-size: 13.5px;
}

/* File Upload Boxes (Drag & Drop zone) */
.join-upload-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 14px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.join-upload-box:hover {
  border-color: #155d59;
  background: #f0fdf9;
}

.join-upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.join-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.join-upload-box svg {
  color: #94a3b8;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.join-upload-box.has-file {
  border-color: #155d59;
  background: #f0fdf9;
}

.join-upload-box.has-file .join-upload-label {
  color: #155d59;
  font-weight: 600;
  text-transform: none;
}

/* Action Buttons */
.join-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #f3f4f6;
  gap: 16px;
}

.join-reset-btn {
  background: none;
  border: none;
  color: #4b5563;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.join-reset-btn:hover {
  color: #111827;
  background: #f3f4f6;
}

.join-submit-btn {
  background: #111827;
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 6px;
  border: none;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.join-submit-btn:hover {
  background: #155d59;
  box-shadow: 0 4px 12px rgba(21, 93, 89, 0.25);
}

.join-disclaimer {
  margin-top: 20px;
  font-size: 12.5px;
  color: #9ca3af;
  line-height: 1.5;
  text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .join-card {
    padding: 24px 18px;
    margin: 0 12px 36px;
    border-radius: 8px;
  }
  .join-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .join-header {
    padding: 20px 14px 14px;
  }
  .join-header h1 {
    font-size: 24px;
  }
  .join-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 12px;
  }
  .join-submit-btn {
    width: 100%;
    justify-content: center;
  }
  .join-reset-btn {
    justify-content: center;
  }
}
