/* Quote popup modal */
.quote-popup {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

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

.quote-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 35, 38, 0.72);
  backdrop-filter: blur(4px);
}

.quote-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  max-height: min(92vh, 720px);
  overflow: auto;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(0, 152, 162, 0.12), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f4fafb 100%);
  border: 1px solid rgba(1, 107, 114, 0.15);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 28px 28px 24px;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.quote-popup.is-open .quote-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.quote-popup__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 74, 76, 0.08);
  color: #174a4c;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.quote-popup__close:hover {
  background: #016b72;
  color: #fff;
}

.quote-popup__eyebrow {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0098a2;
}

.quote-popup__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  color: #174a4c;
  line-height: 1.25;
}

.quote-popup__sub {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4a5c5e;
}

.quote-popup__field {
  margin-bottom: 12px;
}

.quote-popup__field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #174a4c;
  margin-bottom: 5px;
}

.quote-popup__field .form-control,
.quote-popup__form input,
.quote-popup__form textarea {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 10px 14px;
  border: 1px solid #c5d5d6;
  border-radius: 10px;
  background: #fff;
  color: #212529;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-popup__form textarea.form-control,
.quote-popup__form textarea {
  height: auto;
  min-height: 88px;
  resize: vertical;
}

.quote-popup__form input:focus,
.quote-popup__form textarea:focus {
  outline: none;
  border-color: #016b72;
  box-shadow: 0 0 0 3px rgba(1, 107, 114, 0.18);
}

.quote-popup__submit {
  width: 100%;
  margin-top: 6px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #016b72;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.quote-popup__submit:hover {
  color: #016b72 !important;
  background: #016b72 !important;
  box-shadow: inset 0 0 0 100vmax #ffffff;
}

.quote-popup__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.quote-popup__note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: #5a6b6d;
}

.quote-popup__note a {
  color: #016b72;
  font-weight: 600;
  text-decoration: none;
}

.quote-popup__note a:hover {
  text-decoration: underline;
}

body.quote-popup-open {
  overflow: hidden;
}

@media (max-width: 575px) {
  .quote-popup {
    padding: 12px;
    align-items: flex-end;
  }

  .quote-popup__dialog {
    width: 100%;
    border-radius: 16px 16px 12px 12px;
    padding: 24px 18px 18px;
  }
}
