/* Card container – aligns with production site (federalscholarshiptaxescredit.org) */
.sufs-ami-card {
  max-width: 640px;
  margin: 0 auto 2rem;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Header strip – navy */
.sufs-ami-card-header {
  background: #1e3a5f;
  color: #fff;
  padding: 1.25rem 1.5rem;
}

.sufs-ami-title {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.sufs-ami-subtitle {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.4;
  color: #f9fafb;
}

/* Form area */
.sufs-ami-form {
  padding: 1.5rem;
}

.sufs-ami-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.sufs-ami-row label {
  min-width: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1e3a5f;
}

.sufs-ami-required {
  color: #b91c1c;
}

.sufs-ami-row select,
.sufs-ami-row input {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
}

.sufs-ami-row select:focus,
.sufs-ami-row input:focus {
  outline: none;
  border-color: #1e3a5f;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
}

/* Primary CTA – gold/amber to match production */
.sufs-ami-submit {
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1e3a5f;
  background: #e5a00d;
  border: 2px solid #1e3a5f;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}

.sufs-ami-submit:hover:not(:disabled) {
  background: #f0b429;
}

.sufs-ami-submit:active:not(:disabled) {
  transform: scale(0.98);
}

.sufs-ami-submit:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Result area */
.sufs-ami-result {
  padding: 0 1.5rem 1.5rem;
  min-height: 0;
}

.sufs-ami-result-area-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e3a5f;
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

/* Two value cards side by side */
.sufs-ami-result-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 480px) {
  .sufs-ami-result-cards {
    grid-template-columns: 1fr;
  }
}

.sufs-ami-result-card {
  background: #f8fafc;
  border: 1px solid #e5a00d;
  border-radius: 10px;
  padding: 1rem;
}

.sufs-ami-result-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  margin-bottom: 0.35rem;
}

.sufs-ami-result-card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e3a5f;
  line-height: 1.2;
}

/* Summary sentence */
.sufs-ami-result-summary {
  font-size: 1rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 0.75rem;
}

/* Source line */
.sufs-ami-result-source {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* Optional CTA link(s) */
.sufs-ami-result-cta {
  margin-top: 1rem;
}

.sufs-ami-result-cta a {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e3a5f;
  background: transparent;
  border: 2px solid #1e3a5f;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.sufs-ami-result-cta a:hover {
  background: #1e3a5f;
  color: #fff;
}

/* Loading state */
.sufs-ami-loading {
  padding: 1rem 0;
  color: #64748b;
  font-size: 0.95rem;
}

/* Errors – friendly, high contrast */
.sufs-ami-error {
  padding: 1rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #b91c1c;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-top: 0.5rem;
}
