/* Cadre image */
.img-frame {
  width: 100%;
  max-width: 380px;
  height: 260px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px dashed #555;
}

.poids-chat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Section formulaire + résultat en 2 colonnes */
.features.form-section .container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 25px;
  flex-wrap: wrap;
}

/* Formulaire à gauche */
.form-card {
  flex: 1 1 320px;
  max-width: 360px;
  padding: 24px;
}

/* Inputs et selects */
.form-card input,
.form-card select {
  width: 100%;
  padding: 8px 10px;
  margin-top: 4px;
  margin-bottom: 10px;
  background: var(--bg-header);
  border: 1px solid var(--border-main);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 14px;
}

.form-card label {
  font-size: 13px;
  color: #d4a017;
  margin-top: 8px;
}

/* Ligne bouton */
.btn-row {
  margin-top: 10px;
  text-align: left;
}

/* Résultat à droite */
.result-right {
  flex: 1 1 320px;
  max-width: 480px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  min-height: 260px;
  color: var(--text-main) !important;
  position: relative;
  overflow: hidden;
}

.result-right h3 {
  color: #d4a017;
  position: relative;
  z-index: 1;
}

.result-right p,
.result-right ul {
  position: relative;
  z-index: 1;
}


/* Avertissement vétérinaire */
.vet-warning {
  margin-top: 15px;
  padding: 10px;
  background: #fff3cd;
  border-left: 4px solid #ffca28;
  border-radius: 4px;
  font-size: 0.95rem;
  color: #000 !important;
}

/* Age : années + mois */
.age-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.age-row > div {
  flex: 1;
}

.sub-label {
  font-size: 0.75rem;
  margin-bottom: 2px;
  display: block;
  color: var(--text-muted-2);
}

/* Autocomplétion race */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.suggestions-box {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 0 0 6px 6px;
  max-height: 180px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.suggestions-box div {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.suggestions-box div:hover {
  background: var(--dropdown-hover-bg);
}












/* ================================
   ERREURS
   ================================ */

.input-error {
  border: 1px solid #c62828 !important;
  background: #2a0000 !important;
}

.error {
  margin-top: 14px;
  padding: 10px;
  background: #2a0000;
  border-left: 3px solid #c62828;
  color: #ffb3b3;
  border-radius: 6px;
  font-size: 14px;
}

