/* Global Styles */
body {
  font-family: 'Poppins', sans-serif;
  background: #5c2a81;
  margin: 20px;
  color: #333;
  margin-bottom: 40px !important;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.form-container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 200px;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 20px;
  transition: all 0.3s ease;
  border: 3px solid #e0e0e0;
}

.step-item.active .step-number {
  background: #5c2a81;
  color: #fff;
  border-color: #5c2a81;
  box-shadow: 0 0 0 4px rgba(92, 42, 129, 0.2);
}

.step-item.completed .step-number {
  background: #28a745;
  color: #fff;
  border-color: #28a745;
}

.step-label {
  margin-top: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #999;
  text-align: center;
}

.step-item.active .step-label {
  color: #5c2a81;
  font-weight: 600;
}

.step-item.completed .step-label {
  color: #28a745;
}

.step-line {
  flex: 1;
  height: 3px;
  background: #e0e0e0;
  margin: 0 10px;
  position: relative;
  top: -25px;
  transition: background 0.3s ease;
}

.step-line.completed {
  background: #28a745;
}

/* Step Styles */
.step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  color: #5c2a81;
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 28px;
}

.step-subtitle {
  color: #666;
  font-size: 16px;
}

/* Team Selection Cards */
.team-select-card {
  cursor: pointer;
  display: block;
}

.team-card {
  border: 3px solid #ddd;
  border-radius: 15px;
  padding: 25px 15px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.team-card:hover {
  border-color: #5c2a81;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(92, 42, 129, 0.15);
}

.team-select-card input:checked + .team-card,
.team-card.active {
  border-color: #5c2a81;
  background-color: #f3e5f5;
  box-shadow: 0 0 0 4px rgba(92, 42, 129, 0.2);
  transform: translateY(-5px);
}

.team-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 15px;
}

.team-name {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

/* Payment Selection Cards */
.payment-card {
  cursor: pointer;
  display: block;
}

.payment-option {
  border: 3px solid #ddd;
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.payment-option:hover {
  border-color: #5c2a81;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(92, 42, 129, 0.15);
}

.payment-card input:checked + .payment-option,
.payment-option.active {
  border-color: #5c2a81;
  background-color: #f3e5f5;
  box-shadow: 0 0 0 4px rgba(92, 42, 129, 0.2);
  transform: translateY(-5px);
}

.payment-icon {
  font-size: 48px;
  color: #5c2a81;
  margin-bottom: 15px;
}

.payment-option h4 {
  color: #333;
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 22px;
}

.payment-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 15px;
}

.payment-price {
  font-size: 32px;
  font-weight: 700;
  color: #5c2a81;
  margin: 10px 0;
}

.price-period {
  font-size: 18px;
  font-weight: 400;
  color: #666;
}

.payment-desc {
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

/* Summary Card */
.summary-card {
  background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
  border: 2px solid #5c2a81;
  border-radius: 12px;
  padding: 20px;
}

.summary-title {
  color: #5c2a81;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.summary-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(92, 42, 129, 0.2);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 500;
  color: #666;
}

.summary-value {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.price-highlight {
  color: #5c2a81;
  font-size: 20px;
}

/* Form Elements */
.input-group-text {
  display: flex;
  align-items: center;
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #ffffff;
  text-align: center;
  white-space: nowrap;
  background-color: #5c2a81;
  border: 1px solid #5c2a81;
}

.form-control,
.form-select {
  border-left: 0;
}

.form-control:focus,
.form-select:focus {
  border-color: #5c2a81;
  box-shadow: 0 0 0 0.2rem rgba(92, 42, 129, 0.25);
}

/* Action Buttons */
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-top: 30px;
}

.action-button {
  flex: 1;
  padding: 15px 30px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.action-button.btn-primary {
  background-color: #5c2a81;
  color: #fff;
}

.action-button.btn-primary:hover:not(:disabled) {
  background-color: #4a2170;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 42, 129, 0.3);
}

.action-button.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

.action-button.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
}

.action-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Success Screen */
.step-success {
  display: none;
  animation: fadeIn 0.5s ease;
}

.success-screen {
  padding: 60px 20px;
}

.success-icon {
  font-size: 80px;
  color: #28a745;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.success-title {
  color: #28a745;
  font-weight: 700;
  font-size: 32px;
  margin-bottom: 20px;
}

.success-message {
  color: #333;
  font-size: 20px;
  margin-bottom: 10px;
}

.success-submessage {
  color: #666;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-container {
    padding: 20px;
  }

  .step-indicator {
    padding: 15px 0;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .step-label {
    font-size: 12px;
    margin-top: 8px;
  }

  .step-line {
    top: -20px;
  }

  .step-title {
    font-size: 24px;
  }

  #teamSelectionGroup .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .team-card {
    min-height: 140px;
    padding: 20px 10px;
  }

  .team-logo {
    width: 50px;
    height: 50px;
  }

  .team-name {
    font-size: 14px;
  }

  .payment-option {
    min-height: 220px;
    padding: 25px 15px;
  }

  .payment-icon {
    font-size: 40px;
  }

  .payment-price {
    font-size: 28px;
  }

  .step-actions {
    flex-direction: column;
  }

  .action-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    margin: 10px;
  }

  .form-container {
    padding: 15px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-subtitle {
    font-size: 14px;
  }

  .team-logo {
    width: 60px;
    height: 60px;
  }

  .team-name {
    font-size: 15px;
  }

  .payment-icon {
    font-size: 36px;
  }

  .payment-option h4 {
    font-size: 18px;
  }
}

/* Sporun Yıldızı Banner Styles */
.team-logo-banner {
  max-width: 100%;
  height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}

.team-logo-placeholder i {
  font-size: 3rem;
  color: var(--primary-color);
}

/* Payment Card Full Size Adjustments */
.step2 .row {
  display: flex;
  justify-content: center;
}

/* If only one option (like Sporun Yıldızı monthly), make it full size */
.step2 .row:not(:has(#optionYearlyContainer:not([style*="display: none"]))) .col-md-6 {
  flex: 0 0 100%;
  max-width: 100%;
}

.step2 .row:not(:has(#optionYearlyContainer:not([style*="display: none"]))) .payment-option {
  max-width: 600px;
  margin: 0 auto;
}

/* ========== Site Header ========== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 12px 20px;
  margin: 0 -20px 20px -20px;
}

.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

.site-nav a:hover {
  color: #5c2a81;
}

.site-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #5c2a81;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}

.site-header-btn:hover {
  background: #4a2170;
}

/* ========== Site Footer ========== */
.site-footer {
  background: linear-gradient(135deg, #3d1f5c 0%, #5c2a81 50%, #4a2170 100%);
  color: #fff;
  margin-top: 40px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -20px;
  padding: 40px 20px 24px;
}

.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.site-footer-col h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #fff;
}

.site-footer-col p,
.site-footer-col li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 8px;
}

.site-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer-col ul li {
  margin-bottom: 6px;
}

.site-footer-col a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
}

.site-footer-col a:hover {
  text-decoration: underline;
}

.site-footer-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
}

.site-footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 16px;
  line-height: 1.5;
}

.site-footer-galimedya {
  height: 36px;
  width: auto;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .site-header-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  /* Mobil menü */
  .site-header-inner {
    position: relative;
  }

  .site-header-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    cursor: pointer;
    margin-left: auto;
  }

  .site-header-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    position: relative;
  }

  .site-header-toggle span::before,
  .site-header-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: #333;
    border-radius: 2px;
  }

  .site-header-toggle span::before {
    top: -6px;
  }

  .site-header-toggle span::after {
    top: 6px;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 12px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-header-btn {
    margin-left: 8px;
    white-space: nowrap;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .site-footer-logo {
    margin-left: auto;
    margin-right: auto;
  }
}
