/* Public "suggest a dish" modal + floating trigger.
   Self-contained, matches the Cheffy waitlist modal aesthetic.
   Include on any page with:
     <link rel="stylesheet" href="/scripts/suggest-dish.css">
     <script defer src="/scripts/suggest-dish.js"></script>
   Then add a trigger anywhere:  <button data-suggest-dish>Suggest a dish</button>
*/

.suggest-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 980px; border: none; cursor: pointer;
  background: #1d1d1f; color: #fff;
  font-family: ABCDiatypeMedium, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px; letter-spacing: -0.01em;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2); transition: transform .2s, box-shadow .2s;
}
.suggest-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26); }
.suggest-fab svg { width: 16px; height: 16px; }

.suggest-modal {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center; padding: 20px;
}
.suggest-modal.is-open { display: flex; }
.suggest-backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s;
}
.suggest-modal.is-open .suggest-backdrop { opacity: 1; }

.suggest-card {
  position: relative; width: 100%; max-width: 440px;
  background: #fff; border-radius: 22px; padding: 30px 28px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  transform: translateY(14px) scale(.98); opacity: 0; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .28s;
  font-family: ABCDiatype, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1d1d1f; max-height: 92vh; overflow-y: auto;
}
.suggest-modal.is-open .suggest-card { transform: none; opacity: 1; }

.suggest-close {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px;
  border: none; background: rgba(0, 0, 0, 0.05); border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #6e6e73; transition: background .15s;
}
.suggest-close:hover { background: rgba(0, 0, 0, 0.1); color: #1d1d1f; }
.suggest-close svg { width: 15px; height: 15px; }

.suggest-kicker { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #86868b; font-family: ABCDiatypeMedium; }
.suggest-card h2 { margin: 6px 0 4px; font-size: 23px; letter-spacing: -0.02em; font-family: ABCDiatypeMedium; font-weight: 500; }
.suggest-card p.lead { margin: 0 0 20px; color: #6e6e73; font-size: 14px; line-height: 1.5; }

.suggest-field { margin-bottom: 13px; }
.suggest-field label { display: block; font-size: 12px; color: #47474b; margin-bottom: 6px; font-family: ABCDiatypeMedium; }
.suggest-field input, .suggest-field textarea {
  width: 100%; padding: 11px 13px; border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 11px;
  font-family: inherit; font-size: 14px; color: #1d1d1f; background: #fff;
  transition: border-color .15s, box-shadow .15s; box-sizing: border-box;
}
.suggest-field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.suggest-field input:focus, .suggest-field textarea:focus {
  outline: none; border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}
.suggest-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.suggest-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.suggest-submit {
  width: 100%; margin-top: 8px; padding: 13px; border: none; border-radius: 980px;
  background: #0071e3; color: #fff; font-family: ABCDiatypeMedium; font-size: 15px; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.suggest-submit:hover { background: #0077ed; }
.suggest-submit:disabled { opacity: .6; cursor: not-allowed; }
.suggest-error { margin: 2px 0 10px; color: #c9252d; font-size: 12.5px; min-height: 0; }

.suggest-done { text-align: center; padding: 14px 0 6px; }
.suggest-done .tick {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(26, 127, 55, .12); color: #1a7f37;
  display: grid; place-items: center; margin: 0 auto 16px;
}
.suggest-done .tick svg { width: 26px; height: 26px; }
.suggest-done h2 { margin: 0 0 6px; font-size: 21px; font-family: ABCDiatypeMedium; }
.suggest-done p { margin: 0; color: #6e6e73; font-size: 14px; }

@media (max-width: 480px) {
  .suggest-row { grid-template-columns: 1fr; }
  .suggest-fab span { display: none; }
  .suggest-fab { padding: 12px; }
}
