.stf-wrap {
  direction: rtl;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  max-width: 560px;
  margin: 30px auto;
  padding: 15px;
}

.stf-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #e7eef7;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.stf-card::before {
  content: "";
  position: absolute;
  top: -80px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0,161,150,.12), transparent 70%);
  pointer-events: none;
}

.stf-card__head {
  margin-bottom: 22px;
}

.stf-card__head h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
}

.stf-card__head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.stf-form {
  display: block;
}

.stf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.stf-field {
  display: flex;
  flex-direction: column;
}

.stf-field--full {
  grid-column: 1 / -1;
}

.stf-field label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.stf-field input,
.stf-field select {
  width: 100%;
  height: 50px;
  border: 1px solid #dbe4f0;
  border-radius: 14px;
  background: #fff;
  padding: 0 14px;
  font-size: 15px;
  color: #0f172a;
  transition: all .25s ease;
  box-sizing: border-box;
}

.stf-field input::placeholder {
  color: #94a3b8;
}

.stf-field input:focus,
.stf-field select:focus {
  outline: none;
  border-color: #00a196;
  box-shadow: 0 0 0 4px rgba(0, 161, 150, 0.12);
}

.stf-submit-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  margin-top: 20px;
  height: 54px;
  background: linear-gradient(135deg, #00a196 0%, #00c2b3 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 161, 150, 0.24);
}

.stf-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0, 161, 150, 0.28);
}

.stf-submit-btn:disabled {
  opacity: .75;
  cursor: not-allowed;
  transform: none;
}

.stf-btn-loader {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: stf-spin .8s linear infinite;
}

@keyframes stf-spin {
  to { transform: rotate(360deg); }
}

.stf-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.8;
}

.stf-alert.success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.stf-alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.stf-progress {
  margin-top: 18px;
  margin-bottom: 8px;
}

.stf-progress__bar {
  width: 100%;
  height: 10px;
  background: #eaf1f8;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.stf-progress__bar span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00a196, #00c2b3);
  border-radius: 999px;
  transition: width .35s ease;
}

.stf-progress__text {
  font-size: 13px;
  color: #475569;
  font-weight: 600;
}

@media (max-width: 640px) {
  .stf-card {
    padding: 20px;
    border-radius: 18px;
  }

  .stf-grid {
    grid-template-columns: 1fr;
  }

  .stf-card__head h3 {
    font-size: 21px;
  }
}
