/* Gaziantep Gastronomi Festivali Form Stilleri */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  line-height: 1.6;
}

.container-fluid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Header Bölümü */
.header-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 15px;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.festival-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Form Stilleri */
.festival-form {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.festival-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* Form Bölümleri */
.form-section {
  position: relative;
  padding: 2rem 0;
}

.form-section:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #e9ecef 50%,
    transparent 100%
  );
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h4 {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.section-header p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Form Grupları */
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
}

.form-control {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: all 0.3s ease;
  font-size: 1rem;
  background: #fafbfc;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  background: white;
  transform: translateY(-1px);
}

/* Form Floating Labels */
.form-floating > .form-control {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
}

.form-floating > label {
  padding: 1rem 1.25rem;
  font-weight: 500;
  color: #6c757d;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
  opacity: 0.8;
  transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
  color: #667eea;
}

/* Katılım Kartları */
.participation-cards .btn {
  height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.participation-cards .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.participation-cards .btn-check:checked + .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* İhtiyaç Kartları */
.needs-cards .btn {
  height: 140px;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid #e9ecef;
}

.needs-cards .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.needs-cards .btn-check:checked + .btn {
  border-color: currentColor;
  background: rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Ürün Kartları */
.product-card {
  background: #f8f9fa;
  border: 2px solid #e9ecef !important;
  border-radius: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: #667eea !important;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

.product-card .form-floating > .form-control {
  background: white;
  border: 1px solid #dee2e6;
}

/* Kurallar Bölümü */
.rules-container .alert {
  border-radius: 15px;
  border: none;
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  color: #1565c0;
}

.rule-item {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(21, 101, 192, 0.1);
  line-height: 1.6;
}

.rule-item:last-child {
  border-bottom: none;
  margin-bottom: 0 !important;
}

.rule-item strong {
  color: #0d47a1;
  font-weight: 600;
}

/* Gönder Bölümü */
.submit-section {
  border-radius: 15px;
  border: 2px dashed #667eea;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff5f5 100%);
  position: relative;
  overflow: hidden;
}

.submit-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(102, 126, 234, 0.05) 50%,
    transparent 70%
  );
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Checkbox ve Radio Stilleri */
.form-check {
  margin-bottom: 0.5rem;
}

.form-check-input {
  border: 2px solid #dee2e6;
  border-radius: 4px;
  margin-top: 0.25rem;
}

.form-check-input:checked {
  background-color: #667eea;
  border-color: #667eea;
}

.form-check-label {
  font-weight: 500;
  color: #495057;
  cursor: pointer;
}

/* Özel Bölümler */
.participation-section,
.stand-needs-section,
.product-section {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #667eea;
  margin-bottom: 1.5rem;
}

.participation-section h5,
.stand-needs-section h5,
.product-section h5 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.participation-section h5::before {
  content: "📅";
  margin-right: 0.5rem;
}

.stand-needs-section h5::before {
  content: "🔧";
  margin-right: 0.5rem;
}

.product-section h5::before {
  content: "🛒";
  margin-right: 0.5rem;
}

/* Buton Stilleri */
.btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 0.875rem 2rem;
  transition: all 0.3s ease;
  text-transform: none;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
  color: white;
}

.btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #1e7e34 0%, #17a2b8 100%);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
  border-radius: 25px;
  font-weight: 700;
}

.btn-outline-primary:hover,
.btn-outline-warning:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
  transform: translateY(-2px);
}

/* Modal Butonları */
.modal .btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
}

/* Alert Stilleri */
.alert {
  border: none;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
}

.alert-success {
  background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
  color: white;
}

.alert-info {
  background: linear-gradient(135deg, #74c0fc 0%, #339af0 100%);
  color: white;
  border-left: 4px solid #1971c2;
}

.alert-warning {
  background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
  color: #495057;
  border-left: 4px solid #f76707;
}

/* Input Group Stilleri */
.input-group .form-control {
  border-right: none;
}

.input-group-text {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-left: none;
  color: #6c757d;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
  .container-fluid {
    padding: 1rem;
  }

  .festival-form {
    padding: 2rem 1.5rem;
  }

  .festival-title {
    font-size: 1.3rem;
  }

  .header-section {
    padding: 2rem 1.5rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  .form-section {
    padding: 1.5rem 0;
  }

  .section-header h4 {
    font-size: 1.25rem;
  }

  .participation-cards .btn {
    height: 100px;
    font-size: 0.9rem;
  }

  .needs-cards .btn {
    height: 120px;
  }

  .product-card {
    padding: 1.5rem !important;
  }
}

@media (max-width: 576px) {
  .festival-form {
    padding: 1.5rem 1rem;
  }

  .festival-title {
    font-size: 1.1rem;
    line-height: 1.3;
  }

  .header-section {
    padding: 1.5rem 1rem;
  }

  .section-header h4 {
    font-size: 1.1rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .form-section {
    padding: 1rem 0;
  }

  .participation-cards .btn {
    height: 80px;
    font-size: 0.8rem;
  }

  .needs-cards .btn {
    height: 100px;
    font-size: 0.9rem;
  }

  .product-card {
    padding: 1rem !important;
  }

  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .rule-item {
    font-size: 0.9rem;
    padding: 0.75rem 0;
  }
}

/* Animasyonlar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.festival-form {
  animation: fadeInUp 0.6s ease-out;
}

.header-section {
  animation: fadeInUp 0.4s ease-out;
}

/* Özel İkonlar */
.form-label[for="firma_adi"]::before {
  content: "🏢 ";
}

.form-label[for="yetkili_adi_soyadi"]::before {
  content: "👤 ";
}

.form-label[for="telefon"]::before,
.form-label[for="is_telefonu"]::before,
.form-label[for="cep_telefonu"]::before {
  content: "📞 ";
}

.form-label[for="email"]::before {
  content: "📧 ";
}

/* Tablo Stilleri (Panel için) */
.table {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
  border: none;
  padding: 1rem;
}

.table tbody tr:hover {
  background-color: rgba(102, 126, 234, 0.05);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  border-color: #e9ecef;
}

/* Badge Stilleri */
.badge {
  font-size: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 500;
}

/* Gölge Efektleri */
.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Yazdırma Stilleri */
@media print {
  .header-section {
    background: #667eea !important;
    -webkit-print-color-adjust: exact;
  }

  .btn,
  .alert-dismissible .btn-close {
    display: none !important;
  }

  .festival-form {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
