:root {
  --renled-orange: #f47521;
  --renled-text: #202020;
  --renled-muted: #6b6b6b;
}

.renled-quote-overlay[hidden] { display: none !important; }

.renled-quote-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255,255,255,.73);
  -webkit-backdrop-filter: blur(10px) saturate(.9);
  backdrop-filter: blur(10px) saturate(.9);
  animation: renledFade .18s ease-out;
}

body.renled-modal-open { overflow: hidden !important; }

body.renled-modal-open > *:not(#renled-quote-overlay) {
  visibility: hidden !important;
}

body.renled-modal-open #renled-quote-overlay,
body.renled-modal-open #renled-quote-overlay * {
  visibility: visible !important;
}


/* RENLED modalı yalnızca teklif formuna ait elemanları gösterebilir.
   Tema/üyelik popup'larının yanlışlıkla modal içine enjekte edilmesini engeller. */
.renled-quote-modal > :not(.renled-quote-close):not(.renled-quote-head):not(#renled-quote-form):not(#renled-quote-success) {
  display: none !important;
}

#renled-quote-form > :not(input[type="hidden"]):not(.renled-hp):not(.renled-quote-grid):not(.renled-quote-notice):not(.renled-quote-submit):not(.renled-lighting-text-link) {
  display: none !important;
}

.renled-quote-modal {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: min(720px, 100%);
  max-height: min(880px, calc(100vh - 48px));
  overflow-y: auto;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  padding: 34px;
  color: var(--renled-text);
  animation: renledUp .22s ease-out;
}

.renled-quote-modal .renled-quote-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  bottom: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 1px solid rgba(244,117,33,.20) !important;
  border-radius: 50% !important;
  background: #fff7f1 !important;
  color: #555 !important;
  box-shadow: none !important;
  font-family: Arial, sans-serif !important;
  font-size: 22px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  cursor: pointer !important;
  z-index: 5 !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease !important;
}
.renled-quote-modal .renled-quote-close:hover {
  background: var(--renled-orange) !important;
  border-color: var(--renled-orange) !important;
  color: #fff !important;
  transform: scale(1.04) !important;
}
.renled-quote-modal .renled-quote-close:focus-visible {
  outline: 2px solid rgba(244,117,33,.38) !important;
  outline-offset: 2px !important;
}

.renled-quote-head { padding-right: 42px; margin-bottom: 24px; }
.renled-quote-head h2 { margin: 0 0 8px; font-size: clamp(28px,4vw,38px); line-height:1.1; color:#202020; }

.renled-quote-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.renled-field { display:flex; flex-direction:column; gap:7px; }
.renled-field-full { grid-column: 1 / -1; }
.renled-field label { color:#303030; font-size:13px; font-weight:700; }
.renled-field label span { color:var(--renled-orange); }

.renled-field input,
.renled-field textarea {
  width:100%;
  box-sizing:border-box;
  border:1px solid #dedede !important;
  border-radius:12px !important;
  background:#fafafa !important;
  color:#222 !important;
  padding:13px 14px !important;
  font:inherit !important;
  outline:none !important;
  box-shadow:none !important;
  transition:border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.renled-field textarea { resize:vertical; min-height:112px; }
.renled-field input:focus,
.renled-field textarea:focus { border-color:var(--renled-orange) !important; background:#fff !important; box-shadow:0 0 0 3px rgba(244,117,33,.13) !important; }

.renled-quote-submit,
.renled-success-close {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:52px;
  margin-top:18px;
  border:0;
  border-radius:999px;
  background:var(--renled-orange);
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(244,117,33,.22);
  transition:transform .15s ease, filter .15s ease;
}
.renled-quote-submit:hover,.renled-success-close:hover { transform:translateY(-1px); filter:brightness(.96); }
.renled-quote-submit:disabled { opacity:.65; cursor:not-allowed; transform:none; }

.renled-lighting-text-link {
  margin:10px 0 0 !important;
  text-align:center;
  font-size:12px;
  line-height:1.4;
}
.renled-lighting-text-link a {
  color:#303030 !important;
  text-decoration:underline !important;
  font-weight:400 !important;
}
.renled-lighting-text-link a:hover { color:#202020 !important; text-decoration:underline !important; }

.renled-quote-notice { min-height:0; margin-top:10px; font-size:13px; font-weight:600; }
.renled-quote-notice.is-error { color:#b42318; background:#fef3f2; border-radius:9px; padding:9px 11px; }

.renled-quote-success { text-align:center; padding:44px 12px 20px; }
.renled-success-icon { width:70px; height:70px; margin:0 auto 18px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#fff3e9; color:var(--renled-orange); font-size:34px; font-weight:900; }
.renled-quote-success h3 { margin:0 0 8px; font-size:28px; }
.renled-quote-success p { margin:0 auto; max-width:500px; color:var(--renled-muted); line-height:1.6; }
.renled-success-close { max-width:220px; margin:24px auto 0; }

.renled-hp { position:absolute !important; left:-99999px !important; width:1px !important; height:1px !important; overflow:hidden !important; }

@keyframes renledFade { from{opacity:0} to{opacity:1} }
@keyframes renledUp { from{opacity:0;transform:translateY(16px) scale(.99)} to{opacity:1;transform:none} }

@media (max-width: 680px) {
  .renled-quote-overlay { padding:12px; align-items:flex-end; }
  .renled-quote-modal { width:100%; max-height:92vh; border-radius:22px 22px 14px 14px; padding:26px 18px 22px; }
  .renled-quote-grid { grid-template-columns:1fr; gap:13px; }
  .renled-field-full { grid-column:auto; }
  .renled-quote-head { padding-right:44px; }
  .renled-quote-modal .renled-quote-close { top:12px !important; right:12px !important; }
}
