/* ==========================================================================
   İletişim: mesaj formu + sayfa kenarındaki iletişim butonları
   Tema dosyasına (style.css) dokunmadan, ayrı tutulur.
   ========================================================================== */

/* ---------- Mesaj formu (bize-ulasin.html) ---------- */
.pg-form .title {
  margin-bottom: 6px;
}
.pg-form .pg-lead {
  color: #5d666f;
  margin-bottom: 22px;
}
.pg-form .pg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.pg-form .pg-field {
  margin-bottom: 18px;
  min-width: 0;
}
.pg-form label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #1c2539;
  margin-bottom: 6px;
}
.pg-form label .opt {
  font-weight: 400;
  color: #5d666f;
}
.pg-form input[type="text"],
.pg-form input[type="email"],
.pg-form input[type="tel"],
.pg-form select,
.pg-form textarea {
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid rgba(32, 40, 45, 0.25);
  border-radius: 8px;
  background: #fff;
  color: #1c2539;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pg-form select {
  appearance: auto;
  cursor: pointer;
}
.pg-form textarea {
  height: 150px;
  padding: 12px 15px;
  resize: vertical;
}
.pg-form input:focus,
.pg-form select:focus,
.pg-form textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}
.pg-form [aria-invalid="true"] {
  border-color: #b91c1c;
}
.pg-form .pg-err {
  display: block;
  min-height: 0;
  margin-top: 5px;
  font-size: 14px;
  color: #b91c1c;
}
.pg-form .pg-err:empty {
  display: none;
}
.pg-form .pg-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.pg-form .pg-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: #2563eb;
}
.pg-form .pg-check label {
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  color: #5d666f;
  margin: 0;
  /* Tema, onay kutusu etiketlerine sahte kutu çiziyor; burada gerçek kutu kullanılır */
  padding: 0;
}
.pg-form .pg-check label::before,
.pg-form .pg-check label::after {
  display: none !important;
}
.pg-form .pg-check input[type="checkbox"] {
  position: static;
  opacity: 1;
  appearance: auto;
  width: 18px !important;
  height: 18px !important;
  min-height: 0;
  padding: 0;
  border-radius: 0;
}
/* Bal küpü: ziyaretçi görmez, botlar doldurur */
.pg-form .pg-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.pg-form .pg-actions {
  margin-top: 20px;
}
.pg-form button[type="submit"][disabled] {
  opacity: 0.6;
  cursor: progress;
}
.pg-form #form-messages {
  margin: 16px 0 0;
  padding: 0;
  font-weight: 600;
}
.pg-form #form-messages:empty {
  display: none;
}
.pg-form #form-messages.success,
.pg-form #form-messages.error {
  padding: 12px 14px;
  border-radius: 8px;
}
.pg-form #form-messages.success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.pg-form #form-messages.error {
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}
@media only screen and (max-width: 575px) {
  .pg-form .pg-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sayfa kenarındaki iletişim butonları (tüm sayfalar) ---------- */
.pg-contact {
  position: fixed;
  right: 30px;
  bottom: 92px; /* "yukarı çık" halkasının üstünde */
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pg-contact a {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #20282d;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.6);
  transition: background 0.2s ease, transform 0.2s ease;
}
.pg-contact a.msg {
  background: #2563eb;
}
.pg-contact a:hover,
.pg-contact a:focus-visible {
  background: #1d4ed8;
  color: #fff;
  transform: translateY(-2px);
}
.pg-contact a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
/* Fareyle üzerine gelince solda açılan etiket */
.pg-contact a span {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: #0b1220;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pg-contact a:hover span,
.pg-contact a:focus-visible span {
  opacity: 1;
}
@media only screen and (max-width: 575px) {
  .pg-contact {
    right: 16px;
    bottom: 84px;
  }
  .pg-contact a span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-contact a,
  .pg-contact a span {
    transition: none;
  }
}
@media print {
  .pg-contact {
    display: none;
  }
}
