
.wr-step { display: flex; flex-direction: column; gap:10px; }
.wr-step h3 { margin:0; color:#333; }
.wr-step input[type=text],
.wr-step input[type=file] {
  padding:8px; border:1px solid #ccc; border-radius:4px;
}
.wr-next, .wr-prev, [name="wr_submit"] {
  padding:10px; border:none; border-radius:4px;
  background:#0073aa; color:#fff; cursor:pointer;
}
.wr-prev { background:#555; }
.wr-success { text-align:center; }
.wr-buttons { display:flex; gap:10px; justify-content:center; margin-top:20px; }
.wr-buttons .wr-btn {
  flex:1; padding:10px; background:#0073aa; color:#fff;
  text-decoration:none; border-radius:4px; display:inline-block;
}
/* پایه فرم */
.wr-container {
  max-width: 650px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  font-family: Tahoma, sans-serif;
  direction: rtl;
}

/* عنوان */
.wr-container h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #5a2e8a;
  font-size: 1.6rem;
}

/* جدول */
.wr-detailed-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}
.wr-detailed-table td {
  border: 1px solid #ddd;
  padding: 8px;
  vertical-align: middle;
}
.wr-detailed-table input[type="text"],
.wr-detailed-table input[type="file"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* ورودی‌های غیرقابل ویرایش */
.wr-detailed-table input[readonly] {
  background: #f5f5f5;
  color: #555;
}

/* دکمه مرحله */
button.wr-next {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: #7b47b5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .3s;
}
button.wr-next:hover {
  background: #5a2e8a;
}

/* خطوط جداکننده */
.wr-detailed-table hr,
.wr-container hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 15px 0;
}

/* لینک‌ها و دکمه‌های WR-Btn */
.wr-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.wr-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #7b47b5;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background .3s;
}
.wr-btn:hover {
  background: #5a2e8a;
}

/* ریسپانسیو */
@media (max-width: 600px) {
  .wr-detailed-table td {
    display: block;
    width: 100%;
  }
  .wr-detailed-table tr {
    margin-bottom: 10px;
    display: block;
  }
  button.wr-next {
    font-size: 0.9rem;
  }
}
