/* DR INTERNATIONAL — 2-step Request Quote popup (homepage) */

.dr-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.dr-quote-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dr-quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 30, 51, 0.62);
  backdrop-filter: blur(4px);
}

.dr-quote-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: #fff;
  border: 1px solid rgba(201, 150, 46, 0.28);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(5, 30, 51, 0.22);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.dr-quote-modal.is-open .dr-quote-modal__panel {
  transform: translateY(0) scale(1);
}

.dr-quote-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  color: #051e33;
  background: #f7f7f7;
  transition: background 0.25s, color 0.25s;
}

.dr-quote-modal__close:hover {
  background: #051e33;
  color: #fff;
}

.dr-quote-modal__progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.dr-quote-modal__dot {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: #e7eaee;
  transition: background 0.35s ease;
}

.dr-quote-modal__dot.is-active,
.dr-quote-modal__dot.is-done {
  background: linear-gradient(90deg, #c9962e, #f6d675);
}

.dr-quote-modal__title {
  margin: 0 0 0.35rem;
  font-family: 'Alice', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 400;
  color: #051e33;
  letter-spacing: 0.02em;
}

.dr-quote-modal__sub {
  margin: 0 0 1.5rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  color: #474747;
  line-height: 1.6;
}

.dr-quote-step {
  display: none;
}

.dr-quote-step.is-active {
  display: block;
  animation: drQuoteStepIn 0.35s ease;
}

@keyframes drQuoteStepIn {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.dr-quote-step__label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c9962e;
}

.dr-quote-field {
  position: relative;
  margin-bottom: 0.85rem;
}

.dr-quote-field input,
.dr-quote-field textarea,
.dr-quote-field select {
  width: 100%;
  padding: 0.95rem 1rem 0.4rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  color: #141414;
  background: #fff;
  border: 1.5px solid rgba(5, 30, 51, 0.12);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.dr-quote-field textarea {
  min-height: 88px;
  resize: vertical;
  padding-top: 1.35rem;
}

.dr-quote-field select {
  appearance: none;
  padding-top: 1.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9962E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.dr-quote-field label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.92rem;
  color: #6e6a61;
  pointer-events: none;
  transition: 0.22s ease;
}

.dr-quote-field textarea + label {
  top: 1rem;
  transform: none;
}

.dr-quote-field input:focus,
.dr-quote-field textarea:focus,
.dr-quote-field select:focus {
  border-color: #c9962e;
  box-shadow: 0 0 0 3px rgba(201, 150, 46, 0.14);
}

.dr-quote-field input:focus + label,
.dr-quote-field input:not(:placeholder-shown) + label,
.dr-quote-field textarea:focus + label,
.dr-quote-field textarea:not(:placeholder-shown) + label,
.dr-quote-field select:focus + label,
.dr-quote-field select.has-value + label {
  top: 0.4rem;
  transform: none;
  font-size: 0.68rem;
  font-weight: 600;
  color: #051e33;
}

.dr-quote-field textarea:focus + label,
.dr-quote-field textarea:not(:placeholder-shown) + label {
  top: 0.35rem;
}

.dr-quote-field.is-error input,
.dr-quote-field.is-error textarea,
.dr-quote-field.is-error select {
  border-color: #d91579;
}

.dr-quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.dr-quote-grid .dr-quote-field--full {
  grid-column: 1 / -1;
}

.dr-quote-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
  font-size: 0.88rem;
  color: #474747;
  cursor: pointer;
}

.dr-quote-check input {
  position: absolute;
  opacity: 0;
}

.dr-quote-check__box {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border: 1.5px solid rgba(201, 150, 46, 0.45);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.22s;
}

.dr-quote-check input:checked + .dr-quote-check__box {
  background: linear-gradient(135deg, #c9962e, #f6d675);
  border-color: #c9962e;
}

.dr-quote-check input:checked + .dr-quote-check__box::after {
  content: '✓';
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.dr-quote-check.is-error .dr-quote-check__box {
  border-color: #d91579;
}

.dr-quote-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.dr-quote-btn {
  flex: 1;
  padding: 0.85rem 1.25rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 999px;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.dr-quote-btn--gold {
  color: #051e33;
  background: linear-gradient(135deg, #c9962e, #f6d675);
  box-shadow: 0 8px 24px rgba(201, 150, 46, 0.28);
}

.dr-quote-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(201, 150, 46, 0.35);
}

.dr-quote-btn--ghost {
  color: #051e33;
  background: #f7f7f7;
  border: 1px solid rgba(5, 30, 51, 0.12);
}

.dr-quote-btn--ghost:hover {
  background: #eef1f4;
}

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

/* Custom cursor above modal */
body.dr-quote-open .jz-cursor {
  z-index: 10100;
  opacity: 1;
  visibility: visible;
}

@media (hover: hover) and (pointer: fine) {
  body.dr-quote-open.has-custom-cursor .dr-quote-modal input,
  body.dr-quote-open.has-custom-cursor .dr-quote-modal textarea,
  body.dr-quote-open.has-custom-cursor .dr-quote-modal select,
  body.dr-quote-open.has-custom-cursor .dr-quote-modal button,
  body.dr-quote-open.has-custom-cursor .dr-quote-modal label {
    cursor: none !important;
  }
}

body.dr-quote-open .jz-cursor.is-visible .jz-cursor__ring {
  border-color: #051e33;
  box-shadow: 0 0 0 1px #fff, 0 0 14px rgba(5, 30, 51, 0.18);
}

body.dr-quote-open .jz-cursor.is-visible .jz-cursor__dot {
  background: #c9962e;
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(201, 150, 46, 0.45);
}

body.dr-quote-open .jz-cursor.is-visible.is-on-dark .jz-cursor__ring {
  border-color: #fff;
  box-shadow: 0 0 0 1px rgba(5, 30, 51, 0.35), 0 0 14px rgba(255, 255, 255, 0.22);
}

body.dr-quote-open .jz-cursor.is-visible.is-on-dark .jz-cursor__dot {
  background: #f6d675;
  border-color: #051e33;
  box-shadow: 0 0 0 1px rgba(246, 214, 117, 0.5);
}

body.dr-quote-open .jz-cursor.is-visible.is-hover .jz-cursor__ring {
  border-color: #c9962e;
}

@media (max-width: 560px) {
  .dr-quote-grid {
    grid-template-columns: 1fr;
  }

  .dr-quote-actions {
    flex-direction: column-reverse;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dr-quote-modal__panel,
  .dr-quote-step.is-active {
    animation: none;
    transition: none;
  }
}
