.quote-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 4, 8, 0.58);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
  box-sizing: border-box;
}

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

.quote-modal-container {
  background: linear-gradient(145deg, #ffffff 0%, #fdfbf8 100%);
  border: 1.5px solid rgba(203, 168, 113, 0.42);
  border-radius: 24px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(85, 10, 18, 0.18),
              0 6px 24px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: scale(0.94) translateY(24px);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 36px 34px 32px;
  box-sizing: border-box;
  color: #232127;
}

.quote-modal-backdrop.is-active .quote-modal-container {
  transform: scale(1) translateY(0);
}

.quote-modal-container::-webkit-scrollbar {
  width: 6px;
}

.quote-modal-container::-webkit-scrollbar-track {
  background: rgba(85, 10, 18, 0.04);
  border-radius: 4px;
}

.quote-modal-container::-webkit-scrollbar-thumb {
  background: rgba(203, 168, 113, 0.35);
  border-radius: 4px;
}

.quote-modal-container::-webkit-scrollbar-thumb:hover {
  background: #b89255;
}

.quote-modal-close-btn {
  position: absolute;
  top: 22px;
  background: rgba(107, 14, 24, 0.05);
  border: 1px solid rgba(203, 168, 113, 0.35);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #550a12;
  cursor: pointer;
  transition: all 0.25s ease;
  z-index: 10;
  outline: none;
}

[dir="rtl"] .quote-modal-close-btn {
  left: 22px;
  right: auto;
}

[dir="ltr"] .quote-modal-close-btn {
  right: 22px;
  left: auto;
}

.quote-modal-close-btn:hover {
  background: linear-gradient(135deg, #cba871 0%, #b89255 100%);
  color: #ffffff;
  border-color: #b89255;
  transform: rotate(90deg) scale(1.05);
  box-shadow: 0 4px 14px rgba(184, 146, 85, 0.35);
}

.quote-modal-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(203, 168, 113, 0.22);
}

.quote-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(135, 19, 33, 0.06);
  border: 1px solid rgba(203, 168, 113, 0.35);
  color: #871321;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.quote-modal-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background: #b89255;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(184, 146, 85, 0.6);
  animation: pulseGoldModal 2.2s infinite ease-in-out;
}

@keyframes pulseGoldModal {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}

.quote-modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: #1a0407;
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.quote-modal-subtitle {
  font-size: 0.94rem;
  color: #544e59;
  line-height: 1.6;
  margin: 0;
}

.quote-target-strip {
  background: linear-gradient(135deg, rgba(203, 168, 113, 0.12) 0%, rgba(135, 19, 33, 0.04) 100%);
  border: 1px solid rgba(203, 168, 113, 0.35);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  box-sizing: border-box;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.strip-label {
  color: #6b6672;
  font-size: 12.5px;
  font-weight: 500;
}

.strip-val {
  color: #1a0407;
  font-weight: 700;
}

.strip-val-highlight {
  color: #871321;
  font-weight: 800;
}

.strip-separator {
  color: rgba(203, 168, 113, 0.6);
  user-select: none;
}

.quote-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.quote-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quote-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #1a0407;
  display: flex;
  align-items: center;
  gap: 4px;
}

.quote-label .req-star {
  color: #c92a2a;
}

.quote-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.quote-input-icon {
  position: absolute;
  color: #7b5924;
  opacity: 0.85;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

[dir="rtl"] .quote-input-icon {
  right: 14px;
  left: auto;
}

[dir="ltr"] .quote-input-icon {
  left: 14px;
  right: auto;
}

.quote-input,
.quote-select,
.quote-textarea {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid rgba(203, 168, 113, 0.35);
  border-radius: 12px;
  color: #1a0407;
  font-family: inherit;
  font-size: 0.94rem;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

[dir="rtl"] .quote-input,
[dir="rtl"] .quote-select {
  padding: 13px 44px 13px 14px;
}

[dir="ltr"] .quote-input,
[dir="ltr"] .quote-select {
  padding: 13px 14px 13px 44px;
}

.quote-select {
  cursor: pointer;
}

.quote-select option {
  background: #ffffff;
  color: #1a0407;
  padding: 10px;
}

.quote-textarea {
  padding: 14px 16px;
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.quote-input:focus,
.quote-select:focus,
.quote-textarea:focus {
  border-color: #871321;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(135, 19, 33, 0.08);
}

.quote-input::placeholder,
.quote-textarea::placeholder {
  color: #8c8594;
  opacity: 1;
}

.quote-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7d121e 0%, #550a12 100%);
  color: #ffffff;
  border: 1.5px solid rgba(203, 168, 113, 0.45);
  padding: 15px 30px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 8px 22px rgba(85, 10, 18, 0.25);
  margin-top: 6px;
  font-family: inherit;
  outline: none;
}

.quote-submit-btn:hover {
  transform: translateY(-2px);
  border-color: #cba871;
  box-shadow: 0 12px 28px rgba(85, 10, 18, 0.35);
  background: linear-gradient(135deg, #871321 0%, #680d17 100%);
}

.quote-submit-btn:active {
  transform: translateY(0);
}

.quote-success-box {
  text-align: center;
  padding: 36px 20px 24px;
}

.success-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(46, 133, 64, 0.12);
  border: 2px solid #2b8a3e;
  color: #2b8a3e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 28px rgba(46, 133, 64, 0.2);
}

.success-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: #1a0407;
  margin: 0 0 10px 0;
}

.success-desc {
  font-size: 0.98rem;
  color: #544e59;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 28px;
}

.success-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #cba871 0%, #b89255 100%);
  color: #1a0407;
  border: 1px solid rgba(203, 168, 113, 0.5);
  padding: 13px 36px;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.22s ease;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(184, 146, 85, 0.25);
}

.success-close-btn:hover {
  background: linear-gradient(135deg, #dfc694 0%, #cba871 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(184, 146, 85, 0.35);
}

@media (max-width: 640px) {
  .quote-form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quote-modal-container {
    padding: 26px 18px 22px;
    border-radius: 20px;
    max-height: 92vh;
  }

  .quote-modal-title {
    font-size: 1.45rem;
  }
}
