#ed-confirm-overlay,
#ed-confirm-modal,
#ed-confirm-modal * {
  font-family: "Plus Jakarta Sans", sans-serif;
}

#ed-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#ed-confirm-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 14px;
  padding: 48px 40px 36px;
  max-width: 1000px;
  width: calc(100% - 40px);
  max-height: min(92vh, calc(100dvh - 32px));
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 9999;
  box-sizing: border-box;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

#ed-confirm-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

#ed-confirm-modal.is-open {
  opacity: 1;
  pointer-events: all;
}

.ed-modal-title {
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 10px;
  color: #1a1a1a;
}

.ed-modal-intro {
  font-size: 16px;
  color: #000000;
  margin: 0 0 42px;
  line-height: 1.6;
}

.ed-modal-features {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 24px 16px;
  margin-bottom: 42px;
}

.ed-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 240px;
  flex: 1 1 200px;
  text-align: center;
}

.ed-feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #edf3f5;
  border-radius: 50px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.ed-feature-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.ed-feature-desc {
  font-size: 14px;
  color: #000;
  line-height: 1.5;
}

.ed-modal-info {
  background: #f4f8f9;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 32px;
  text-align: left;
}

.ed-modal-info-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-align: left;
}

.ed-modal-info-title-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--e-global-color-primary, #0d9488);
  line-height: 0;
}

.ed-modal-info-title-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ed-modal-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ed-modal-info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
  line-height: 1.5;
  text-align: left;
}

.ed-modal-info-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.ed-check {
  background: var(--e-global-color-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  width: 20px;
  height: 20px;
  color: #fff;
  line-height: 0;
  flex-shrink: 0;
  margin-top: 0.15em;
}

.ed-modal-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 16px;
  width: 100%;
}

#ed-confirm-back {
  justify-self: start;
  background: none;
  border: none;
  font-size: 14px;
  color: #888;
  cursor: pointer;
  padding: 0;
}

#ed-confirm-back:hover {
  color: #3d3d3a;
}

#ed-confirm-submit {
  justify-self: center;
  grid-column: 2;
  background: var(--e-global-color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

#ed-confirm-submit:hover {
  background: #27865f;
}

.ed-modal-footer-tel {
  justify-self: end;
  grid-column: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--e-global-color-primary, #0d9488);
  text-decoration: none;
  line-height: 1.3;
  text-align: left;
}

.ed-modal-footer-tel:hover {
  text-decoration: underline;
}

.ed-modal-footer-tel-icon {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.ed-modal-footer-tel-text {
  max-width: 14rem;
}

label[for='form-field-location_three'] {
  margin-top: 30px;
}

/* Formulaire Elementor : cases obligatoires (classe ed-checkbox-required sur le groupe) */
.elementor-form .ed-checkbox-required--error {
  outline: 2px solid #c62828;
  outline-offset: 4px;
  border-radius: 8px;
}

/* Erreurs inline injectées après échec AJAX (voir soumission.js) */
.elementor-form .elementor-field-group-ed-error {
  outline: 2px solid #c62828;
  outline-offset: 4px;
  border-radius: 8px;
}

.elementor-form .elementor-form-ed-inline-error {
  margin-top: 8px;
  font-size: 13px;
}

/* Tablette */
@media (max-width: 900px) {
  #ed-confirm-modal {
    max-width: calc(100% - 32px);
    width: calc(100% - 32px);
    padding: 36px 28px 28px;
  }

  .ed-modal-title {
    font-size: 36px;
  }

  .ed-modal-intro {
    margin-bottom: 32px;
  }

  .ed-modal-features {
    justify-content: center;
    margin-bottom: 32px;
  }

  .ed-feature {
    flex: 1 1 45%;
    min-width: min(160px, 100%);
    max-width: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  #ed-confirm-modal {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    max-height: min(94vh, calc(100dvh - 16px));
    padding: 22px 16px 20px;
    border-radius: 12px;
  }

  .ed-modal-title {
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.2;
  }

  .ed-modal-intro {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .ed-modal-features {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-bottom: 24px;
  }

  .ed-feature {
    flex: none;
    max-width: none;
  }

  .ed-modal-info {
    padding: 16px 14px;
  }

  .ed-modal-info-title {
    font-size: 15px;
    gap: 8px;
  }

  .ed-modal-info-title-icon svg {
    width: 18px;
    height: 18px;
  }

  .ed-modal-info-item {
    font-size: 14px;
  }

  .ed-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #ed-confirm-back {
    order: 3;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    justify-self: stretch;
  }

  #ed-confirm-submit {
    order: 1;
    grid-column: auto;
    justify-self: stretch;
    width: 100%;
    padding: 14px 20px;
    box-sizing: border-box;
  }

  .ed-modal-footer-tel {
    order: 2;
    grid-column: auto;
    justify-self: stretch;
    justify-content: center;
    text-align: center;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 1px solid rgba(13, 148, 136, 0.35);
    border-radius: 8px;
    max-width: none;
  }

  .ed-modal-footer-tel-text {
    max-width: none;
  }
}

/* Success page */

.ed-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 24px;
  text-align: center;
}

.ed-success-check {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.ed-success-check svg {
  width: 100%;
  height: 100%;
}

.ed-success-title {
  font-size: 28px;
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 40px;
  line-height: 1.3;
}

.ed-success-title strong {
  font-weight: 700;
}

.ed-success-next {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #1a3a2a;
  border-radius: 12px;
  padding: 20px 24px;
  max-width: 520px;
  width: 100%;
  text-align: left;
}

.ed-success-next-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
}

.ed-success-next-icon svg {
  width: 100%;
  height: 100%;
}

.ed-success-next-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.ed-success-next-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

#soumission_form:has(.elementor-message-success) .elementor-form-fields-wrapper {
  display: none;
}

.elementor-message-success::before {
  content: '';
}

#soumission_form .label-step {
  line-height: 1.2em;
}

@media all and (max-width: 767px) {
  #soumission_form {
    padding: 30px;
  }

  #soumission_form .label-step {
    font-size: 1.5rem;
  }

  #soumission_form .elementor-field-type-checkbox .elementor-field-option {
    width: 100%;
  }

  #soumission_form .elementor-field-type-html {
    padding-bottom: 15px !important;
  }

  .ed-success-title {
    font-size: 20px;
  }

  .ed-success {
    padding: 0;
  }

  .ed-dot {
    width: 30px;
    height: 30px;
  }
}
