.jcp-rfq-form,
.jcp-center,
.jcp-empty,
.jcp-error,
.jcp-login-required,
.jcp-dashboard,
.jcp-factory-login {
  max-width: 1100px;
  margin: 40px auto;
  padding: 32px;
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(8,31,61,.09);
}

.jcp-form-grid,
.jcp-auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.jcp-auth {
  max-width: 1100px;
  margin: 40px auto;
}

.jcp-auth section {
  padding: 30px;
  background: #fff;
  border: 1px solid #dbe3ed;
}

.jcp-auth label,
.jcp-factory-login label,
.jcp-rfq-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  font-weight: 700;
}

.jcp-auth input,
.jcp-factory-login input,
.jcp-rfq-form input,
.jcp-rfq-form select,
.jcp-rfq-form textarea,
.jcp-compose textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #aebdce;
  border-radius: 4px;
  font: inherit;
}

.jcp-upload {
  padding: 24px;
  border: 2px dashed #9aaec4;
  background: #f4f7fa;
}

.jcp-upload span {
  font-size: 12px;
  font-weight: 400;
  color: #647184;
}

.jcp-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
}

.jcp-consent input {
  width: auto;
}

.jcp-primary,
.jcp-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 5px;
  font-weight: 800;
  cursor: pointer;
}

.jcp-primary {
  color: #fff;
  background: #ff6b18;
}

.jcp-secondary {
  margin-left: 8px;
  color: #082b59;
  background: #e8eef5;
}

.jcp-link-button {
  text-decoration: none;
}

.jcp-panel-kicker {
  margin: 0 0 8px;
  color: #f97316;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.jcp-success {
  padding: 16px;
  background: #e7f6ec;
  color: #176b35;
}

.jcp-center header,
.jcp-dashboard header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dbe3ed;
}

.jcp-dashboard-actions {
  padding: 20px 0;
}

.jcp-rfq-list {
  display: grid;
  gap: 10px;
}

.jcp-rfq-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbe3ed;
  background: #f8fafc;
}

.jcp-rfq-list article div {
  display: grid;
  gap: 4px;
}

.jcp-rfq-list article span,
.jcp-rfq-list article small {
  color: #647184;
}

.jcp-rfq-list article a {
  color: #0b5faa;
  font-weight: 700;
}

.jcp-thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 300px;
  padding: 28px;
  background: #f4f7fa;
}

.jcp-message {
  max-width: 75%;
  padding: 16px;
  background: #fff;
  border-radius: 6px;
}

.jcp-message.customer {
  align-self: flex-end;
  background: #dcecff;
}

.jcp-message p {
  margin: 7px 0;
}

.jcp-message time {
  font-size: 11px;
  color: #647184;
}

.jcp-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.jcp-files a {
  padding: 6px 9px;
  background: #eef2f7;
  color: #0b5faa;
}

.jcp-compose {
  padding-top: 20px;
}

.jcp-compose > div {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.jcp-attach {
  padding: 10px;
  border: 1px solid #aebdce;
  border-radius: 4px;
  cursor: pointer;
}

.jcp-attach input {
  display: none;
}

.jcp-review-list article {
  grid-template-columns: 1fr auto;
}

@media (max-width: 700px) {
  .jcp-rfq-form,
  .jcp-center,
  .jcp-dashboard,
  .jcp-factory-login {
    margin: 15px;
    padding: 18px;
  }

  .jcp-form-grid,
  .jcp-auth {
    grid-template-columns: 1fr;
  }

  .jcp-auth {
    margin: 15px;
  }

  .jcp-message {
    max-width: 92%;
  }

  .jcp-rfq-list article,
  .jcp-review-list article {
    grid-template-columns: 1fr;
  }

  .jcp-dashboard header {
    align-items: flex-start;
    gap: 12px;
  }

  .jcp-compose > div {
    gap: 10px;
  }
}
