/* =========================================================
   Leadroitt Realty — Animated form response modal
   Shown after any form is submitted (PHP flash or AJAX).
   ========================================================= */

.lor-response {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100001;
  width: calc(100% - 32px);
  max-width: 560px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid #d9e2ee;
  border-left: 5px solid #083587;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(8, 20, 40, 0.22);
  color: #142b4f;
  animation: lorResponseIn 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.lor-response[hidden] {
  display: none !important;
}

.lor-response--success {
  border-left-color: #1f9d63;
}

.lor-response--error {
  border-left-color: #c0392b;
}

.lor-response--info {
  border-left-color: #2571a5;
}

.lor-response__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #083587;
  font-size: 19px;
  line-height: 1;
}

.lor-response--success .lor-response__icon {
  background: #e8f8ef;
  color: #1f9d63;
}

.lor-response--error .lor-response__icon {
  background: #fdecea;
  color: #c0392b;
}

.lor-response--info .lor-response__icon {
  background: #eaf4fb;
  color: #2571a5;
}

.lor-response__content {
  flex: 1 1 auto;
  min-width: 0;
}

.lor-response__title {
  margin: 0 0 4px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  color: #142b4f;
}

.lor-response__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5b6578;
}

.lor-response__close {
  flex: none;
  margin: -4px -6px 0 0;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #98a1b0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.lor-response__close:hover,
.lor-response__close:focus {
  color: #142b4f;
}

.lor-response__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: rgba(8, 53, 135, 0.12);
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}

.lor-response__progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: #083587;
  transform-origin: left center;
  animation: lorResponseTimer 8s linear forwards;
}

.lor-response--success .lor-response__progress span {
  background: #1f9d63;
}

.lor-response--error .lor-response__progress span {
  background: #c0392b;
}

.lor-response.is-closing {
  animation: lorResponseOut 0.25s ease forwards;
}

/* Zoho web form validation highlight */
.zs-invalid {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.15);
}

@keyframes lorResponseIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes lorResponseOut {
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.97);
  }
}

@keyframes lorResponseTimer {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

@media (max-width: 600px) {
  .lor-response {
    top: 12px;
    padding: 14px 16px;
    gap: 10px;
  }

  .lor-response__icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .lor-response__title {
    font-size: 15px;
  }

  .lor-response__text {
    font-size: 13px;
  }
}
