/* ====================================================
   CPFI Demande de Devis – Styles Front-Office
   ==================================================== */

.cpfi-ddv-wrapper {
  max-width: 860px;
  margin: 40px auto;
  padding: 32px 36px;
  background: #fff;
  border: 1px solid #d8dde6;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  font-family: inherit;
}

/* En-tête */
.cpfi-ddv-header {
  text-align: center;
  margin-bottom: 28px;
}
.cpfi-ddv-icon {
  font-size: 2.4rem;
  display: block;
  margin-bottom: 10px;
}
.cpfi-ddv-header h2 {
  font-size: 1.4rem;
  color: #1a2d50;
  margin: 0 0 8px;
}
.cpfi-ddv-header p {
  color: #5a6a84;
  margin: 0;
  font-size: .97rem;
}

/* Bandeau critères */
.cpfi-ddv-criteres {
  background: #eef3fb;
  border-left: 4px solid #2962c8;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 22px;
  font-size: .92rem;
  color: #2d3a55;
}
.cpfi-ddv-criteres strong {
  margin-right: 6px;
}

/* Alertes */
.cpfi-ddv-alert {
  padding: 12px 16px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: .95rem;
}
.cpfi-ddv-alert--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}
.cpfi-ddv-alert--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Grille */
.cpfi-ddv-row {
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.cpfi-ddv-col {
  flex: 1 1 calc(50% - 9px);
  min-width: 200px;
  display: flex;
  flex-direction: column;
}
.cpfi-ddv-col--full {
  flex: 1 1 100%;
}

/* Labels et champs */
.cpfi-ddv-form label {
  font-size: .85rem;
  font-weight: 600;
  color: #3a4560;
  margin-bottom: 4px;
}
.cpfi-req {
  color: #c0392b;
  margin-left: 2px;
}
.cpfi-ddv-form input[type="text"],
.cpfi-ddv-form input[type="email"],
.cpfi-ddv-form input[type="tel"],
.cpfi-ddv-form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #c4cdd8;
  border-radius: 5px;
  font-size: .93rem;
  color: #1a2d50;
  background: #f9fafb;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}
.cpfi-ddv-form input:focus,
.cpfi-ddv-form textarea:focus {
  outline: none;
  border-color: #2962c8;
  box-shadow: 0 0 0 3px rgba(41,98,200,.12);
  background: #fff;
}
.cpfi-ddv-form textarea {
  resize: vertical;
}

/* Bouton */
.cpfi-ddv-actions {
  margin-top: 22px;
  text-align: center;
}
.cpfi-ddv-btn {
  padding: 12px 36px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  border: none;
  background: #2962c8;
  color: #fff;
  cursor: pointer;
  transition: background .2s;
}
.cpfi-ddv-btn:hover:not(:disabled) {
  background: #1a47a0;
}
.cpfi-ddv-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 580px) {
  .cpfi-ddv-wrapper {
    padding: 20px 14px;
  }
  .cpfi-ddv-col {
    flex: 1 1 100%;
  }
}
