/* Sticky BİLGİ AL butonu + Misafir Bilgi Formu modal – görsele birebir */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* Mobil/tablet: sağda beyaz boşluk (yatay taşma) olmasın */
html.srht-bilgi-modal-loaded,
body.srht-bilgi-modal-loaded {
  overflow-x: hidden;
  max-width: 100vw;
}

.srht-sticky-bilgi-btn,
.srht-bilgi-modal-overlay,
.srht-bilgi-modal * {
  box-sizing: border-box;
}

/* --- Sticky buton (sağ orta, dikey yazı) --- */
.srht-sticky-bilgi-btn {
  position: fixed;
  top: 50%;
  right: 0;
  left: auto;
  transform: translateY(-50%);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-height: 140px;
  padding: 20px 10px;
  padding-right: max(10px, env(safe-area-inset-right));
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #1a1a1a;
  background: #f0efec;
  border: none;
  border-radius: 12px 0 0 12px;
  box-shadow: -2px 0 12px rgba(0,0,0,.12);
  cursor: pointer;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.05em;
  transition: background .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Taşma yapmasın, viewport dışına taşmasın */
  max-width: 100vw;
  contain: layout style;
}

.srht-sticky-bilgi-btn:hover {
  background: #e8e6e2;
  box-shadow: -2px 0 16px rgba(0,0,0,.15);
  color: #000;
}

.srht-sticky-bilgi-btn .srht-sticky-bilgi-text {
  display: inline-block;
  transform: rotate(180deg);
}

/* --- Overlay --- */
.srht-bilgi-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.srht-bilgi-modal-overlay.srht-bilgi-modal-open {
  opacity: 1;
  visibility: visible;
}

/* --- Modal kutu (ortada pop-up, beyaz) --- */
.srht-bilgi-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 94vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  overflow-y: auto;
  transform: translateY(20px) scale(0.98);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}

.srht-bilgi-modal-overlay.srht-bilgi-modal-open .srht-bilgi-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.srht-bilgi-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: color .2s, background .2s;
  z-index: 10;
}

.srht-bilgi-modal-close:hover {
  color: #fff;
  background: rgba(255,255,255,.3);
}

.srht-bilgi-modal-inner {
  padding: 0 24px 24px;
  font-family: 'Montserrat', sans-serif;
}

.srht-bilgi-modal-header {
  margin: 0 -24px 24px -24px;
  padding: 28px 24px 24px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 100%);
  border-radius: 12px 12px 0 0;
}

.srht-bilgi-modal-logo {
  text-align: center;
  margin-bottom: 14px;
}

.srht-bilgi-modal-logo-img {
  display: block;
  max-width: 160px;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.srht-bilgi-modal-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.srht-bilgi-form {
  margin: 0;
}

.srht-bilgi-field {
  margin: 0 0 12px;
}

.srht-bilgi-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #333;
}

.srht-bilgi-required {
  color: #263A4F;
}

.srht-bilgi-field input,
.srht-bilgi-field textarea {
  width: 100%;
  padding: 9px 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  transition: border-color .2s;
}

.srht-bilgi-field input:focus,
.srht-bilgi-field textarea:focus {
  border-color: #263A4F;
}

.srht-bilgi-field textarea {
  resize: vertical;
  min-height: 72px;
}

.srht-bilgi-check {
  margin: 0 0 8px;
}

.srht-bilgi-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: #555;
  cursor: pointer;
}

.srht-bilgi-check input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #263A4F;
  cursor: pointer;
}

.srht-bilgi-buttons {
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.srht-bilgi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #263A4F;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s;
}

.srht-bilgi-btn:hover {
  background: #1e2d3d;
  color: #fff;
}

.srht-bilgi-btn-phone .srht-bilgi-phone-icon {
  flex-shrink: 0;
}

/* Gönder butonu: yükleme spinner */
.srht-bilgi-btn-send {
  position: relative;
  min-height: 40px;
}
.srht-bilgi-btn-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: srht-bilgi-spin 0.7s linear infinite;
}
.srht-bilgi-btn-send.is-loading .srht-bilgi-btn-text {
  visibility: hidden;
}
.srht-bilgi-btn-send.is-loading .srht-bilgi-btn-spinner {
  display: inline-block;
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -11px;
  margin-top: -11px;
}
@keyframes srht-bilgi-spin {
  to { transform: rotate(360deg); }
}

/* Form sonrası başarı / hata mesajı */
.srht-bilgi-form-feedback {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.45;
  font-family: 'Montserrat', sans-serif;
}
.srht-bilgi-form-feedback[hidden] {
  display: none !important;
}
.srht-bilgi-form-feedback--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.srht-bilgi-form-feedback--success::before {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23065f46'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}
.srht-bilgi-form-feedback--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.srht-bilgi-form--hidden {
  display: none !important;
}

/* Mobil: buton her zaman görünsün, ekran uyumu */
@media (max-width: 768px) {
  .srht-sticky-bilgi-btn {
    width: 44px;
    min-height: 120px;
    padding: 16px 8px;
    padding-right: max(8px, env(safe-area-inset-right));
    font-size: 12px;
    z-index: 999998;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}

@media (max-width: 480px) {
  .srht-bilgi-modal {
    max-width: 100%;
    border-radius: 0;
  }

  .srht-bilgi-modal-inner {
    padding: 0 20px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom));
  }

  .srht-bilgi-modal-header {
    margin: 0 -20px 24px -20px;
    padding: 52px 20px 24px;
    padding-top: max(52px, env(safe-area-inset-top));
    border-radius: 0;
  }

  .srht-sticky-bilgi-btn {
    width: 40px;
    min-height: 100px;
    font-size: 11px;
  }
}
