.cc-hero {
  background: linear-gradient(135deg, #0b1220 0%, #111827 48%, #1f2937 100%);
  color: #f8fafc;
  padding: 8rem 0 3rem;
  margin-top: 88px;
  border-bottom: 1px solid rgba(250, 204, 21, 0.18);
}

.cc-hero__content {
  max-width: 920px;
}

.cc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #facc15;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.cc-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: 0;
}

.cc-hero p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 760px;
}

.cc-page {
  background: #0b1220;
  color: #e5e7eb;
  padding: 2.5rem 0 4rem;
}

.cc-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 1.25rem;
  align-items: start;
}

.cc-form,
.cc-result-panel {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.45);
}

.cc-form {
  padding: 1.1rem;
}

.cc-form-head {
  margin-bottom: 1rem;
}

.cc-form-head span {
  display: block;
  color: #facc15;
  font-size: 0.84rem;
  margin-bottom: 0.35rem;
}

.cc-form-head h2,
.cc-result-head h2,
.cc-breakdown h3 {
  margin: 0;
  color: #f8fafc;
  letter-spacing: 0;
}

.cc-fieldset {
  border: 1px solid rgba(51, 65, 85, 0.95);
  border-radius: 10px;
  padding: 0.9rem;
  margin: 0 0 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.cc-fieldset legend {
  color: #fde68a;
  font-weight: 700;
  padding: 0 0.35rem;
}

.cc-fieldset label {
  display: grid;
  gap: 0.38rem;
  color: #cbd5e1;
  font-size: 0.88rem;
}

.cc-fieldset input,
.cc-fieldset select {
  width: 100%;
  min-height: 42px;
  background: #0b1220;
  border: 1px solid #334155;
  color: #f8fafc;
  border-radius: 8px;
  padding: 0.62rem 0.7rem;
  font: inherit;
}

.cc-fieldset input:focus,
.cc-fieldset select:focus {
  outline: none;
  border-color: rgba(250, 204, 21, 0.75);
  box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.12);
}

.cc-fieldset input:disabled {
  opacity: 0.5;
}

.cc-rate-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.cc-help {
  grid-column: 1 / -1;
  margin: 0;
  color: #94a3b8;
  font-size: 0.84rem;
}

.cc-rates-status--error {
  color: #fca5a5;
}

.cc-fieldset input[readonly] {
  color: #fde68a;
  background: rgba(15, 23, 42, 0.72);
}

.cc-checks {
  grid-template-columns: 1fr;
}

.cc-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 0.6rem !important;
}

.cc-check input {
  width: 18px;
  min-height: 18px;
  accent-color: #facc15;
}

.cc-result-panel {
  position: sticky;
  top: 106px;
  padding: 1rem;
}

.cc-result-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 0.9rem;
}

.cc-status {
  display: inline-flex;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0b1220;
  background: #facc15;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}

.cc-status--warn {
  background: #fb923c;
}

.cc-total {
  text-align: right;
  min-width: 160px;
}

.cc-total span,
.cc-summary-card span,
.cc-summary-card small {
  color: #94a3b8;
  font-size: 0.82rem;
}

.cc-total strong {
  display: block;
  color: #fde68a;
  font-size: 1.22rem;
}

.cc-message {
  border: 1px solid rgba(250, 204, 21, 0.24);
  background: rgba(250, 204, 21, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.9rem;
}

.cc-message--error {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(127, 29, 29, 0.28);
}

.cc-message strong {
  color: #f8fafc;
}

.cc-message ul {
  margin: 0.45rem 0 0;
  padding-left: 1.05rem;
  color: #cbd5e1;
}

.cc-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.cc-summary-card {
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 8px;
  padding: 0.72rem;
  background: rgba(2, 6, 23, 0.25);
}

.cc-summary-card--wide {
  grid-column: 1 / -1;
}

.cc-summary-card strong {
  display: block;
  color: #f8fafc;
  font-size: 1.12rem;
  margin: 0.18rem 0;
}

.cc-breakdown {
  margin-top: 1rem;
}

.cc-breakdown-table {
  margin-top: 0.65rem;
  border: 1px solid rgba(51, 65, 85, 0.85);
  border-radius: 8px;
  overflow: hidden;
}

.cc-breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 0.72rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.85);
}

.cc-breakdown-row:last-child {
  border-bottom: none;
}

.cc-breakdown-row span {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.cc-actions-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
}

.cc-btn,
.customs-toolbar-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #f8fafc;
  border-radius: 8px;
  min-height: 40px;
  padding: 0.58rem 0.8rem;
  cursor: pointer;
  font-weight: 700;
}

.cc-btn--primary,
.customs-toolbar-btn {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #111827;
  border-color: rgba(250, 204, 21, 0.85);
}

.customs-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  text-decoration: none;
}

.cc-debug {
  margin-top: 1rem;
  white-space: pre-wrap;
  background: #020617;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 1rem;
  color: #bae6fd;
  font-size: 0.8rem;
}

@media (max-width: 980px) {
  .cc-page-grid {
    grid-template-columns: 1fr;
  }

  .cc-result-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .cc-hero {
    padding-top: 7rem;
  }

  .cc-fieldset,
  .cc-rate-grid,
  .cc-summary-grid {
    grid-template-columns: 1fr;
  }

  .cc-result-head,
  .cc-actions-row {
    flex-direction: column;
  }

  .cc-total {
    text-align: left;
  }
}
