/* Sports Contact Form Styles */
.scf-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  font-family: "Tahoma", Arial, sans-serif;
  direction: rtl;
}

.scf-form-wrapper {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
  border: 2px solid #e3f2fd;
}

.scf-title {
  text-align: center;
  color: #1565c0;
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scf-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.scf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.scf-field {
  display: flex;
  flex-direction: column;
}

.scf-field label {
  font-weight: bold;
  color: #1565c0;
  margin-bottom: 8px;
  font-size: 14px;
}

.scf-field input,
.scf-field select,
.scf-field textarea {
  padding: 12px 16px;
  border: 2px solid #e1f5fe;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #ffffff;
  font-family: inherit;
}

.scf-field input:focus,
.scf-field select:focus,
.scf-field textarea:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
  transform: translateY(-2px);
}

.scf-field input:hover,
.scf-field select:hover,
.scf-field textarea:hover {
  border-color: #81d4fa;
}

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

.scf-submit-btn {
  background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
  color: #1565c0;
  border: none;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 20px;
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
  font-family: inherit;
}

.scf-submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ffb300 0%, #ffa000 100%);
}

.scf-submit-btn:active {
  transform: translateY(-1px);
}

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

.scf-loading {
  display: inline-block;
}

.scf-message {
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
  font-weight: bold;
  text-align: center;
}

.scf-message.success {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  color: #2e7d32;
  border: 2px solid #4caf50;
}

.scf-message.error {
  background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
  color: #c62828;
  border: 2px solid #f44336;
}

/* Responsive Design */
@media (max-width: 768px) {
  .scf-container {
    padding: 10px;
  }

  .scf-form-wrapper {
    padding: 20px;
  }

  .scf-row {
    grid-template-columns: 1fr;
  }

  .scf-title {
    font-size: 24px;
  }
}

/* Animation for form appearance */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scf-form-wrapper {
  animation: fadeInUp 0.6s ease-out;
}

/* Custom select arrow */
.scf-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231565c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
  padding-left: 40px;
}

/* Required field indicator */
.scf-field label::after {
  content: " *";
  color: #f44336;
}

.scf-field:has(textarea) label::after,
.scf-field:has(#scf-description) label::after {
  content: "";
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.scf-loading::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #1565c0;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

/* استایل فیلدهای خطا */
.scf-field input.error,
.scf-field select.error,
.scf-field textarea.error {
  border-color: #f44336 !important;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.2) !important;
}

/* بهبود پیام‌های موفقیت و خطا */
.scf-message {
  padding: 20px;
  border-radius: 12px;
  margin-top: 25px;
  font-weight: bold;
  text-align: center;
  font-size: 16px;
  line-height: 1.5;
}

.scf-message.success {
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  color: #1b5e20;
  border: 2px solid #4caf50;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.scf-message.error {
  background: linear-gradient(135deg, #ffcdd2 0%, #ef9a9a 100%);
  color: #b71c1c;
  border: 2px solid #f44336;
  box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* انیمیشن برای پیام‌ها */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scf-message {
  animation: slideInDown 0.5s ease-out;
}
