/* =============================
   STRUCTURE GÉNÉRALE
============================= */
.form-centered {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px 18px;
  background: #fcfcfc;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.07);
}

/* =============================
   HEADER (LOGO & ZONE DE MESSAGE)
============================= */
.postcard-header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid #e0e0e0;
}

.postcard-stamp {
  border: 2px dashed #ccc;
  padding: 5px;
  display: inline-block;
}

.postcard-stamp img {
  height: 50px;
  width: auto;
}

/* =============================
   ZONE DE MESSAGES (SUCCÈS/ERREUR)
============================= */
.contact-message-area {
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-grow: 1;
  padding-right: 16px;
}

.contact-error-top {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  text-align: left;
  box-sizing: border-box;
}

.contact-msg-ico {
  display: inline-block;
  width: 1.2em;
  min-width: 1.2em;
  margin-right: 0.5em;
  font-size: 1.1em;
  text-align: center;
  vertical-align: middle;
}

/* =============================
   CHAMPS DE FORMULAIRE ET LABELS
============================= */
.form-centered .mb-3 {
  margin-bottom: 1.2rem !important;
}

.form-centered label.form-label {
  font-size: 0.92rem;
  margin-bottom: 0.14rem;
}

.form-centered label {
  color: #979797 !important;
}

.form-centered .form-control {
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
  font-size: 0.95rem;
}

/* =============================
   SÉPARATEUR & BOUTON D'ENVOI
============================= */
.contact-separator-horizontal {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
  margin: 1rem 0 18px 0;
}

.contact-btn-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-width: 90px;
  max-width: 140px;
  padding: 0.375rem 1.1rem;
  font-size: 1rem;
}

/* =============================
   PANNEAU DE CHARGEMENT (LOADING)
============================= */
.loading-panel {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.7);
  z-index: 10;
}

.loading-panel .spinner {
  width: 48px;
  height: 48px;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (min-width: 768px) {
  .form-centered .row {
    display: flex;
    align-items: stretch;
  }

  .form-centered .col-md-5 {
    position: relative;
    display: flex;
    flex-direction: column;
  }

  .form-centered .col-md-5::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    background: #e0e0e0;
    z-index: 1;
  }

  .contact-btn-send {
    align-self: flex-end;
    width: auto;
  }
}

@media (max-width: 767px) {
  .contact-btn-send {
    width: 100%;
    align-self: center;
    margin-top: 8px;
  }

  textarea#message.form-control {
    min-height: 180px;
  }
}


