@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Syne:wght@600;700;800&display=swap");

.pet-card-page {
  width: 100%;
  max-width: 980px;
  padding: 0 0 150px;
}

.pet-card-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.pet-card-hero {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(242, 203, 108, 0.28), transparent 34%),
    linear-gradient(145deg, #0a3d2e 0%, #115740 58%, #1f7b59 100%);
  color: #fcf9f1;
  box-shadow: 0 22px 48px rgba(10, 61, 46, 0.16);
}

.pet-card-hero h1,
.pet-card-stage-copy h2,
.pet-card-form-head h2,
.pet-card-qr-head h3,
.pet-card-preview-head h3 {
  margin: 0;
  font-family: "Syne", "Trebuchet MS", sans-serif;
}

.pet-card-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.94;
}

.pet-card-hero p,
.pet-card-hero-note span,
.pet-card-stage-copy p,
.pet-card-form-head p,
.pet-card-qr-copy {
  margin: 0;
  font: 500 16px/1.6 "DM Sans", Arial, sans-serif;
}

.pet-card-hero-pill,
.pet-card-preview-pill,
.pet-card-stage-kicker,
.pet-card-helper-tag,
.pet-card-status,
.pet-card-step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font: 800 11px/1 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pet-card-hero-pill,
.pet-card-preview-pill,
.pet-card-stage-kicker {
  background: #f2cb6c;
  color: #0a3d2e;
}

.pet-card-hero-note {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.12);
}

.pet-card-hero-note strong {
  font: 800 14px/1.2 "DM Sans", Arial, sans-serif;
}

.pet-card-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pet-card-step-pill {
  padding-inline: 14px;
  background: rgba(10, 61, 46, 0.08);
  color: #527062;
}

.pet-card-step-pill.is-current {
  background: #0a3d2e;
  color: #ffffff;
}

.pet-card-step-pill.is-done {
  background: rgba(10, 61, 46, 0.16);
  color: #0a3d2e;
}

.pet-card-stage-wrap,
.pet-card-form,
.pet-card-preview-card,
.pet-card-qr-panel {
  min-width: 0;
}

.pet-card-form,
.pet-card-preview-card,
.pet-card-qr-panel {
  border: 1px solid rgba(16, 49, 37, 0.08);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 18px 42px rgba(16, 49, 37, 0.08);
}

.pet-card-form {
  padding: 22px;
  border-radius: 28px;
}

.pet-card-form-head {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.pet-card-form-head-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(10, 61, 46, 0.06);
  color: #49685b;
  font: 500 14px/1.6 "DM Sans", Arial, sans-serif;
}

.pet-card-form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.pet-card-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pet-card-field-full {
  grid-column: 1 / -1;
}

.pet-card-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font: 700 13px/1.35 "DM Sans", Arial, sans-serif;
  color: #163729;
}

.pet-card-helper-tag {
  min-height: 24px;
  padding-inline: 10px;
  background: rgba(10, 61, 46, 0.08);
  color: #0a3d2e;
  letter-spacing: 0.04em;
}

.pet-card-field input,
.pet-card-field textarea,
.pet-card-field select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid rgba(16, 49, 37, 0.14);
  border-radius: 18px;
  background: #ffffff;
  color: #163729;
  font: 500 15px/1.45 "DM Sans", Arial, sans-serif;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pet-card-field textarea {
  min-height: 88px;
  resize: vertical;
}

.pet-card-field input:focus,
.pet-card-field textarea:focus,
.pet-card-field select:focus {
  outline: none;
  border-color: rgba(10, 61, 46, 0.42);
  box-shadow: 0 0 0 4px rgba(10, 61, 46, 0.08);
  transform: translateY(-1px);
}

.pet-card-stage-grid {
  display: grid;
  gap: 18px;
}

.pet-card-stage-copy,
.pet-card-qr-panel {
  padding: 22px;
  border-radius: 28px;
}

.pet-card-stage-copy {
  background:
    radial-gradient(circle at top right, rgba(242, 203, 108, 0.22), transparent 40%),
    linear-gradient(180deg, rgba(10, 61, 46, 0.04), rgba(10, 61, 46, 0.02));
  border: 1px solid rgba(10, 61, 46, 0.08);
}

.pet-card-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.pet-card-preview-card {
  overflow: hidden;
  border-radius: 28px;
}

.pet-card-preview-head {
  padding: 22px;
  color: #fbf8ef;
  background:
    radial-gradient(circle at top right, rgba(242, 203, 108, 0.3), transparent 34%),
    linear-gradient(145deg, #0a3d2e 0%, #155c43 100%);
}

.pet-card-preview-head h3 {
  margin-top: 16px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 0.96;
}

.pet-card-preview-head p {
  margin: 8px 0 0;
  font: 500 16px/1.5 "DM Sans", Arial, sans-serif;
  color: rgba(251, 248, 239, 0.9);
}

.pet-card-preview-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.pet-card-preview-info {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(10, 61, 46, 0.08);
}

.pet-card-preview-label {
  color: #678377;
  font: 800 11px/1.2 "DM Sans", Arial, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pet-card-preview-info strong,
.pet-card-preview-info span,
.pet-card-public-link {
  color: #173a2b;
  font: 600 15px/1.55 "DM Sans", Arial, sans-serif;
}

.pet-card-public-link {
  word-break: break-word;
  text-decoration: none;
}

.pet-card-qr-panel {
  display: grid;
  gap: 18px;
}

.pet-card-public-box {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(10, 61, 46, 0.08);
}

.pet-card-qr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pet-card-qr-head h3 {
  margin-top: 12px;
  font-size: 28px;
  line-height: 1;
  color: #122f22;
}

.pet-card-status {
  background: rgba(10, 61, 46, 0.1);
  color: #0a3d2e;
}

.pet-card-status.is-ready {
  background: #0a3d2e;
  color: #ffffff;
}

.pet-card-qr-box {
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(10, 61, 46, 0.03), rgba(10, 61, 46, 0.08)),
    #ffffff;
  border: 1px dashed rgba(10, 61, 46, 0.18);
}

.pet-card-qr-empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  color: #60756a;
  font: 500 15px/1.6 "DM Sans", Arial, sans-serif;
}

.pet-card-qr-empty i {
  font-size: 58px;
  color: #0a3d2e;
}

.pet-card-qr-image {
  width: min(100%, 320px);
  height: auto;
  display: block;
  padding: 12px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(10, 61, 46, 0.1);
}

@media (min-width: 960px) {
  .pet-card-shell {
    margin-left: 0;
    margin-right: 0;
  }

  .pet-card-hero {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.75fr);
    align-items: end;
  }

  .pet-card-form-head {
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    align-items: end;
  }

  .pet-card-stage-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(380px, 1fr);
    align-items: start;
  }
}

@media (max-width: 860px) {
  .pet-card-page {
    padding-bottom: 180px;
  }

  .pet-card-form-fields {
    grid-template-columns: 1fr;
  }

  .pet-card-form,
  .pet-card-stage-copy,
  .pet-card-preview-card,
  .pet-card-qr-panel {
    border-radius: 24px;
  }

  .pet-card-stage-actions .btn {
    width: 100%;
  }
}
