.spex-form-container {
  max-width: 650px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

.spex-form-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.spex-form-header {
  background: linear-gradient(135deg, #EE7A25 0%, #d4621a 100%);
  color: white;
  padding: 35px 30px;
  text-align: center;
}

.spex-form-header h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: white;
}

.spex-form-header p {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.spex-form-body {
  padding: 35px 30px;
}

.spex-field {
  margin-bottom: 22px;
}

.spex-field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.spex-field label .required {
  color: #e53935;
  margin-right: 4px;
}

.spex-field input,
.spex-field textarea,
.spex-field select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  direction: rtl;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
  box-sizing: border-box;
}

.spex-field input:focus,
.spex-field textarea:focus,
.spex-field select:focus {
  outline: none;
  border-color: #EE7A25;
  box-shadow: 0 0 0 3px rgba(238, 122, 37, 0.15);
  background: #fff;
}

.spex-field input::placeholder,
.spex-field textarea::placeholder {
  color: #aaa;
}

.spex-field textarea {
  min-height: 100px;
  resize: vertical;
}

.spex-field .field-hint {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
}

.spex-field .field-error {
  font-size: 13px;
  color: #e53935;
  margin-top: 6px;
  display: none;
}

.spex-submit-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #EE7A25 0%, #d4621a 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 10px;
}

.spex-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 122, 37, 0.4);
}

.spex-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spex-success-msg {
  display: none;
  text-align: center;
  padding: 50px 30px;
}

.spex-success-msg .success-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.spex-success-msg h3 {
  font-size: 24px;
  color: #333;
  margin-bottom: 12px;
}

.spex-success-msg p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.spex-success-msg .reset-link {
  display: inline-block;
  margin-top: 20px;
  color: #EE7A25;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}

.spex-success-msg .reset-link:hover {
  text-decoration: underline;
}

.spex-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spex-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

@keyframes spex-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
  .spex-form-container {
    margin: 20px auto;
    padding: 0 10px;
  }
  .spex-form-header {
    padding: 25px 20px;
  }
  .spex-form-header h2 {
    font-size: 22px;
  }
  .spex-form-body {
    padding: 25px 20px;
  }
}
