/* FlyBigFly — site-wide UI (quote dialog, toast). Loaded outside Elementor so
   the modal keeps the exact prototype markup and behaviour. Tokens come from
   the Elementor kit stylesheet; fallbacks are declared here as well. */

:root {
  --fbf-blue: #1a5cff;
  --fbf-ink: #101828;
  --fbf-line: #e4e9f2;
}

.dialog {
  position: fixed; inset: 0; z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
}
.dialog.is-open { display: flex; }
.dialog-scrim {
  position: absolute; inset: 0;
  background: rgba(8,23,55,.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  animation: fbfFadeIn 180ms cubic-bezier(.22,.61,.36,1);
}
.dialog-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 32px -8px rgba(10,42,107,.22);
  padding: 32px;
  animation: fbfDialogIn 280ms cubic-bezier(.22,.61,.36,1);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink, var(--fbf-ink));
}
@keyframes fbfFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes fbfDialogIn { from { opacity: 0; transform: translateY(14px) scale(.98) } to { opacity: 1; transform: none } }
.dialog-close {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: #667085;
  background: none; border: 0; cursor: pointer;
  transition: background 180ms, color 180ms;
}
.dialog-close:hover { background: #f5f8ff; color: #101828; }
.dialog-close .od-icon { --od-icon-size: 20px; }
.dialog-panel h2 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.dialog-panel .dialog-sub { color: #667085; font-size: .92rem; margin: 6px 0 24px; }

.dialog .field { display: grid; gap: 6px; }
.dialog .field label { font-size: .9rem; font-weight: 600; color: #344054; }
.dialog .field label .req { color: #d92d20; margin-left: 2px; }
.dialog .field input, .dialog .field select, .dialog .field textarea {
  font: inherit; font-size: .95rem;
  padding: 12px 14px;
  border: 1.5px solid #e4e9f2; border-radius: 8px;
  background: #fff; color: #101828;
  transition: border-color 180ms, box-shadow 180ms;
  width: 100%;
}
.dialog .field textarea { resize: vertical; min-height: 96px; }
.dialog .field input:hover, .dialog .field select:hover, .dialog .field textarea:hover { border-color: #c3cfe8; }
.dialog .field input:focus, .dialog .field select:focus, .dialog .field textarea:focus {
  outline: none; border-color: var(--fbf-blue);
  box-shadow: 0 0 0 3px rgba(26,92,255,.15);
}
.dialog .field .field-error { display: none; font-size: .82rem; color: #d92d20; font-weight: 500; }
.dialog .field.is-invalid input,
.dialog .field.is-invalid select,
.dialog .field.is-invalid textarea { border-color: #d92d20; }
.dialog .field.is-invalid .field-error { display: block; }
.dialog .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.dialog .form-grid { display: grid; gap: 18px; }
.dialog .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; width: 100%;
  transition: transform 180ms, box-shadow 180ms, background 180ms;
}
.dialog .btn .od-icon { --od-icon-size: 16px; }
.dialog .btn-primary { background: var(--fbf-blue); color: #fff; box-shadow: 0 10px 22px -8px rgba(26,92,255,.6); }
.dialog .btn-primary:hover { background: #0f42c8; transform: translateY(-2px); }
.dialog .btn-primary:disabled { opacity: .7; cursor: default; transform: none; }

.dialog .form-success { display: none; padding: 28px 24px; text-align: center; }
.dialog .form-success.is-shown { display: block; }
.dialog .form-success .od-icon { --od-icon-size: 44px; color: #12b76a; margin: 0 auto 12px; }
.dialog .form-success h3 { font-size: 1.2rem; font-weight: 700; margin: 0; }
.dialog .form-success p { color: #667085; font-size: .92rem; margin-top: 8px; }

.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #101828; color: #fff;
  padding: 12px 22px; border-radius: 999px;
  font-size: .9rem; font-weight: 500;
  opacity: 0; visibility: hidden;
  transition: opacity 280ms, transform 280ms, visibility 280ms;
  z-index: 10000;
  box-shadow: 0 12px 32px -8px rgba(10,42,107,.22);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
.toast.is-shown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

@media (max-width: 560px) {
  .dialog .form-row { grid-template-columns: 1fr; }
}
