@import url("https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

body {
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: 13px;
  font-family: "Poppins", serif;
}

.card {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  margin: 100px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.divider {
  height: 2px;
  background-color: #dee2e6;
  margin: 20px 0;
}

.step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 50px;
  position: relative;
}

.step .circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  line-height: 40px;
  text-align: center;
  background-color: #dee2e6;
  color: #6c757d;
  font-weight: bold;
  z-index: 1;
  position: relative;
}

.step .circle.active {
  background-color: #7e58ff;
  color: #fff;
}

.step::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #dee2e6;
  z-index: 0;
  transform: translateY(-50%);
}

.step .circle:first-child::before {
  content: none;
}

.step .circle.active + .circle::before {
  background-color: #7e58ff;
}

.form-section {
  display: none;
  margin-top: 20px;
}

.form-section.active {
  display: block;
}

.step-description {
  position: absolute;
  top: 60px;
  text-align: center;
  width: 100px;
  left: 50%;
  transform: translateX(-50%);
}

.step-description span {
  font-size: 13px;
  color: #6c757d;
}

/* Yeni stil: Input'ları yan yana hizalama */
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row .form-control {
  flex: 1;
}

/* İleri butonunun sağ altta yer alması */
.next-btn-container {
  text-align: right;
  margin-top: 20px;
}
.btn-purple {
  background-color: #7e58ff;
  color: #fff;
  font-weight: 500;
  border: none;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.btn-purple::after .form-floating > .form-control,
.form-floating > .form-control-plaintext,
.form-floating > .form-select {
  height: calc(2.5rem + calc(var(--bs-border-width) * 2));
}
.btn-purple:hover {
  background-color: #593eb1;
  color: #fff;
}
.is-invalid {
  border: 2px solid red;
  background-color: #ffe6e6;
}
.iti--allow-dropdown .iti__flag-container, .iti--separate-dial-code .iti__flag-container {
    z-index: 4 !important;
}
.iti__country-list {
    position: fixed !important; /* Fixed pozisyon kullanıyoruz */
    z-index: 9999 !important; /* Yüksek z-index değeri */
    width: auto !important;
    max-height: 300px !important; /* Maximum yükseklik */
    overflow-y: auto !important;
    background-color: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2) !important;
}

/* Seçici açıldığında input'un stilini korumak için */
.iti--container {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}
@media screen and (max-width: 1000px) {
  .card {
    margin: 20px;
    padding: 15px;
  }

  .step {
    margin: 30px 10px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .step::-webkit-scrollbar {
    display: none;
  }

  .step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #dee2e6;
    z-index: 0;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .step .circle {
    min-width: 30px;
    width: 30px;
    height: 30px;
    line-height: 30px;
    margin: 0 15px;
    flex-shrink: 0;
  }

  .step .circle.active ~ .circle::before {
    background-color: #dee2e6;
  }

  .step .circle.active::before {
    background-color: #7e58ff;
  }

  /* Step description'ları gizle */
  .step .step-description {
    display: none;
  }

  /* Aktif step için başlık göster */
  .form-section.active::before {
    content: attr(data-step-title);
    display: block;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #7e58ff;
    margin-bottom: 20px;
    padding: 10px;
    border-bottom: 2px solid #7e58ff;
  }
}

/* Mobil görünüm için düzenlemeler */
@media screen and (max-width: 1000px) {
  .step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
    position: relative;
    overflow-x: auto;
    padding: 0 20px;
    /* Kaydırma çubuğunu gizle */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .step::-webkit-scrollbar {
    display: none;
  }

  /* Circle'lar için stil */
  .step .circle {
    width: 35px;
    height: 35px;
    min-width: 35px; /* Sabit genişlik */
    line-height: 35px;
    margin: 0 25px; /* Circle'lar arası mesafe */
    background-color: #dee2e6;
    border-radius: 50%;
    text-align: center;
    color: #6c757d;
    font-weight: bold;
    position: relative;
    z-index: 2;
  }

  /* Bağlayıcı çizgi için yeni stil */
  .step::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 40px; /* İlk circle'dan sonra başla */
    right: 40px; /* Son circle'dan önce bitir */
    height: 2px;
    background-color: #dee2e6;
    z-index: 1;
    transform: translateY(-50%);
  }

  /* Aktif circle için stil */
  .step .circle.active {
    background-color: #7e58ff;
    color: #fff;
  }

  /* Step açıklamalarını gizle */
  .step .step-description {
    display: none;
  }

  /* İlk ve son circle için özel margin */
  .step .circle:first-child {
    margin-left: 0;
  }

  .step .circle:last-child {
    margin-right: 0;
  }
  .card {
    margin: 10px;
    padding: 15px;
  }

  /* Form elemanları için düzenlemeler */
  .form-row {
    flex-direction: column;
    gap: 15px;
  }

  .form-floating {
    margin-bottom: 15px;
  }

  /* Input grupları için düzenleme */
  .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    width: 100%;
    padding: 0;
    margin-bottom: 15px;
  }

  /* Tablo düzenlemeleri */
  .table-responsive {
    margin: 15px 0;
    font-size: 12px;
  }

  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }

  .table thead th {
    white-space: nowrap;
    padding: 10px 8px;
    font-size: 12px;
  }

  .table tbody td {
    padding: 10px 8px;
    font-size: 12px;
  }

  /* Tablo içindeki form elemanları */
  .table .form-control {
    font-size: 12px;
    padding: 8px;
    min-width: 120px;
  }

  .table select.form-control {
    padding-right: 24px;
  }

  /* Buton düzenlemeleri */
  .btn {
    width: auto;
    min-width: 100px;
    margin: 5px;
    padding: 8px 16px;
    font-size: 12px;
  }

  /* Telefon input container düzenlemesi */
  .phone-input-container {
    margin-bottom: 15px;
  }

  /* IntlTelInput düzenlemesi */
  .iti {
    width: 100%;
    margin-bottom: 15px;
  }

  /* Form bölümleri arası boşluk */
  .form-section {
    padding: 15px 0;
  }

  /* Başlık düzenlemesi */
  h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  .divider {
    margin: 15px 0;
  }

  /* Textarea düzenlemesi */
  textarea.form-control {
    min-height: 80px;
  }

  /* Buton container düzenlemesi */
  .next-btn-container {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }

  /* Tablo içindeki butonlar */
  .table .btn {
    min-width: 60px;
    padding: 4px 8px;
  }

  /* Tablo satırları arası boşluk */
  .table tbody tr {
    margin-bottom: 10px;
  }

  /* Form grupları arası boşluk */
  .form-group {
    margin-bottom: 15px;
  }

  /* Select elementleri için düzenleme */
  select.form-control {
    padding-right: 24px;
    background-position: right 8px center;
  }

  /* Hata durumunda input stilleri */
  .is-invalid {
    margin-bottom: 5px;
  }

  /* Toast mesajları için düzenleme */
  .toast-container {
    padding: 10px;
  }

  /* Açıklama metinleri için düzenleme */
  .form-text {
    font-size: 11px;
    margin-top: 4px;
  }
  .iti__flag-container {
    width: 48px; /* Sadece bayrak genişliği kadar göster */
  }
  
  .iti__selected-dial-code {
      display: none;
  }
}

/* Daha küçük mobil ekranlar için ek düzenlemeler */
@media screen and (max-width: 480px) {
  .card {
    margin: 5px;
    padding: 15px;
  }
  
  .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    width: calc(100% - 20px); /* Daha küçük ekranlarda 20px çıkar (10px sağ + 10px sol) */
    margin: 0 10px 10px 10px;
  }
  
  .form-row {
    padding: 0 10px;
  }
  
  .table-responsive {
    margin: 10px;
    padding: 0 10px;
  }

  .table .form-control {
    min-width: 100px;
  }

  .btn {
    min-width: 80px;
    padding: 6px 12px;
  }

  h3 {
    font-size: 16px;
  }

  .form-floating label {
    font-size: 11px;
  }

  .form-control {
    font-size: 12px;
    padding: 8px;
  }
  
  .phone-input-container {
    margin: 0 10px 10px 10px;
  }

  .iti {
    width: calc(100% - 20px);
    margin: 0 10px 10px 10px;
  }
}

@media screen and (max-width: 1000px) {
  /* Kart içindeki padding'i artır */
  .card {
    margin: 10px;
    padding: 20px;
  }

  /* Form bölümü için padding */
  .form-section {
    padding: 15px;
  }

  /* Input container'lar için düzenleme */
  .col-md-3, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    width: calc(100% - 30px); /* Ekran genişliğinden 30px çıkar (15px sağ + 15px sol) */
    margin: 0 15px 15px 15px; /* Sağdan ve soldan 15px boşluk */
    padding: 0;
  }

  /* Form satırları için düzenleme */
  .form-row {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Tablo container için düzenleme */
  .table-responsive {
    margin: 15px;
    padding: 0 15px;
  }

  /* Telefon input container düzenlemesi */
  .phone-input-container {
    margin: 0 15px 15px 15px;
  }

  /* IntlTelInput düzenlemesi */
  .iti {
    width: calc(100% - 30px);
    margin: 0 15px 15px 15px;
  }
}