/* css/post-request.css */

/* ── Step Wizard ── */

/* Progress dots */
.step-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.3s, transform 0.3s;
}

.step-dot.active {
  background: #1d3557;
  transform: scale(1.25);
}

.step-dot.completed {
  background: #2a9d8f;
}

/* Hide inactive steps */
.form-section {
  display: none;
}

.form-section.active {
  display: block;
  animation: stepFadeIn 0.3s ease;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step navigation row */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

.btn-step-next,
.btn-step-back {
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  border: none;
}

.btn-step-next {
  background: #1d3557;
  color: #fff;
}

.btn-step-next:hover {
  background: #15293e;
}

.btn-step-next:active {
  transform: scale(0.98);
}

.btn-step-back {
  background: transparent;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.btn-step-back:hover {
  background: #f1f5f9;
  color: #1d3557;
}

/* Step 4 btn-row inside step-nav */
.step-nav .btn-row {
  display: flex;
  gap: 12px;
  margin: 0;
}

/* Step validation error highlight */
.form-group.step-error input,
.form-group.step-error select,
.form-group.step-error textarea {
  border-color: #e63946;
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

.step-error-msg {
  color: #e63946;
  font-size: 0.85rem;
  margin-top: 4px;
}

/* ── Form Sectioning (original) ── */
.form-section.active {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.form-section-header {
  margin-bottom: 24px;
}

.form-section-header h2 {
  font-size: 1.75rem;
  color: #1d3557;
  margin: 0;
}

.form-section-header p {
  color: #64748b;
  margin-top: 4px;
}

/* Two-column layout for budget and deadline */
.form-row {
  display: flex;
  gap: 24px;
}

.form-row .form-group {
  flex: 1;
}

/* Enhanced File Input */
.file-input-wrapper {
  margin-top: 12px;
  border: 2px dashed #cbd5e1;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.file-input-wrapper:hover {
  background-color: #f8fafc;
  border-color: #a8dadc;
}

.file-input-icon {
  font-size: 2rem;
  color: #94a3b8;
}

.file-input-text {
  color: #64748b;
  font-weight: 500;
}

#image-previews {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 16px;
}

.image-preview {
    position: relative;
}

.image-preview img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.remove-img-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
}
