/* styles_project_site_form.css */

.form-container {
  display: grid;
  gap: 1.1rem;
  max-width: 62rem;
  margin-top: 1.1rem;
  padding: 1.6rem;
  border-radius: 24px;
  border: 1px solid rgba(188, 147, 88, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 246, 227, 0.96));
  box-shadow:
    0 24px 48px rgba(122, 84, 33, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.form-container input[type="text"],
.form-container input[type="file"],
.form-container button {
  width: 100%;
  padding: 0.78rem 0.95rem;
  margin-bottom: 0;
  border: 1px solid rgba(159, 131, 89, 0.24);
  border-radius: 14px;
  font-size: 1em;
}

.form-container .form-group {
  margin: 0;
}

.form-container .form-group label {
  display: block;
  margin: 0 0 0.45rem;
  color: #74552c;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-container .form-control {
  min-height: 3.35rem;
  background: rgba(255, 252, 245, 0.92);
  color: #2f2517;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-container .form-control[readonly] {
  border-color: rgba(181, 136, 70, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.98), rgba(251, 241, 218, 0.98));
  color: #3f2f1c;
  font-weight: 600;
}

.form-container .form-control:focus {
  border-color: rgba(214, 118, 80, 0.45);
  box-shadow:
    0 0 0 0.2rem rgba(217, 121, 87, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.form-container-demo {
  position: relative;
  overflow: hidden;
}

.form-container-demo::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #f2c456 0%, #df8d61 48%, #d56f63 100%);
}

.project-site-workflow-intro {
  max-width: 42rem;
  margin: 0 0 1.25rem;
  color: #5f4b32;
  line-height: 1.6;
}

.demo-dataset-card {
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(205, 160, 92, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 244, 214, 0.92), rgba(255, 249, 236, 0.96));
  color: #5f4524;
  line-height: 1.6;
  box-shadow: 0 10px 24px rgba(182, 125, 52, 0.08);
}

.demo-dataset-card strong {
  color: #8b5c1b;
}

.demo-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upload-submit-button {
  min-height: 3.35rem;
  border: 1px solid rgba(188, 92, 63, 0.28) !important;
  background: linear-gradient(135deg, #de8160 0%, #d26162 55%, #c14f6f 100%) !important;
  color: #fff8f1 !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 16px 30px rgba(189, 84, 68, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.upload-submit-button:hover,
.upload-submit-button:focus {
  transform: translateY(-1px);
  filter: saturate(1.04);
  box-shadow:
    0 18px 34px rgba(189, 84, 68, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.upload-submit-button:disabled {
  opacity: 0.82;
  transform: none;
  cursor: wait;
}

.workflow-progress-card {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border-radius: 20px;
  background: rgba(255, 253, 244, 0.92);
  border: 1px solid rgba(191, 156, 89, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 10px 28px rgba(123, 94, 45, 0.08);
}

.workflow-progress-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.workflow-progress-eyebrow {
  margin: 0 0 0.35rem;
  color: #9a6f2d;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workflow-progress-title {
  margin: 0;
  color: #2f2517;
  font-size: 1.2rem;
}

.workflow-progress-description {
  margin: 0.45rem 0 0;
  color: #6e5940;
  line-height: 1.5;
}

.workflow-progress-percent {
  flex-shrink: 0;
  color: #9a6f2d;
  font-size: 1.1rem;
  font-weight: 700;
}

.workflow-progress-bar-shell {
  margin-top: 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(154, 111, 45, 0.12);
}

#upload-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f3c55b 0%, #d97957 100%);
  color: #fffdf5;
  font-weight: 700;
  transition: width 0.35s ease;
}

.workflow-stage-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.workflow-stage-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: rgba(255, 248, 225, 0.9);
  border: 1px solid rgba(191, 156, 89, 0.14);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.workflow-stage-item.is-active {
  border-color: rgba(185, 91, 62, 0.5);
  box-shadow: 0 10px 24px rgba(185, 91, 62, 0.14);
  transform: translateY(-1px);
}

.workflow-stage-item.is-complete {
  border-color: rgba(78, 142, 92, 0.38);
  background: rgba(244, 255, 246, 0.95);
}

.workflow-stage-indicator {
  width: 0.9rem;
  height: 0.9rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  flex-shrink: 0;
  background: rgba(154, 111, 45, 0.22);
  border: 1px solid rgba(154, 111, 45, 0.25);
}

.workflow-stage-item.is-active .workflow-stage-indicator {
  background: #d97957;
  border-color: #d97957;
  box-shadow: 0 0 0 4px rgba(217, 121, 87, 0.16);
}

.workflow-stage-item.is-complete .workflow-stage-indicator {
  background: #5c9b68;
  border-color: #5c9b68;
}

.workflow-stage-copy {
  display: grid;
  gap: 0.25rem;
}

.workflow-stage-copy strong {
  color: #3b2b17;
}

.workflow-stage-copy span {
  color: #6e5940;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .form-container {
    padding: 1.15rem;
    border-radius: 18px;
    gap: 0.95rem;
  }

  .form-container .form-control,
  .upload-submit-button {
    min-height: 3.05rem;
  }

  .demo-field-grid {
    grid-template-columns: 1fr;
  }

  .demo-dataset-card,
  .workflow-progress-card {
    padding: 1rem;
  }

  .workflow-progress-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .workflow-progress-title {
    font-size: 1.08rem;
  }

  .workflow-progress-description {
    font-size: 0.96rem;
  }

  .workflow-stage-item {
    padding: 0.78rem 0.82rem;
    gap: 0.72rem;
  }

  .workflow-stage-copy span {
    font-size: 0.92rem;
  }
}

@media (max-width: 479.98px) {
  .form-container {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .demo-dataset-card,
  .workflow-progress-card {
    padding: 0.9rem;
    border-radius: 16px;
  }

  .workflow-progress-eyebrow {
    font-size: 0.72rem;
  }

  .workflow-progress-title {
    font-size: 1rem;
  }

  .workflow-progress-description {
    font-size: 0.92rem;
  }

  .workflow-stage-item {
    padding: 0.72rem 0.75rem;
    border-radius: 12px;
  }

  .workflow-stage-copy strong {
    font-size: 0.95rem;
  }

  .workflow-stage-copy span {
    font-size: 0.88rem;
  }
}
