/* Contact / devis modal, chargé globalement (pas seulement sur les landings) */
.dedie-quote-modal {
  --dedie-quote-brand: #163a72;
  --dedie-quote-brand-hover: #1e4a8f;
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.dedie-quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.dedie-quote-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(92vh, 720px);
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.dedie-quote-dialog form {
  display: block;
  width: 100%;
  margin: 0;
}

.dedie-quote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #e2e8f0;
}

.dedie-quote-header-text {
  min-width: 0;
  flex: 1;
}

.dedie-quote-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dedie-quote-brand);
  margin-bottom: 0.35rem;
}

.dedie-quote-kicker i {
  font-size: 0.95rem;
  line-height: 1;
}

.dedie-quote-close i,
.dedie-quote-btn i {
  font-size: 1rem;
  line-height: 1;
  width: auto;
  height: auto;
  background: none;
  border-radius: 0;
  font-style: normal;
}

.dedie-quote-btn .ti-spin,
.dedie-quote-btn .fa-spin {
  animation: dedie-quote-spin 0.85s linear infinite;
}

@keyframes dedie-quote-spin {
  to {
    transform: rotate(360deg);
  }
}

.dedie-quote-dialog h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.dedie-quote-close {
  position: static;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dedie-quote-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.dedie-quote-offer {
  margin-bottom: 1.1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e8eef6 100%);
  border: 1px solid #dce6f2;
}

.dedie-quote-offer.is-collapsed {
  display: none;
}

.dedie-quote-offer-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.dedie-quote-offer-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.dedie-quote-offer-specs {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  word-break: break-word;
}

.dedie-quote-field {
  display: block;
  clear: both;
  width: 100%;
  margin-bottom: 0.85rem;
}

.dedie-quote-field label {
  display: block;
  float: none;
  width: auto;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 0.35rem;
}

.dedie-quote-field label span {
  color: #ef4444;
}

.dedie-quote-field input,
.dedie-quote-field textarea {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}

.dedie-quote-field input:focus,
.dedie-quote-field textarea:focus {
  outline: none;
  border-color: #163a72;
  box-shadow: 0 0 0 3px rgba(22, 58, 114, 0.15);
}

.dedie-quote-field textarea {
  resize: vertical;
  min-height: 100px;
}

.dedie-quote-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dedie-quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.dedie-quote-btn {
  flex: 1 1 auto;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  line-height: 1.2;
}

.dedie-quote-btn--ghost {
  background: #fff;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.dedie-quote-btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.dedie-quote-btn--primary {
  flex: 1.4 1 160px;
  background: var(--dedie-quote-brand);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(22, 58, 114, 0.28);
}

.dedie-quote-btn--primary:hover {
  background: var(--dedie-quote-brand-hover);
}

.dedie-quote-btn--primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.dedie-quote-feedback {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.dedie-quote-feedback.is-success {
  color: #16a34a;
}

.dedie-quote-feedback.is-error {
  color: #dc2626;
}

[data-style="dark"] .dedie-quote-dialog {
  background: #1e293b;
  border-color: #334155;
}

[data-style="dark"] .dedie-quote-header {
  border-bottom-color: #334155;
}

[data-style="dark"] .dedie-quote-dialog h3 {
  color: #f8fafc;
}

[data-style="dark"] .dedie-quote-close {
  background: #334155;
  color: #cbd5e1;
}

[data-style="dark"] .dedie-quote-offer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-color: #334155;
}

[data-style="dark"] .dedie-quote-offer-name {
  color: #f8fafc;
}

[data-style="dark"] .dedie-quote-field label {
  color: #94a3b8;
}

[data-style="dark"] .dedie-quote-field input,
[data-style="dark"] .dedie-quote-field textarea {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}
