/* ==========================================================================
   İletişim Formu
   ========================================================================== */

/* ── Form Wrapper ─────────────────────────── */
.contact-form-wrapper {
  background: transparent;
}

/* ==============================================
   FLUENT FORMS OVERRIDE
   ============================================== */

/* Form satır boşluğu */
.contact-form-wrapper .ff-el-group,
.contact-form-wrapper .fluentform .ff-el-group {
  margin-bottom: 1rem;
}

/* 2 sütunlu grid düzen */
.contact-form-wrapper .ff-column-2 {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
}

/* Input, textarea ortak stiller */
.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper input[type="number"],
.contact-form-wrapper textarea,
.contact-form-wrapper .ff-el-form-control {
  width: 100% !important;
  background-color: #e9f6fc !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.85rem 1.1rem !important;
  font-size: 0.85rem !important;
  color: #000 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* Placeholder */
.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
  color: #6d74c6 !important;
}

/* Focus */
.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper .ff-el-form-control:focus {
  outline: 2px solid #2e368f !important;
  outline-offset: 0 !important;
}

/* Textarea yüksekliği */
.contact-form-wrapper textarea {
  min-height: 140px !important;
  resize: vertical !important;
}

/* ── Choices.js (Select) Override ─────────── */

/* Kapalı kutu */
.contact-form-wrapper .choices__inner {
  background-color: #e9f6fc !important;
  border: none !important;
  border-radius: 0.75rem !important;
  padding: 0.2rem 1.1rem !important;
  font-size: 0.85rem !important;
  color: #6d74c6 !important;
  min-height: unset !important;
}
/* Seçili metin sola hizala */
.contact-form-wrapper .choices__list--single {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0.55rem 0 !important;
}
.contact-form-wrapper .choices__list--single .choices__item {
  font-size: 0.85rem !important;
}
/* Seçili / placeholder metin */
.contact-form-wrapper .choices__item--selectable,
.contact-form-wrapper .choices__placeholder {
  color: #6d74c6 !important;
  text-align: left !important;
}

/* Açılan dropdown */
.contact-form-wrapper .choices__list--dropdown {
  background-color: #e9f6fc !important;
  border: none !important;
  border-radius: 0.75rem !important;
  margin-top: 4px !important;
}

/* Dropdown seçenekler */
.contact-form-wrapper .choices__list--dropdown .choices__item {
  background-color: #e9f6fc !important;
  color: #6d74c6 !important;
  font-size: 0.95rem !important;
}

/* Hover */
.contact-form-wrapper
  .choices__list--dropdown
  .choices__item--selectable.is-highlighted {
  background-color: #6d74c6 !important;
  color: #fff !important;
}

/* Dropdown arama input'u */
.contact-form-wrapper .choices__input--cloned {
  background-color: #056a921a !important;
  color: #e9f6fc !important;
  border-bottom: 1px solid #c8dbc9 !important;
  margin-bottom: 4px !important;
}

/* ── Label'ları gizle ─────────────────────── */
.contact-form-wrapper .ff-el-group label.ff-el-is-label {
  display: none !important;
}

/* ── Hata mesajları ───────────────────────── */
.contact-form-wrapper .error,
.contact-form-wrapper .ff-el-is-error {
  color: #e03030 !important;
  font-size: 0.8rem !important;
  margin-top: 0.3rem !important;
}

/* ── Checkbox (KVKK) ──────────────────────── */
.contact-form-wrapper input[type="checkbox"] {
  width: 1.2rem !important;
  height: 1.2rem !important;
  border-radius: 0.25rem !important;
  border: 2px solid #d9d9d9 !important;
  background-color: transparent !important;
  accent-color: #d9d9d9 !important;
  margin-right: 0.5rem !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  padding: 0 !important;
}

.contact-form-wrapper .ff-el-group--checkbox label {
  display: flex !important;
  align-items: center !important;
  color: #d9d9d9 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
}

.contact-form-wrapper .ff-el-group--checkbox a {
  color: #d9d9d9 !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* ── Alt satır: Checkbox + Gönder ────────── */
.contact-form-wrapper .ff-form-footer,
.contact-form-wrapper .ff-submit-btn-wrap,
.contact-form-wrapper .ff_submit_btn_wrapper {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-top: 1.5rem !important;
}

/* ── Gönder Butonu ────────────────────────── */
.contact-form-wrapper button[type="submit"],
.contact-form-wrapper .ff-btn-submit,
.contact-form-wrapper input[type="submit"] {
  background-color: #2e368f !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 2rem !important;
  padding: 0.8rem 2.2rem !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease !important;
  white-space: nowrap !important;
  border: 2px solid transparent !important;
}

.contact-form-wrapper button[type="submit"]:hover,
.contact-form-wrapper .ff-btn-submit:hover {
  background-color: #fff !important;
  transform: translateY(-1px) !important;
  color: #2e368f !important;
  border: 2px solid #2e368f !important;
}

/* ── Başarı mesajı ────────────────────────── */
.contact-form-wrapper .ff-message-success {
  background-color: #deeadf !important;
  color: #1a5c2e !important;
  border-radius: 0.75rem !important;
  padding: 1rem 1.5rem !important;
  text-align: center !important;
  font-weight: 600 !important;
}

/* ── Mobil ────────────────────────────────── */
@media (max-width: 640px) {
  .contact-form-wrapper .ff-column-2 {
    grid-template-columns: 1fr !important;
  }

  .contact-form-wrapper .ff-form-footer,
  .contact-form-wrapper .ff_submit_btn_wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .contact-form-wrapper button[type="submit"] {
    width: 100% !important;
    text-align: center !important;
  }
}



/* Butonun içine ikon için yer aç */
.contact-form-wrapper button[type="submit"],
.contact-form-wrapper .ff-btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Metin ile ikon arasındaki boşluk */
}

/* Sağ ok ikonu oluşturma */
.contact-form-wrapper button[type="submit"]::after,
.contact-form-wrapper .ff-btn-submit::after {
  content: '→'; /* İkon karakteri */
  font-size: 1.2rem !important;
  line-height: 1 !important;
  transition: transform 0.5s ease !important;
}

/* Hover durumunda ikonun hafif sağa kayması */
.contact-form-wrapper button[type="submit"]:hover::after,
.contact-form-wrapper .ff-btn-submit:hover::after {
  transform: translateX(4px) !important;
}

.contact-form-wrapper button[type="submit"]::after,
.contact-form-wrapper .ff-btn-submit::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.5s ease !important;
}

.contact-form-wrapper button[type="submit"],
.contact-form-wrapper .ff-btn-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important; /* Metin ile ikon arasındaki boşluk */
}

/* Sağ ok ikonu varsayılan hali (Beyaz İkon) */
.contact-form-wrapper button[type="submit"]::after,
.contact-form-wrapper .ff-btn-submit::after {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.5s ease !important;
}

/* Hover durumunda ikonun hafif sağa kayması ve renginin #2e368f olması */
.contact-form-wrapper button[type="submit"]:hover::after,
.contact-form-wrapper .ff-btn-submit:hover::after {
  transform: translateX(4px) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232e368f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E") !important;
}
/* Hover durumunda SVG rengini değiştirmek için (lacivert yap) */
.contact-form-wrapper button[type="submit"]:hover::after,
.contact-form-wrapper .ff-btn-submit:hover::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232e368f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round" stroke-width='2' d='M14 5l7 7m0 0l-7 7m7-7H3'%3E%3C/path%3E%3C/svg%3E");
}
