/**
 * Form ve Genel Stiller
 * Product form section için gerekli CSS'ler
 */

/* Form stilleri */
.product-element {
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.product-element input[type="radio"] {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
}

.product-element img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
}

.product-element:hover img {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.product-element input[type="radio"]:checked ~ img.selected {
  display: block !important;
  border-color: #28a745;
  box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.2);
}

.product-element input[type="radio"]:checked ~ img.paketResim:not(.selected) {
  display: none !important;
}

/* Package badge */
.package-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff4444;
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Form button */
.form_btn {
  width: 100%;
  padding: 18px;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.form_btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.form_btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form_btn .button-loading img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 5px;
}

/* Form wrapper - MAX-WIDTH KALDIRILDI */
.wrapper {
  width: 100%;
  margin: 40px auto;
  padding: 40px 20px;
  background: #f8f9fa;
}

#formtop {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Form groups */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 0px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

/* SELECT BOX - BASİT KURALLAR */
select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 35px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.col-xs-6 {
  width: 50%;
  padding: 0 8px;
}

.col-sm-6 {
  width: 50%;
  padding: 0 8px;
}

/* Responsive - MAX-WIDTH KALDIRILDI */
@media (max-width: 768px) {
  .wrapper {
    padding: 20px 10px;
    margin: 20px 0;
    width: 100%;
  }
  
  #formtop {
    padding: 20px;
    width: 100%;
  }
  
  .form-group label {
    font-size: 12px;
  }
  
  .form-control {
    padding: 0px 12px;
    width: 100%;
  }
  
  .form_btn {
    padding: 15px;
    font-size: 16px;
  }
}

/* Utility */
.img-fluid {
  max-width: 100%;
  height: auto;
}

.text-center {
  text-align: center;
}

/* Attention grabber animation */
@keyframes attention-shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.attention-grabber {
  animation: attention-shake 3s ease-in-out infinite;
}

.attention-grabber:hover {
  animation: none;
}

/* Pulse attention */
.pulse-attention {
  animation: pulse-btn 2s ease-in-out infinite;
}

@keyframes pulse-btn {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3); 
  }
  50% { 
    box-shadow: 0 4px 25px rgba(40, 167, 69, 0.6); 
  }
}

