.dr-survey {
  direction: rtl;
  max-width: 680px;
  margin: 28px auto;
  padding: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, .08);
  color: #1f2937;
  font-family: inherit;
}

.dr-survey-title {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: 1.35rem;
}

.dr-survey-progress {
  margin: 0 0 9px;
  color: #64748b;
  font-size: .92rem;
}

.dr-survey-progress::after {
  display: block;
  width: var(--dr-survey-progress, 0%);
  height: 5px;
  margin-top: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  content: "";
  transition: width .2s ease;
}

.dr-survey .closing-title {
  margin: 0 0 20px;
  color: #111827;
  font-size: 1.16rem;
  line-height: 1.8;
}

.dr-survey-choices {
  display: grid;
  gap: 11px;
}

.dr-survey-choice-wrap {
  display: grid;
  gap: 8px;
}

.dr-survey-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #cbd5e1;
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}

.dr-survey-choice:hover {
  border-color: #60a5fa;
  background: #f8fbff;
}

.dr-survey-choice.is-selected {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .12);
}

.dr-survey-choice input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2563eb;
}

.dr-survey-other,
.dr-survey-mobile {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font: inherit;
}

.dr-survey-other:focus,
.dr-survey-mobile:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, .14);
}

.dr-survey-mobile {
  direction: ltr;
  text-align: left;
  border-radius: 10px;
  padding: 10px;
}

.dr-survey-mobile-label {
  display: block;
  margin: 22px 0 7px;
  font-weight: 700;
}

.dr-survey-mobile-label span {
  color: #64748b;
  font-size: .88em;
  font-weight: 400;
}

.dr-survey-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
}

.dr-survey-actions button {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  flex: 1 1 0;
  padding: 10px 21px;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.dr-survey-actions button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.dr-survey-next,
.dr-survey-submit {
  background: #2563eb;
  color: #fff;
}

.dr-survey-back {
  background: #e5e7eb;
  color: #374151;
}

.dr-survey-error {
  min-height: 1.4em;
  margin: 12px 0 0;
  color: #b91c1c;
}

.dr-survey-final-message{
  color: #374151;
  line-height: 2;
  background-color: #e9f9ea;
  border-radius: 10px;
  padding: 15px 20px;
}
.dr-survey-final-message p {
  margin: 7px 0;
}

.dr-survey-success {
  padding: 22px;
  border: 1px solid #86efac;
  border-radius: 12px;
  background: #f0fdf4;
  color: #166534;
  line-height: 2;
  text-align: center;
}

.dr-survey-unavailable {
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  text-align: center;
}

.dr-survey-launcher,
.dr-survey-modal {
  display: none;
}

body.dr-survey-modal-open {
  overflow: hidden;
  touch-action: none;
}

body.dr-survey-modal-open #mobile-stick-mag,
body.dr-survey-modal-open #mobile-stick-mag-s2,
body.dr-survey-modal-open .wpcustom-sticky-banner {
  pointer-events: none !important;
  visibility: hidden !important;
}
.dr-survey-form input[type="tel"], 
.dr-survey-form input[type="text"], 
.dr-survey-form textarea {
  border-radius: 10px;
  padding: 10px;
}
.closing-description{
  line-height: 28px;
  font-size: 14px;
  margin-bottom:15px
}
.closing-contact{
  line-height: 28px;
  font-weight: 700;
  font-size: 14px;
}
@media (max-width: 600px) {
  .dr-survey {
    margin: 16px 0;
    padding: 19px 15px;
    border-radius: 13px;
  }

  .dr-survey-actions {
    flex-wrap: nowrap;
  }
}

@media (max-width: 767.98px) {
  .dr-survey-launcher {
    position: fixed;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    bottom: 10px;
    z-index: 9998;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 275px;
    max-width: calc(100vw - 24px);
    min-height: 50px;
    padding: 0 20px;
    box-sizing: border-box;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0069d1, #1687f8);
    box-shadow: 0 8px 24px rgba(0, 105, 209, 0.32);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(calc(100% + 24px));

    transition:
        bottom 0.2s ease,
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0s linear 0.25s;
  }


  .dr-survey-launcher.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
    transition-delay: 0s;
  }

  .dr-survey-launcher:focus-visible {
    outline: 3px solid rgba(0, 105, 209, .28);
    outline-offset: 3px;
  }

  .dr-survey-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
  }

  .dr-survey-modal:not([hidden]) {
    display: block;
  }

  .dr-survey-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .58);
    opacity: 0;
    transition: opacity .22s ease;
  }

  .dr-survey-modal-dialog {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    max-height: 92dvh;
    flex-direction: column;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -12px 40px rgba(15, 23, 42, .2);
    transform: translateY(105%);
    transition: transform .24s ease;
  }

  .dr-survey-modal.is-open .dr-survey-modal-backdrop {
    opacity: 1;
  }

  .dr-survey-modal.is-open .dr-survey-modal-dialog {
    transform: translateY(0);
  }

  .dr-survey-modal-header {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px 13px;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
  }

  .dr-survey-modal-header::before {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: #d7dee8;
    content: "";
    transform: translateX(-50%);
  }

  .dr-survey-modal-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.6;
  }

  .dr-survey-modal-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    padding: 0 0 3px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
    font: 400 28px/1 Arial, sans-serif;
  }

  .dr-survey-modal-body {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .dr-survey-modal .dr-survey {
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 19px 16px calc(22px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .dr-survey-modal .dr-survey-title {
    display: none;
  }

  .dr-survey-modal .dr-survey-step > .closing-title {
    display: none;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .dr-survey-launcher,
  .dr-survey-modal-backdrop,
  .dr-survey-modal-dialog {
    transition: none;
  }
}