/* Post Job Page Styles */
.post-job {
  padding: 2rem 0;
  background-color: #fff;
}

.header {
  background-color: white;
}

.post-job-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
}

.post-job-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.5rem;
}

.post-job-subtitle {
  font-size: 1rem;
  color: #64748B;
  text-align: center;
  margin-bottom: 2rem;
}

.post-job-form {
  margin-top: 2rem;
}

/* Form sections styling */
.form-section {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
  border-bottom: none;
}

.form-section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #0069DA;
  display: inline-block;
}

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

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
}

.form-control::placeholder {
  color: #9ca3af;
}

.form-control:focus {
  outline: none;
  border-color: #0069DA;
  box-shadow: 0 0 0 2px rgba(0, 105, 218, 0.1);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  cursor: pointer;
}

.select-arrow {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #64748B;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 16px;
  height: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  cursor: pointer;
}

.checkbox-group label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.875rem;
  color: #64748B;
}

/* File upload styling */
.file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-upload-input {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  background-color: #fff;
  color: #1e293b;
  cursor: pointer;
}

.file-upload-preview {
  max-width: 100px;
  max-height: 100px;
  margin-top: 0.5rem;
  border-radius: 0.25rem;
  display: none;
}

.file-upload-info {
  font-size: 0.75rem;
  color: #64748B;
  margin-top: 0.25rem;
}

/* Radio button group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.radio-item input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.radio-item label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.875rem;
  color: #1e293b;
  cursor: pointer;
}

/* Conditional fields */
.conditional-field {
  margin-top: 0.5rem;
  margin-left: 2rem;
  display: none;
}

.terms-link {
  color: #0069DA;
  text-decoration: none;
}

.terms-link:hover {
  text-decoration: underline;
}

.form-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.btn-post-job {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  background-color: #0069DA;
  color: white;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  width: 100%;
  max-width: 200px;
}

.btn-post-job:hover {
  background-color: #0052a8;
}

.btn-login {
  padding: 0.5rem 1.5rem;
  background-color: #0069DA;
  color: white;
  border-radius: 0.375rem;
}

.nav-link.active {
  color: #0069DA;
  font-weight: 500;
}

/* Error message styling */
.error {
  display: block;
  color: #e53e3e;
  font-size: 0.75rem;
  margin-top: 0.375rem;
}

.form-control.error {
  border-color: #e53e3e;
}

/* Job preview section */
.job-preview {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.job-preview-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.job-preview-content {
  font-size: 0.875rem;
  color: #4b5563;
}

/* Form row for side-by-side fields */
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-col {
  flex: 1;
  min-width: 200px;
}

/* Payment info */
.payment-info {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 0.375rem;
  padding: 1rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: #0369a1;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .post-job {
    padding: 1.5rem 0;
  }

  .post-job-container {
    padding: 0 1rem;
  }

  .post-job-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
  }

  .post-job-subtitle {
    font-size: 0.875rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .form-section-title {
    font-size: 1.125rem;
  }

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

  .form-control {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .form-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-actions {
    margin-top: 1.5rem;
  }

  .btn-post-job {
    width: 100%;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.875rem;
    max-width: none;
  }

  .checkbox-group label {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}