.cxpr-wrap {
  --cxpr-orange: #ff6400;
  --cxpr-orange-dark: #d94f00;
  --cxpr-charcoal: #202124;
  --cxpr-ink: #2d2f33;
  --cxpr-muted: #6f7379;
  --cxpr-line: #e7e7e7;
  --cxpr-soft: #fff7f1;
  display: grid;
  gap: 24px;
  width: min(100%, 960px);
  margin: 32px auto;
  color: var(--cxpr-ink);
  font-family: inherit;
}

.cxpr-hero {
  overflow: hidden;
  position: relative;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 24px;
  background: linear-gradient(135deg, #191a1c 0%, #2b2d30 66%, #3b2a20 100%);
  color: #fff;
  box-shadow: 0 18px 50px rgba(32, 33, 36, .18);
}

.cxpr-hero::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255, 100, 0, .22);
}

.cxpr-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffb27f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.cxpr-hero h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(28px, 4.8vw, 42px);
  line-height: 1.18;
}

.cxpr-hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #e8e8e8;
  font-size: 16px;
}

.cxpr-card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--cxpr-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(32, 33, 36, .07);
}

.cxpr-card h3 {
  margin: 0 0 8px;
  color: var(--cxpr-charcoal);
  font-size: clamp(22px, 3vw, 27px);
}

.cxpr-card h3::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: .85em;
  margin-right: 10px;
  border-radius: 4px;
  background: var(--cxpr-orange);
}

.cxpr-lead {
  margin: 0 0 24px;
  color: var(--cxpr-muted);
  line-height: 1.65;
}

.cxpr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.cxpr-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.cxpr-field label {
  color: var(--cxpr-charcoal);
  font-size: 14px;
  font-weight: 750;
}

.cxpr-field label span { color: var(--cxpr-orange-dark); }

.cxpr-field input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #cfd1d4;
  border-radius: 12px;
  background: #fff;
  color: #17181a;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.cxpr-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  align-self: stretch;
  width: auto !important;
  inline-size: auto !important;
  min-width: 0 !important;
  min-inline-size: 0 !important;
  max-width: none !important;
  max-inline-size: none !important;
  height: auto;
  min-height: 50px;
  max-height: none;
  line-height: normal;
}

.cxpr-field input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.5em;
  line-height: 1.5em;
  text-align: left;
}

.cxpr-file-control {
  position: relative;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid #cfd1d4;
  border-radius: 12px;
  background: #fafafa;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.cxpr-file-control:focus-within {
  border-color: var(--cxpr-orange);
  box-shadow: 0 0 0 4px rgba(255, 100, 0, .15);
}

.cxpr-file-control input[type="file"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}

.cxpr-file-button {
  flex: 0 0 auto;
  border-radius: 8px;
  padding: 7px 11px;
  background: #35373a;
  color: #fff !important;
  font-size: 14px;
  line-height: 1.4;
}

.cxpr-file-name {
  min-width: 0;
  margin-left: 10px;
  overflow: hidden;
  color: #3f4145 !important;
  font-size: 14px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cxpr-field input:focus { outline: 0; border-color: var(--cxpr-orange); box-shadow: 0 0 0 4px rgba(255, 100, 0, .15); }
.cxpr-field small, .cxpr-help { color: var(--cxpr-muted); font-size: 13px; line-height: 1.5; }

.cxpr-button {
  appearance: none;
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 12px;
  padding: 13px 24px;
  background: var(--cxpr-orange);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 100, 0, .22);
  transition: background .18s ease, transform .18s ease;
}

.cxpr-rate-note {
	margin: 0 0 12px;
	color: #6b7280;
	font-size: 13px;
}

.cxpr-button:hover { background: var(--cxpr-orange-dark); transform: translateY(-1px); }
.cxpr-button:focus-visible { outline: 3px solid #161719; outline-offset: 3px; }
.cxpr-button-secondary { background: var(--cxpr-charcoal); box-shadow: 0 8px 20px rgba(32, 33, 36, .16); }
.cxpr-button-secondary:hover { background: #090a0b; }
.cxpr-lookup-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cxpr-lookup-form .cxpr-button { margin-top: 0; }

.cxpr-notice, .cxpr-result { padding: 16px 18px; border-radius: 13px; line-height: 1.55; }
.cxpr-notice-success { border: 1px solid #b9e6cf; background: #edfbf3; color: #0b6640; }
.cxpr-notice-error, .cxpr-result-error { border: 1px solid #f1c5c5; background: #fff3f3; color: #922323; }
.cxpr-result { margin-top: 20px; border: 1px solid #eadfd7; background: var(--cxpr-soft); }
.cxpr-result dl { margin: 0; }
.cxpr-result dl div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eadfd7; }
.cxpr-result dl div:last-child { border-bottom: 0; }
.cxpr-result dt { color: var(--cxpr-charcoal); font-weight: 750; }
.cxpr-result dd { margin: 0; }
.cxpr-result a { color: var(--cxpr-orange-dark); font-weight: 750; }
.cxpr-result h4 { margin: 24px 0 10px; color: var(--cxpr-charcoal); }
.cxpr-history { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cxpr-history li { padding: 13px; border: 1px solid #eadfd7; border-radius: 11px; background: #fff; }
.cxpr-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

@media (max-width: 680px) {
  .cxpr-wrap { gap: 18px; margin: 20px auto; }
  .cxpr-hero, .cxpr-card { border-radius: 16px; }
  .cxpr-grid, .cxpr-lookup-form { grid-template-columns: 1fr; }
  .cxpr-lookup-form .cxpr-button { width: 100%; margin-top: 2px; }
  .cxpr-result dl div { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .cxpr-button, .cxpr-field input { transition: none; }
}
