:root {
  --slate:        #1a6fa0;
  --slate-mid:    #155d87;
  --slate-light: #237cb1;
  --copper: #2592d0;
  --copper-light: #1e7db5;
  --copper-glow:  rgba(26, 111, 160, 0.25);
  --off-white:    #eef4f8;
  --warm-grey:    #c8dce8;
  --text-muted:   #7aaac4;
  --error:        #c0392b;
  --success:      #27ae60;
  --radius:       4px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Wrapper global ──────────────────────────────────── */
.jd-simple-contact-form {
  font-weight: 400;
  color: var(--off-white);
  background: var(--slate);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(26, 111, 160, 0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(16, 75, 110, 0.6) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='4' height='4' fill='%231a6fa0'/%3E%3Crect width='1' height='1' x='0' y='0' fill='%23155d87' opacity='.4'/%3E%3C/svg%3E");
  border-radius: 8px;
  padding: 42px 44px 48px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 1px 0 rgba(255,255,255,0.04) inset;
  max-width: 560px;
  margin: 0 auto;
}

/* Barre décorative en haut */
.jd-simple-contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--copper) 30%, var(--copper-light) 60%, transparent 100%);
}

/* Watermark en arrière-plan */
/*.jd-simple-contact-form::after {
  content: '⚙';
  position: absolute;
  right: -10px;
  bottom: -30px;
  font-size: 180px;
  color: rgba(255,255,255,0.015);
  pointer-events: none;
  line-height: 1;
}*/

/* ─── En-tête ─────────────────────────────────────────── */
.jd-simple-contact-form-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: relative;
}

.jd-simple-contact-form-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--copper);
}

.jd-simple-contact-description-title.card-title {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--off-white);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.jd-simple-contact-description.card-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted) !important;
  margin: 0 !important;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* ─── Grille des champs ───────────────────────────────── */
.jdscf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
}

.jdscf-col-md-12 { flex: 0 0 100%; max-width: 100%; }
.jdscf-col-md-6  { flex: 0 0 calc(50% - 10px); max-width: calc(50% - 10px); }
.jdscf-col-md-4  { flex: 0 0 calc(33.333% - 14px); max-width: calc(33.333% - 14px); }

@media (max-width: 520px) {
  .jdscf-col-md-6,
  .jdscf-col-md-4 { flex: 0 0 100%; max-width: 100%; }
  .jd-simple-contact-form { padding: 28px 22px 36px; }
}

/* ─── Groupe de champ ─────────────────────────────────── */
.form-group {
  margin: 0;
  position: relative;
}

/* ─── Labels ──────────────────────────────────────────── */
.jdscf-label,
label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--off-white);
  margin-bottom: 7px;
  transition: color var(--transition);
}

.jdscf-label.required::after,
label.required::after {
  content: ' *';
  color: var(--copper-light);
  font-size: 0.9em;
}

/* ─── Inputs & Textarea ───────────────────────────────── */
.jd-simple-contact-form .form-control {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  color: var(--off-white);
  font-size: 0.9375rem;
  font-weight: 400;
  padding: 11px 14px;
  transition: all var(--transition);
  outline: none;
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-appearance: none;
}

.jd-simple-contact-form .form-control::placeholder {
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0.7;
}

.jd-simple-contact-form .form-control:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.jd-simple-contact-form .form-control:focus {
  background: rgba(26,111,160,0.12);
  border-color: rgba(26,111,160,0.4);
  border-bottom-color: var(--copper-light);
  box-shadow: 0 4px 16px var(--copper-glow);
  color: #fff;
}

/* Textarea */
.jd-simple-contact-form textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* ─── Select / List ───────────────────────────────────── */
.jd-simple-contact-form select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%231e7db5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ─── Checkbox & Radio ────────────────────────────────── */
.jd-simple-contact-form .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

/* Deuxième checkbox hors form-group (Recevoir une copie) */
.jd-simple-contact-form .jdscf-row > .form-group.form-check,
.jd-simple-contact-form .jdscf-row > .form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

.jd-simple-contact-form .form-check-input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}
/* ─── Checkbox "Recevoir une copie" ──────────────────── */
.jd-simple-contact-form .form-group.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.jd-simple-contact-form .form-group.form-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  border-radius: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}

.jd-simple-contact-form .form-group.form-check input[type="checkbox"]:checked {
  background: var(--copper);
  border-color: var(--copper);
}

.jd-simple-contact-form .form-group.form-check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 2px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.jd-simple-contact-form input[type="radio"].form-check-input {
  border-radius: 50%;
}

.jd-simple-contact-form .form-check-input:checked {
  background: var(--copper);
  border-color: var(--copper);
}

.jd-simple-contact-form .form-check-input:checked::after {
  content: '';
  position: absolute;
  top: 10px; left: 5px;
  width: 5px; height: 9px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

.jd-simple-contact-form input[type="radio"].form-check-input:checked::after {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px;
  border: none;
  border-radius: 50%;
  background: #fff;
}

.jd-simple-contact-form .form-check-label {
  font-size: 0.875rem;
  color: var(--warm-grey);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

/* ─── File input ──────────────────────────────────────── */
.jd-simple-contact-form input[type="file"].form-control {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.jd-simple-contact-form input[type="file"]::file-selector-button {
  background: var(--slate-light);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--off-white);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.8rem;
  cursor: pointer;
  margin-right: 10px;
  transition: background var(--transition);
}

.jd-simple-contact-form input[type="file"]::file-selector-button:hover {
  background: var(--copper);
}

/* ─── Bouton de soumission ────────────────────────────── */
.jd-simple-contact-form .btn {
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.jd-simple-contact-form .btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.jd-simple-contact-form .btn:hover::before { opacity: 1; }

.jd-simple-contact-form .btn-primary {
  background: linear-gradient(135deg, var(--copper) 0%, var(--slate-light) 100%);
  color: #fff;
  box-shadow:
    0 4px 18px var(--copper-glow),
    0 1px 0 rgba(255,255,255,0.12) inset;
}

.jd-simple-contact-form .btn-primary:hover {
  background: linear-gradient(135deg, var(--copper-light) 0%, var(--copper) 100%);
  box-shadow:
    0 8px 28px var(--copper-glow),
    0 1px 0 rgba(255,255,255,0.15) inset;
  transform: translateY(-1px);
}

.jd-simple-contact-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px var(--copper-glow);
}

.jd-simple-contact-form .btn-primary::after {
  content: '→';
  font-size: 1rem;
  transition: transform var(--transition);
}

.jd-simple-contact-form .btn-primary:hover::after {
  transform: translateX(4px);
}

.jd-simple-contact-form .btn-secondary {
  background: transparent;
  color: var(--copper-light);
  border: 1px solid rgba(26,111,160,0.4);
}

.jd-simple-contact-form .btn-secondary:hover {
  background: var(--copper-glow);
  border-color: var(--copper);
}

/* ─── Messages d'alerte ───────────────────────────────── */
.jd-simple-contact-form .alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 20px;
  border: 1px solid;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.jd-simple-contact-form .alert-info {
  background: rgba(26,111,160,0.15);
  border-color: rgba(255,255,255,0.08);
  color: var(--text-muted);
  display: none;
}

.jd-simple-contact-form .alert-success {
  background: rgb(39, 174, 96);
  border-color: rgb(39, 174, 96);
  color: #fff;
}

.jd-simple-contact-form .alert-danger {
  background: rgba(192,57,43,0.1);
  border-color: rgba(192,57,43,0.25);
  color: #eb8a82;
}

/* ─── Validation Parsley ──────────────────────────────── */
.jd-simple-contact-form .form-control.border-danger {
  border-bottom-color: var(--error) !important;
  background: rgba(192,57,43,0.05);
}

.jd-simple-contact-form .form-control.border-success {
  border-bottom-color: var(--success) !important;
}

.jd-simple-contact-form ul.text-danger {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.jd-simple-contact-form ul.text-danger li {
  font-size: 0.78rem;
  color: #eb8a82;
  display: flex;
  align-items: center;
  gap: 5px;
}

.jd-simple-contact-form ul.text-danger li::before {
  content: '!';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  background: var(--error);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ─── Loader ──────────────────────────────────────────── */
.simple-contact-form-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 111, 160, 0.3);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.simple-contact-form-loader.d-none { display: none !important; }

.simple-contact-form-loader .loading {
  width: 28px;
  height: 28px;
  border: 2px solid var(--copper-glow);
  border-top-color: var(--copper);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.simple-contact-form-loader .loading::before,
.simple-contact-form-loader .loading::after {
  display: none !important;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── reCAPTCHA ───────────────────────────────────────── */
.jd-simple-contact-form .g-recaptcha {
  filter: invert(0.85) hue-rotate(180deg);
  transform-origin: left top;
}

/* ─── Honeypot (toujours caché) ───────────────────────── */
.jd-simple-contact-form div[aria-hidden="true"] {
  position: absolute !important;
  left: -9999px !important;
  visibility: hidden !important;
}

/* ─── Message de confirmation post-envoi ─────────────── */
.jd-simple-contact-form:not(:has(form)) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--copper-light);
  padding: 48px 40px;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 420px) {
  .jd-simple-contact-description-title.card-title { font-size: 1.35rem; }
  .jd-simple-contact-form .btn { width: 100%; justify-content: center; }
}