/* ── Overlay ────────────────────────────────────────────────────────── */
.cf7ed-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s ease;
  padding: 1rem;
}

.cf7ed-overlay.cf7ed-visible {
  background: rgba(0, 0, 0, 0.55);
}

/* ── Dialog ─────────────────────────────────────────────────────────── */
.cf7ed-dialog {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cf7ed-visible .cf7ed-dialog {
  transform: translateY(0);
  opacity: 1;
}

.cf7ed-dialog h3 {
  margin: 0 0 1.25rem;
  font-size: 1.3rem;
  color: #333;
  border-bottom: 2px solid #e2e2e2;
  padding-bottom: 0.75rem;
}

/* ── Dialog item (one per duplicate) ────────────────────────────────── */
.cf7ed-dialog-item {
  background: #f8f9fa;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.cf7ed-dialog-item p {
  margin: 0 0 0.5rem;
  line-height: 1.5;
  color: #444;
}

.cf7ed-question {
  font-weight: 600;
  color: #222 !important;
}

/* ── Modify section ─────────────────────────────────────────────────── */
.cf7ed-modify-section {
  margin: 0.75rem 0;
}

.cf7ed-modify-section label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #555;
}

.cf7ed-nombre-input {
  width: 70px;
  padding: 0.35rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  text-align: center;
}

.cf7ed-nombre-input:focus {
  outline: none;
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.cf7ed-btn-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.cf7ed-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.cf7ed-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cf7ed-btn-modify {
  background: #0073aa;
  color: #fff;
}

.cf7ed-btn-modify:hover:not(:disabled) {
  background: #005a87;
}

.cf7ed-btn-uncheck {
  background: #e2e2e2;
  color: #333;
}

.cf7ed-btn-uncheck:hover:not(:disabled) {
  background: #ccc;
}

.cf7ed-btn-submit {
  background: #2ea043;
  color: #fff;
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.cf7ed-btn-submit:hover {
  background: #268636;
}

.cf7ed-btn-close {
  background: #666;
  color: #fff;
  width: 100%;
  padding: 0.7rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.cf7ed-btn-close:hover {
  background: #555;
}

/* ── Success message ────────────────────────────────────────────────── */
.cf7ed-success {
  color: #2ea043;
  font-weight: 600;
  margin: 0 !important;
}

/* ── Dialog footer ──────────────────────────────────────────────────── */
.cf7ed-dialog-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid #e2e2e2;
  text-align: center;
}

.cf7ed-dialog-footer p {
  margin: 0 0 0.75rem;
  color: #555;
}

/* ── Nombre de personnes field in the form ──────────────────────────── */
.nombre-personnes-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0 0.25rem 1.75rem;
}

.nombre-personnes-field label {
  font-size: 1rem;
  color: #fff;
  white-space: nowrap;
}

.nombre-personnes-field input[type="number"] {
  width: 55px;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cf7ed-dialog {
    padding: 1.25rem;
  }

  .cf7ed-btn-group {
    flex-direction: column;
  }

  .cf7ed-modify-section label {
    flex-wrap: wrap;
  }
}
