:root {
  --jit-navy: #020b1d;
  --jit-blue: #246bff;
  --jit-sky: #63d9ff;
  --jit-teal: #16b9d4;
  --jit-green: #12b981;
  --jit-red: #ef4444;
  --jit-ink: #062a55;
  --jit-muted: #5d6b84;
  --jit-card: #ffffff;
  --jit-soft: #f3f8fc;
  --jit-line: #d7e2ef;
  --jit-shadow: 0 22px 70px rgba(3, 19, 46, 0.12);
}

.jit-feedback-shell,
.jit-feedback-shell * {
  box-sizing: border-box;
}

.jit-feedback-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--jit-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.jit-feedback-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 22px) 0 clamp(28px, 4vw, 54px);
}

.jit-feedback-card,
.jit-feedback-side-card,
.jit-success-panel {
  border: 1px solid rgba(215, 226, 239, 0.96);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--jit-shadow);
}

.jit-feedback-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
}

.jit-feedback-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--jit-blue), var(--jit-sky), var(--jit-teal));
}

.jit-card-header {
  margin-bottom: 22px;
}

.jit-pill,
.jit-side-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #e0f8ff;
  color: #07556c;
  font-size: 13px;
  font-weight: 850;
}

.jit-card-header h2,
.jit-success-panel h2 {
  margin: 16px 0 10px;
  color: #07376d;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.jit-card-header p,
.jit-feedback-side-card p,
.jit-success-panel p,
.jit-privacy-note {
  color: var(--jit-muted);
  line-height: 1.7;
}

.jit-ticket-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.jit-ticket-summary div,
.jit-ticket-subject,
.jit-side-details div {
  border: 1px solid var(--jit-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
}

.jit-ticket-summary span,
.jit-ticket-subject span,
.jit-side-details span {
  display: block;
  margin-bottom: 6px;
  color: #65758e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jit-ticket-summary strong,
.jit-ticket-subject strong,
.jit-side-details strong {
  display: block;
  color: #052f62;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.jit-ticket-subject {
  margin-bottom: 24px;
}

.jit-feedback-form {
  margin-top: 26px;
}

.jit-honeypot {
  position: absolute !important;
  left: -99999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.jit-rating-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.jit-rating-fieldset legend,
.jit-textarea-label span {
  display: block;
  margin-bottom: 14px;
  color: #082f63;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.jit-rating-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  gap: 8px;
}

.jit-rating-option {
  position: relative;
  min-width: 0;
}

.jit-rating-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.jit-rating-option span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid var(--jit-line);
  border-radius: 16px;
  background: #ffffff;
  color: #07376d;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(3, 24, 58, 0.05);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.jit-rating-option span:hover,
.jit-rating-option input:focus-visible + span {
  transform: translateY(-2px);
  border-color: rgba(36, 107, 255, 0.55);
  box-shadow: 0 14px 32px rgba(36, 107, 255, 0.16);
}

.jit-rating-option.is-selected span,
.jit-rating-option input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--jit-blue), var(--jit-teal));
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(36, 107, 255, 0.28);
}

.jit-rating-scale {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: #6b7890;
  font-size: 13px;
  font-weight: 750;
}

.jit-google-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(18, 185, 129, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.jit-google-nudge[hidden],
.jit-success-panel[hidden],
.jit-success-review[hidden] {
  display: none !important;
}

.jit-google-nudge strong {
  color: #07543c;
}

.jit-google-nudge p {
  margin: 5px 0 0;
  color: #2f5f56;
  line-height: 1.55;
}

.jit-review-link,
.jit-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--jit-blue), var(--jit-teal));
  color: #ffffff !important;
  font-weight: 900;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 18px 38px rgba(36, 107, 255, 0.26);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.jit-review-link:hover,
.jit-submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(36, 107, 255, 0.32);
}

.jit-review-link.is-disabled {
  background: #d9e3ef;
  color: #4f627c !important;
  box-shadow: none;
  cursor: not-allowed;
}

.jit-textarea-label {
  display: block;
  margin-top: 24px;
}

.jit-textarea-label textarea {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--jit-line);
  border-radius: 20px;
  padding: 16px 18px;
  color: #0a254a;
  background: #ffffff;
  font: inherit;
  line-height: 1.55;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(3, 24, 58, 0.03);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.jit-textarea-label textarea:focus {
  border-color: rgba(36, 107, 255, 0.68);
  box-shadow: 0 0 0 4px rgba(36, 107, 255, 0.12);
}

.jit-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  color: var(--jit-muted);
  line-height: 1.5;
}

.jit-checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--jit-blue);
}

.jit-form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.jit-submit-button {
  min-width: 190px;
  font-size: 16px;
}

.jit-submit-button[disabled] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

.jit-privacy-note {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
}

.jit-form-error {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 14px;
  background: #fff1f2;
  color: #991b1b;
  font-weight: 750;
}

.jit-feedback-side-card {
  align-self: start;
  padding: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 217, 255, 0.22), transparent 34%),
    #ffffff;
}

.jit-feedback-side-card h3 {
  margin: 16px 0 10px;
  color: #07376d;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.jit-side-details {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.jit-success-panel {
  display: none;
  grid-column: 1 / -1;
  padding: clamp(26px, 5vw, 54px);
  text-align: center;
}

.jit-feedback-wrap.is-submitted .jit-feedback-card,
.jit-feedback-wrap.is-submitted .jit-feedback-side-card {
  display: none;
}

.jit-feedback-wrap.is-submitted .jit-success-panel {
  display: block;
}

.jit-success-icon {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--jit-green), var(--jit-teal));
  color: #ffffff;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(18, 185, 129, 0.26);
}

.jit-review-link-large {
  margin-top: 10px;
}

@media (max-width: 980px) {
  .jit-feedback-wrap {
    grid-template-columns: 1fr;
  }

  .jit-feedback-side-card {
    order: 3;
  }
}

@media (max-width: 760px) {
  .jit-ticket-summary {
    grid-template-columns: 1fr;
  }

  .jit-rating-grid {
    grid-template-columns: repeat(5, minmax(44px, 1fr));
  }

  .jit-google-nudge {
    align-items: stretch;
    flex-direction: column;
  }

  .jit-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jit-submit-button,
  .jit-review-link {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .jit-rating-grid {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }
}
