.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fb-modal[hidden] {
  display: none;
}
.fb-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.fb-modal__panel {
  position: relative;
  background: #fff;
  border-radius: 10px;
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 22px 22px 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fb-modal__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 600;
  color: #111;
}
.fb-field {
  display: block;
  margin-bottom: 12px;
}
.fb-field .fb-label {
  display: block;
  font-size: 13px;
  color: #444;
  margin-bottom: 4px;
}
.fb-field select,
.fb-field textarea,
.fb-field input[type="text"],
.fb-field input[type="file"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d4d9;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: #111;
}
.fb-field textarea {
  resize: vertical;
  min-height: 90px;
}
.fb-modal__msg {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.fb-modal__msg.is-error {
  background: #fdecea;
  color: #b3261e;
}
.fb-modal__msg.is-success {
  background: #e6f4ea;
  color: #1e6f3a;
}
.fb-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.fb-btn {
  border: 0;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.fb-btn--ghost {
  background: transparent;
  color: #555;
}
.fb-btn--ghost:hover {
  background: #f1f3f5;
}
.fb-btn--primary {
  background: #2563eb;
  color: #fff;
}
.fb-btn--primary:hover {
  background: #1d4ed8;
}
.fb-btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}
.fb-trigger {
  display: inline-block;
  font-size: 13px;
  color: #4b5563;
  text-decoration: underline;
  margin-top: 12px;
  cursor: pointer;
}
.fb-trigger:hover {
  color: #111827;
}

/* Belirgin buton tetikleyici */
.fb-trigger-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.fb-trigger--btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: #b45309;
  border: 1.5px solid #f59e0b;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.1s;
}
.fb-trigger--btn:hover {
  background: #fef3c7;
  color: #92400e;
  text-decoration: none;
}
.fb-trigger--btn:active {
  transform: translateY(1px);
}
.fb-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f59e0b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* hidden attribute'u sitedeki global CSS tarafından ezilebiliyor; modal içinde zorla */
.fb-modal [hidden],
.fb-modal__success[hidden],
#fb-form[hidden] {
  display: none !important;
}

/* Success ekranı */
.fb-modal__success {
  text-align: center;
  padding: 24px 8px 8px;
}
.fb-modal__success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  line-height: 1;
}
.fb-modal__success-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #111827;
}
.fb-modal__success-text {
  margin: 0 0 24px;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.5;
}
.fb-modal__success-actions {
  display: flex;
  justify-content: center;
}

[dir="rtl"] .fb-modal__actions {
  justify-content: flex-start;
}
