/* =====================================================
   Inspire Contact Form – style.css v1.1
   ===================================================== */

.inspire-cf-widget,
.inspire-cf-widget *,
.inspire-cf-widget *::before,
.inspire-cf-widget *::after,
.icf-section-wrap *,
.icf-section-wrap *::before,
.icf-section-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.inspire-cf-widget {
  font-family: inherit;
  width: 100%;
}

/* =====================================================
   KART (sadece form kartı widget'ı)
   ===================================================== */
.icf-card {
  background: #ffffff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 32px 60px -20px rgba(26, 75, 20, 0.05);
  padding: 24px 30px;
  position: relative;
  max-width: 517px;
  width: 100%;
  margin-inline: auto;
}

/* Tam bölüm içindeki kart – Lunacy gölgesiyle aynı */
.icf-card--section {
  box-shadow: 0 32px 60px -20px rgba(26, 75, 20, 0.05) !important;
  max-width: 100% !important;
}

/* =====================================================
   FORM
   ===================================================== */
.icf-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.icf-field-wrap {
  position: relative;
  margin-bottom: 20px;
}

.icf-field-wrap:last-child {
  margin-bottom: 0;
}

/* Son alan (mesaj) ile buton arası toplam 32px (20 + 12) */
.icf-submit-wrap {
  margin-top: 12px;
}

/* ---- Ortak Input / Textarea ----
   Selector'lar .inspire-cf-widget ile öneklendi: tema input[type=...] kurallarının
   (attribute specificity) önüne geçmek için. */
.inspire-cf-widget .icf-field {
  width: 100%;
  height: auto;
  padding: 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #232323;
  background: #ffffff;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(13, 10, 13, 0.07);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.inspire-cf-widget .icf-field::placeholder {
  color: #717680;
}

.inspire-cf-widget .icf-field:focus {
  border-color: #558cca;
  box-shadow: 0 0 0 3px rgba(85, 140, 202, 0.15);
}

.inspire-cf-widget .icf-textarea {
  resize: vertical;
  min-height: 101px;
  line-height: 1.6;
}

/* =====================================================
   TELEFON ALANI – intl-tel-input override (Lunacy uyumu)
   ===================================================== */
.inspire-cf-widget .iti {
  display: block;
  width: 100%;
}

/* Telefon input'u diğer .icf-field ile aynı görünüm.
   separateDialCode sol padding'ini iti kendi ayarlar; ezme. */
.inspire-cf-widget .iti .icf-tel {
  width: 100%;
  height: 54px;
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
  color: #232323;
  background: #ffffff;
  border: 1px solid #d5d7da;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(13, 10, 13, 0.07);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inspire-cf-widget .iti .icf-tel:focus {
  border-color: #558cca;
  box-shadow: 0 0 0 3px rgba(85, 140, 202, 0.15);
}

.inspire-cf-widget .iti .icf-tel::placeholder {
  color: #717680;
}

/* Bayrak/ülke seçici buton — Lunacy: bayrak + ok + dikey ayraç (dial kodu yok) */
.inspire-cf-widget .iti__country-container {
  border-right: 1px solid #d5d7da;
}

.inspire-cf-widget .iti__selected-country {
  padding: 0 12px 0 14px;
}

/* Placeholder/numara ayracın sağından başlasın (Lunacy ~x68) */
.inspire-cf-widget .iti .icf-tel {
  padding-left: 72px !important;
}

/* Açılır ülke listesi – Lunacy renk/biçim */
.inspire-cf-widget .iti__dropdown-content {
  border: 1px solid #d5d7da;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(13, 10, 13, 0.12);
  font-family: inherit;
  overflow: hidden;
}

.inspire-cf-widget .iti__search-input {
  font-family: inherit;
  font-size: 14px;
  padding: 10px 12px;
}

.inspire-cf-widget .iti__country.iti__highlight,
.inspire-cf-widget .iti__country:hover {
  background-color: rgba(85, 140, 202, 0.10);
}

.inspire-cf-widget .iti__dial-code {
  color: #717680;
}

/* iti dropdown'u kart taşmasında görünebilsin (kart overflow visible zaten) */
.inspire-cf-widget .iti--inline-dropdown .iti__dropdown-content {
  z-index: 9999;
}

/* =====================================================
   MESAJ (hata / başarı)
   ===================================================== */
.icf-msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 14px;
  animation: icfFadeIn 0.25s ease;
}

.icf-msg.success {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.icf-msg.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@keyframes icfFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================
   GÖNDER BUTONU
   ===================================================== */
.elementor-widget-inspire_cf .icf-submit-btn,
.elementor-widget-inspire_cf_section .icf-submit-btn,
.inspire-cf-widget .icf-submit-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 16px !important;
  background: #558cca !important;
  background-color: #558cca !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-decoration: none !important;
  text-transform: none !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
  outline: none !important;
}

.elementor-widget-inspire_cf .icf-submit-btn:hover,
.elementor-widget-inspire_cf_section .icf-submit-btn:hover,
.inspire-cf-widget .icf-submit-btn:hover {
  background-color: #2a4b9b !important;
  box-shadow: none !important;
  transform: translateY(-1px) !important;
}

.elementor-widget-inspire_cf .icf-submit-btn:active,
.elementor-widget-inspire_cf_section .icf-submit-btn:active,
.inspire-cf-widget .icf-submit-btn:active {
  transform: translateY(0) !important;
}

.elementor-widget-inspire_cf .icf-submit-btn:disabled,
.elementor-widget-inspire_cf_section .icf-submit-btn:disabled,
.inspire-cf-widget .icf-submit-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Spinner */
.icf-btn-spinner {
  display: none;
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: icfSpin 0.7s linear infinite;
}

.icf-submit-btn.loading .icf-btn-text    { display: none; }
.icf-submit-btn.loading .icf-btn-spinner { display: block; }

@keyframes icfSpin {
  to { transform: rotate(360deg); }
}

/* =====================================================
   TAM BÖLÜM WİDGET'I
   ===================================================== */
.icf-section-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 480px;
  padding: 80px 0;
}

/* Network / particle katmanı */
.icf-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.icf-particles::before {
  content: '';
  position: absolute;
  inset: 0;
  /* SVG ağ deseni – beyaz noktalar ve çizgiler */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='500'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.07)' stroke-width='1.2'%3E%3Cline x1='60'  y1='80'  x2='220' y2='40' /%3E%3Cline x1='220' y1='40'  x2='420' y2='130'/%3E%3Cline x1='420' y1='130' x2='540' y2='80' /%3E%3Cline x1='540' y1='80'  x2='560' y2='300'/%3E%3Cline x1='560' y1='300' x2='400' y2='400'/%3E%3Cline x1='400' y1='400' x2='200' y2='450'/%3E%3Cline x1='200' y1='450' x2='40'  y2='360'/%3E%3Cline x1='40'  y1='360' x2='60'  y2='80' /%3E%3Cline x1='220' y1='40'  x2='40'  y2='360'/%3E%3Cline x1='420' y1='130' x2='200' y2='450'/%3E%3Cline x1='60'  y1='80'  x2='400' y2='400'/%3E%3Cline x1='220' y1='40'  x2='560' y2='300'/%3E%3Cline x1='140' y1='220' x2='320' y2='260'/%3E%3Cline x1='320' y1='260' x2='480' y2='220'/%3E%3Cline x1='140' y1='220' x2='300' y2='380'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.18)'%3E%3Ccircle cx='60'  cy='80'  r='3.5'/%3E%3Ccircle cx='220' cy='40'  r='3.5'/%3E%3Ccircle cx='420' cy='130' r='3.5'/%3E%3Ccircle cx='540' cy='80'  r='2.5'/%3E%3Ccircle cx='560' cy='300' r='3.5'/%3E%3Ccircle cx='400' cy='400' r='3.5'/%3E%3Ccircle cx='200' cy='450' r='2.5'/%3E%3Ccircle cx='40'  cy='360' r='3.5'/%3E%3Ccircle cx='140' cy='220' r='2.5'/%3E%3Ccircle cx='320' cy='260' r='2.5'/%3E%3Ccircle cx='480' cy='220' r='2.5'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 600px 500px;
  opacity: 0.65;
}

.icf-particles::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(74, 144, 217, 0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 70%, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}

.icf-section-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 64px;
}

/* SOL – Metin */
.icf-section-left {
  flex: 1;
  color: #ffffff;
  min-width: 0;
}

.icf-s-heading {
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 6px;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.icf-s-subheading {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 28px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.icf-s-desc {
  font-size: 15px;
  line-height: 1.80;
  color: rgba(255, 255, 255, 0.78);
  max-width: 480px;
}

.icf-s-desc strong {
  color: #ffffff;
  font-weight: 600;
  display: block;
  margin-top: 12px;
}

/* SAĞ – Form */
.icf-section-right {
  flex-shrink: 0;
  width: 430px;
}

.icf-section-right .inspire-cf-widget {
  width: 100%;
}

.icf-section-right .icf-card {
  max-width: 100%;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 960px) {
  .icf-section-inner {
    flex-direction: column;
    gap: 48px;
    padding: 0 28px;
  }
  .icf-section-left {
    text-align: center;
  }
  .icf-s-desc {
    max-width: 100%;
    margin: 0 auto;
  }
  .icf-section-right {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }
  .icf-section-wrap {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .icf-section-inner {
    padding: 0 16px;
    gap: 36px;
  }
  .icf-section-wrap {
    padding: 44px 0;
  }
  .icf-card {
    padding: 22px 18px;
    border-radius: 12px;
  }
  .icf-dial { display: none; }
  .icf-s-heading    { font-size: 20px; }
  .icf-s-subheading { font-size: 26px; }
}
