.asf-app {
  color: #102033;
  font-family: inherit;
  margin: 32px auto;
  max-width: 1180px;
}

.asf-page {
  background: #f7f9fc;
}

.asf-page__hero {
  background: #0b1d35;
  color: #fff;
  padding: 64px max(24px, calc((100vw - 1180px) / 2)) 44px;
}

.asf-page__hero h1 {
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  margin: 0;
}

.asf-page__content {
  margin: 0 auto;
  max-width: 1240px;
  padding: 38px 24px 76px;
}

.asf-head {
  margin-bottom: 24px;
}

.asf-kicker {
  color: #16a34a;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.asf-head h2,
.asf-panel-head h3,
.asf-done h3 {
  color: #0b1d35;
  line-height: 1.12;
  margin: 0;
}

.asf-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.asf-head p {
  color: #5b6878;
  font-size: 16px;
  margin: 12px 0 0;
  max-width: 760px;
}

.asf-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.asf-service-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

.asf-service-card,
.asf-form,
.asf-summary,
.asf-contact {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 31, 53, .06);
}

.asf-service-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
  min-height: 220px;
  padding: 22px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.asf-service-card:hover {
  border-color: #16a34a;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .10);
  transform: translateY(-1px);
}

.asf-service-card:focus-visible {
  outline: 3px solid rgba(22, 163, 74, .35);
  outline-offset: 4px;
}

.asf-service-card h3 {
  color: #0b1d35;
  font-size: 21px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.asf-service-card p {
  color: #5b6878;
  line-height: 1.55;
  margin: 0;
}

.asf-service-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.asf-service-card__meta span,
.asf-status-pill {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #0e7a33;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.asf-workspace {
  display: grid;
  gap: 22px;
}

.asf-app [hidden] {
  display: none !important;
}

.asf-form,
.asf-summary {
  padding: 24px;
}

.asf-panel-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.asf-form-grid,
.asf-summary-grid,
.asf-pay-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.asf-form label,
.asf-pay-grid label {
  display: grid;
  gap: 7px;
}

.asf-form label span,
.asf-pay-grid label span,
.asf-summary-grid span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.asf-form input,
.asf-form textarea,
.asf-pay-grid input,
.asf-pay-grid select {
  background: #fff;
  border: 1px solid #dbe3ed;
  border-radius: 8px;
  color: #102033;
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.asf-form input[readonly] {
  background: #f8fafc;
  color: #0e7a33;
  font-weight: 800;
}

.asf-date-hint {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: -4px 0 2px;
}

.asf-field-help {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.asf-form textarea {
  min-height: 110px;
  resize: vertical;
}

.asf-wide {
  grid-column: 1 / -1;
}

.asf-btn,
.asf-contact__actions a {
  align-items: center;
  background: #16a34a;
  border: 1px solid #16a34a;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  text-decoration: none;
}

.asf-btn:hover,
.asf-contact__actions a:hover {
  background: #12843d;
  border-color: #12843d;
}

.asf-btn[disabled] {
  cursor: wait;
  opacity: .65;
}

.asf-btn--secondary,
.asf-contact__actions a:nth-child(2) {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0b1d35;
}

.asf-btn--secondary:hover,
.asf-contact__actions a:nth-child(2):hover {
  background: #e8eef5;
  border-color: #b6c2d2;
  color: #0b1d35;
}

.asf-link-button {
  background: none;
  border: 0;
  color: #0e7a33;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
}

.asf-form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.asf-form-status,
.asf-payment-status {
  color: #64748b;
  font-weight: 700;
  margin: 0;
}

.asf-form-status.is-error,
.asf-payment-status.is-error {
  color: #dc2626;
}

.asf-summary-grid {
  margin-bottom: 22px;
}

.asf-summary-grid div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.asf-summary-grid strong {
  color: #0b1d35;
  display: block;
  font-size: 16px;
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.asf-pay-panel,
.asf-onsite-panel {
  border-top: 1px solid #e2e8f0;
  margin-top: 22px;
  padding-top: 22px;
}

.asf-pay-panel h4 {
  color: #0b1d35;
  font-size: 19px;
  margin: 0 0 8px;
}

.asf-pay-panel p {
  color: #5b6878;
  margin: 0 0 14px;
}

.asf-pay-panel--muted {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 18px;
}

.asf-payment-status {
  margin-top: 14px;
}

.asf-contact {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 24px;
  padding: 18px 20px;
}

.asf-contact p {
  color: #5b6878;
  margin: 5px 0 0;
}

.asf-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.asf-done {
  text-align: left;
}

.asf-done p {
  color: #5b6878;
  font-size: 16px;
}

.asf-done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.asf-hp {
  left: -9999px;
  position: absolute;
}

@media (max-width: 820px) {
  .asf-service-grid,
  .asf-form-grid,
  .asf-summary-grid,
  .asf-pay-grid {
    grid-template-columns: 1fr;
  }

  .asf-contact,
  .asf-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .asf-contact__actions,
  .asf-contact__actions a,
  .asf-btn {
    width: 100%;
  }
}
