*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  background-color: #021f21;
  color: #f7fafc;
  min-height: 100vh;
  padding: 56px 24px;
  line-height: 1.5;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

/* Intro */

.intro h1 {
  font-family: "DM Serif Display", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #f7fafc;
  margin-bottom: 16px;
}

.intro p {
  margin-bottom: 12px;
}

.intro strong {
  color: #f7fafc;
  font-weight: 600;
}

.muted {
  color: #a0aec0;
  font-size: 15px;
}

/* ZIP form */

.zip-form {
  margin: 32px 0;
  padding: 24px;
  background-color: #03292b;
  border: 1px solid #00393d;
  border-radius: 12px;
}

.form-title {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f7fafc;
  margin-bottom: 20px;
}

.fields-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.field-label {
  width: 155px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 500;
  color: #a0aec0;
}

.field-control {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field-input,
.field-select {
  width: 100%;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  padding: 10px 12px;
  background-color: #021f21;
  border: 1px solid #00393d;
  border-radius: 8px;
  color: #f7fafc;
  transition: border-color 0.15s;
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder {
  color: #4a5568;
}

.field-input:focus,
.field-select:focus {
  outline: none;
  border-color: #9fe963;
}

.field-input.invalid {
  border-color: #f56565;
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5568' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

.field-select option {
  background-color: #03292b;
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: #cbd5e0;
  cursor: pointer;
}

.radio-label input[type="radio"] {
  accent-color: #9fe963;
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-primary {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 20px;
  background-color: #9fe963;
  color: #021f21;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary:hover {
  background-color: #b6f08a;
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: default;
}

.zip-error {
  margin-top: 10px;
  font-size: 13px;
  color: #fc8181;
}

/* Results */

.results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reference-note {
  font-size: 14px;
  color: #a0aec0;
  line-height: 1.5;
}

.results-header {
  font-size: 14px;
  color: #a0aec0;
}

.results-header strong {
  color: #f7fafc;
  font-weight: 600;
}

.tax-card {
  background-color: #03292b;
  border: 1px solid #00393d;
  border-radius: 12px;
  padding: 20px 22px;
}

.tax-card h2 {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #f7fafc;
  margin-bottom: 8px;
}

.tax-card .tax-desc {
  font-size: 15px;
  color: #cbd5e0;
  margin-bottom: 14px;
}

.tax-meta {
  font-size: 14px;
  color: #a0aec0;
  margin-bottom: 6px;
}

.tax-meta:last-child {
  margin-bottom: 0;
}

.tax-meta strong {
  color: #f7fafc;
  font-weight: 600;
}

.tax-context {
  color: #718096;
  font-weight: 400;
}

.info-link {
  color: #9fe963;
  text-decoration: none;
  border-bottom: 1px solid rgba(159, 233, 99, 0.35);
  transition: border-color 0.15s;
}

.info-link:hover {
  border-bottom-color: #9fe963;
}

.popout-icon {
  margin-left: 4px;
  vertical-align: -1px;
}

/* Loading + states */

.status {
  padding: 28px 0;
  font-size: 15px;
  color: #a0aec0;
}

.status.error {
  color: #fc8181;
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  border: 2px solid #00393d;
  border-top-color: #9fe963;
  border-radius: 50%;
  vertical-align: -3px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.none-card {
  background-color: #03292b;
  border: 1px solid #00393d;
  border-radius: 12px;
  padding: 24px;
  font-size: 15px;
  color: #cbd5e0;
}
