.gcf-feedback-button,
.gcf-feedback-modal {
  --gcf-navy: #0b3558;
  --gcf-blue: #1565a9;
  --gcf-coral: #ff7868;
  --gcf-green: #1f8a5b;
  --gcf-text: #17202a;
  --gcf-muted: #65717e;
  --gcf-line: #dbe3ea;
  --gcf-surface: #ffffff;
  font-family: Inter, "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gcf-feedback-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 2147483000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(11, 53, 88, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--gcf-navy);
  box-shadow: 0 8px 28px rgba(11, 53, 88, .16);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.gcf-feedback-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 120, 104, .65);
  box-shadow: 0 12px 32px rgba(11, 53, 88, .2);
}

.gcf-feedback-button:focus-visible,
.gcf-feedback-close:focus-visible,
.gcf-feedback-submit:focus-visible,
.gcf-feedback-field:focus-visible,
.gcf-feedback-consent input:focus-visible {
  outline: 3px solid rgba(255, 120, 104, .42);
  outline-offset: 2px;
}

.gcf-feedback-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gcf-coral);
}

.gcf-feedback-modal[hidden] {
  display: none !important;
}

.gcf-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(9, 26, 42, .58);
  opacity: 0;
  transition: opacity .2s ease;
}

.gcf-feedback-modal.is-open {
  opacity: 1;
}

.gcf-feedback-panel {
  position: relative;
  width: min(100%, 600px);
  max-height: min(760px, calc(100dvh - 40px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 24px;
  background: var(--gcf-surface);
  box-shadow: 0 24px 80px rgba(4, 20, 34, .28);
  color: var(--gcf-text);
  transform: translateY(14px) scale(.985);
  transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}

.gcf-feedback-modal.is-open .gcf-feedback-panel {
  transform: translateY(0) scale(1);
}

.gcf-feedback-head {
  padding: 28px 72px 22px 28px;
  border-bottom: 1px solid var(--gcf-line);
}

.gcf-feedback-head h2 {
  margin: 0 0 7px;
  color: var(--gcf-navy);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.gcf-feedback-head p {
  margin: 0;
  color: var(--gcf-muted);
  font-size: 15px;
  line-height: 1.5;
}

.gcf-feedback-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f5f8;
  color: var(--gcf-navy);
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}

.gcf-feedback-close:hover {
  background: #e6edf3;
  transform: rotate(4deg);
}

.gcf-feedback-close svg {
  width: 20px;
  height: 20px;
}

.gcf-feedback-form {
  display: grid;
  gap: 18px;
  padding: 24px 28px 28px;
}

.gcf-feedback-group {
  display: grid;
  gap: 8px;
}

.gcf-feedback-label {
  color: var(--gcf-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.gcf-feedback-optional {
  color: var(--gcf-muted);
  font-weight: 500;
}

.gcf-feedback-field {
  box-sizing: border-box;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cbd7e1;
  border-radius: 12px;
  background-color: #fff;
  color: var(--gcf-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.gcf-feedback-field:hover {
  border-color: #9eb2c3;
}

.gcf-feedback-field:focus {
  border-color: var(--gcf-blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 169, .1);
}

textarea.gcf-feedback-field {
  min-height: 132px;
  resize: vertical;
}

.gcf-feedback-select {
  position: relative;
}

.gcf-feedback-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}

.gcf-feedback-select-button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--gcf-navy);
  transition: transform .18s ease;
}

.gcf-feedback-select-button[aria-expanded="true"] {
  border-color: var(--gcf-blue);
  box-shadow: 0 0 0 4px rgba(21, 101, 169, .1);
}

.gcf-feedback-select-button[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.gcf-feedback-select-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 7px;
  border: 1px solid var(--gcf-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(11, 53, 88, .18);
  list-style: none;
  transform-origin: top center;
  animation: gcfSelectIn .16s ease both;
}

.gcf-feedback-select-menu[hidden] {
  display: none;
}

.gcf-feedback-select-option {
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--gcf-text);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.gcf-feedback-select-option:hover,
.gcf-feedback-select-option:focus-visible {
  outline: none;
  background: #f1f6fa;
}

.gcf-feedback-select-option[aria-selected="true"] {
  background: #e7f1f8;
  color: var(--gcf-navy);
  font-weight: 800;
}

@keyframes gcfSelectIn {
  from { opacity: 0; transform: translateY(-5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.gcf-feedback-error {
  min-height: 0;
  color: #b33a36;
  font-size: 13px;
  line-height: 1.35;
}

.gcf-feedback-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--gcf-muted);
  font-size: 13px;
  line-height: 1.45;
}

.gcf-feedback-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gcf-blue);
}

.gcf-feedback-consent a {
  color: var(--gcf-blue);
  text-underline-offset: 2px;
}

.gcf-feedback-consent .gcf-feedback-error {
  grid-column: 2;
}

.gcf-feedback-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gcf-feedback-submit {
  min-height: 50px;
  padding: 12px 22px;
  border: 0;
  border-radius: 12px;
  background: var(--gcf-coral);
  color: #17202a;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 120, 104, .24);
  transition: transform .16s ease, filter .16s ease;
}

.gcf-feedback-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
}

.gcf-feedback-submit:disabled {
  cursor: wait;
  opacity: .65;
  transform: none;
}

.gcf-feedback-status {
  flex: 1;
  margin: 0;
  color: var(--gcf-muted);
  font-size: 14px;
  line-height: 1.4;
}

.gcf-feedback-status.is-error {
  color: #b33a36;
}

.gcf-feedback-status.is-success {
  color: var(--gcf-green);
  font-weight: 700;
}

.gcf-feedback-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

body.gcf-feedback-open {
  overflow: hidden !important;
}

@media (max-width: 640px) {
  .gcf-feedback-button {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding: 9px 13px;
    font-size: 13px;
  }

  .gcf-feedback-modal {
    align-items: end;
    padding: 0;
  }

  .gcf-feedback-panel {
    width: 100%;
    max-height: min(88dvh, 760px);
    border-radius: 22px 22px 0 0;
  }

  .gcf-feedback-head {
    padding: 22px 62px 17px 18px;
  }

  .gcf-feedback-head h2 {
    font-size: 24px;
  }

  .gcf-feedback-head p {
    font-size: 14px;
  }

  .gcf-feedback-close {
    top: 16px;
    right: 14px;
  }

  .gcf-feedback-form {
    gap: 15px;
    padding: 18px;
  }

  .gcf-feedback-select-option {
    padding: 12px;
  }

  .gcf-feedback-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .gcf-feedback-submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gcf-feedback-button,
  .gcf-feedback-modal,
  .gcf-feedback-panel,
  .gcf-feedback-close,
  .gcf-feedback-submit {
    transition: none;
  }
}

@media print {
  .gcf-feedback-button,
  .gcf-feedback-modal {
    display: none !important;
  }
}
