/* easydentist Audit - Public form styles + GMB autocomplete */
.edentist-form-wrapper { --primary: #0a4f6b; --primary-dark: #073a4e; --accent: #34c4b3; --text: #1a2733; --text-light: #54657a; --border: #e2e8ee; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, sans-serif; max-width: 520px; margin: 30px auto; }
.edentist-form { background: white; border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 20px 60px -20px rgba(10, 79, 107, 0.18); padding: 32px; }
.edentist-form-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.edentist-form-subtitle { font-size: 14px; color: var(--text-light); margin-bottom: 24px; }
.edentist-field { margin-bottom: 16px; position: relative; }
.edentist-field label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.edentist-optional { font-weight: 500; color: var(--text-light); font-size: 12px; }
.edentist-field input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 15px; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; }
.edentist-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(10, 79, 107, 0.1); }
.edentist-field-help { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.edentist-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.edentist-consent { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0; font-size: 13px; color: var(--text-light); }
.edentist-consent input { margin-top: 3px; flex-shrink: 0; }
.edentist-submit { width: 100%; padding: 16px; background: var(--primary); color: white; border: none; border-radius: 10px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.1s; font-family: inherit; }
.edentist-submit:hover { background: var(--primary-dark); }
.edentist-submit:active { transform: scale(0.98); }
.edentist-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.edentist-trust { text-align: center; font-size: 12px; color: var(--text-light); margin-top: 14px; }
.edentist-feedback { margin-top: 16px; padding: 14px; border-radius: 8px; font-size: 14px; }
.edentist-feedback.success { background: #e8f5e9; color: #1e7e34; border: 1px solid #2ecc71; }
.edentist-feedback.error { background: #ffebee; color: #c0392b; border: 1px solid #e74c3c; }
@media (max-width: 600px) { .edentist-row { grid-template-columns: 1fr; } }
.edentist-gmb-field { position: relative; }
.edentist-suggestions { position: absolute; top: calc(100% - 18px); left: 0; right: 0; background: white; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 24px rgba(10, 79, 107, 0.18); z-index: 100; max-height: 320px; overflow-y: auto; margin-top: 4px; }
.edentist-suggestion { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f4f6; display: flex; flex-direction: column; gap: 2px; }
.edentist-suggestion:last-child { border-bottom: none; }
.edentist-suggestion:hover { background: #f5f9fb; }
.edentist-suggestion strong { font-size: 14px; color: var(--text); font-weight: 700; }
.edentist-suggestion span { font-size: 12px; color: var(--text-light); }
.edentist-suggestion-loading, .edentist-suggestion-empty { padding: 12px 14px; font-size: 13px; color: var(--text-light); font-style: italic; }


/* check_v2 : amélioration UX du formulaire */
.edentist-field input,
.edentist-field textarea {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
}
.edentist-field input::placeholder { color: #aab4bc; opacity: 1; -webkit-text-fill-color: #aab4bc; }

/* Checkmark vert sur les champs valides et remplis (hors GMB query) */
.edentist-field input[type=text]:not([name=gmb_query]):valid:not(:placeholder-shown):not(:focus),
.edentist-field input[type=email]:valid:not(:placeholder-shown):not(:focus),
.edentist-field input[type=tel]:valid:not(:placeholder-shown):not(:focus),
.edentist-field input[type=url]:valid:not(:placeholder-shown):not(:focus) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232ecc71'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  padding-right: 40px;
  border-color: #b8e0c4;
  background-color: #fafffb;
}

/* Cas particulier GMB : check seulement si une suggestion a été sélectionnée (place_id rempli) */
.edentist-gmb-field.edentist-gmb-confirmed input[name=gmb_query] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232ecc71'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
  padding-right: 40px;
  border-color: #b8e0c4;
  background-color: #fafffb;
}

/* Léger feedback visuel sur invalidité visible (après focus blur) */
.edentist-field input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #f0c2c2;
}

/* Animation douce */
.edentist-field input { transition: background-color 0.2s, border-color 0.2s, padding-right 0.2s; }
