.pmgc,
.pmgc * {
  box-sizing: border-box;
}

.pmgc {
  --pmgc-black: #111111;
  --pmgc-gold: #b79661;
  --pmgc-muted: #706b63;
  --pmgc-paper: #f6f1e8;
  --pmgc-line: rgba(17, 17, 17, 0.12);
  background: var(--pmgc-paper);
  color: var(--pmgc-black);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.pmgc h1,
.pmgc h2,
.pmgc h3,
.pmgc p {
  margin-top: 0;
}

.pmgc-builder-grid {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(340px, 0.92fr) minmax(500px, 1.08fr);
  gap: 64px;
  align-items: start;
  margin: 0 auto;
  padding: 80px 0;
}

.pmgc-preview {
  position: sticky;
  top: 32px;
  align-self: start;
}

.pmgc-kicker {
  margin: 0;
  color: var(--pmgc-gold);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pmgc-heading,
.pmgc-form-title {
  max-width: 620px;
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 4vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.pmgc-intro,
.pmgc-form-intro {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--pmgc-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.pmgc-form-panel {
  padding: clamp(30px, 4.5vw, 52px);
  border: 1px solid var(--pmgc-line);
  background: #ffffff;
  box-shadow: 0 24px 65px rgba(17, 17, 17, 0.07);
}

.pmgc-form-title {
  margin-top: 0;
  font-size: clamp(2.1rem, 3.5vw, 3.35rem);
}

.pmgc-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 32px;
  padding: clamp(28px, 4vw, 40px);
  overflow: hidden;
  border-radius: 4px;
  color: #ffffff;
  background:
    radial-gradient(circle at 84% 18%, rgba(183, 150, 97, 0.38), transparent 25%),
    linear-gradient(135deg, #090909, #202020 66%, #322b23);
  box-shadow: 0 35px 70px rgba(17, 17, 17, 0.24);
  transform: rotate(-1deg);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.pmgc-card:hover {
  transform: rotate(0deg) translateY(-3px);
}

.pmgc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      112deg,
      transparent 0,
      transparent 64px,
      rgba(255, 255, 255, 0.026) 65px,
      rgba(255, 255, 255, 0.026) 66px
    );
}

.pmgc-card::after {
  content: "P";
  position: absolute;
  right: -0.03em;
  bottom: -0.23em;
  color: rgba(255, 255, 255, 0.055);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(10rem, 26vw, 18rem);
  line-height: 1;
}

.pmgc-card-top,
.pmgc-card-bottom {
  position: relative;
  z-index: 1;
}

.pmgc-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55rem;
  line-height: 0.92;
  letter-spacing: -0.04em;
}

.pmgc-brand span {
  display: block;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.36em;
  font-weight: 900;
  letter-spacing: 0.42em;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
}

.pmgc-card-label {
  margin: 38px 0 0;
  color: var(--pmgc-gold);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pmgc-card-recipient {
  max-width: 82%;
  margin: 8px 0 0;
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pmgc-card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.pmgc-card-message {
  max-width: 63%;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.pmgc-card-value {
  flex: 0 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.4rem, 6vw, 4.8rem);
  line-height: 0.8;
  letter-spacing: -0.055em;
}

.pmgc-card-value span {
  font-size: 0.43em;
  vertical-align: top;
}

.pmgc-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--pmgc-line);
}

.pmgc-section--last {
  border-bottom: 0;
  padding-bottom: 0;
}

.pmgc-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
}

.pmgc-step span {
  color: var(--pmgc-gold);
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.pmgc-step h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pmgc-amount-grid,
.pmgc-type-grid,
.pmgc-details-grid {
  display: grid;
  gap: 12px;
}

.pmgc-amount-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pmgc-type-grid,
.pmgc-details-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pmgc-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.pmgc-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pmgc-choice > span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pmgc-line);
  background: #fcfbf8;
  color: var(--pmgc-black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.16rem;
  transition: border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.pmgc-choice:hover > span {
  border-color: var(--pmgc-gold);
}

.pmgc-choice input:checked + span {
  border-color: var(--pmgc-black);
  background: var(--pmgc-black);
  color: #ffffff;
}

.pmgc-choice--tall > span {
  min-height: 112px;
  place-items: start;
  justify-content: center;
  gap: 8px;
  padding: 22px;
}

.pmgc-choice strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.pmgc-choice small {
  display: block;
  margin-top: 8px;
  color: var(--pmgc-muted);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  line-height: 1.5;
}

.pmgc-choice input:checked + span small {
  color: rgba(255, 255, 255, 0.68);
}

.pmgc-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.pmgc-field > span {
  color: #242424;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pmgc-field input,
.pmgc-field select,
.pmgc-field textarea {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-bottom: 1px solid rgba(17, 17, 17, 0.25);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--pmgc-black);
  font: inherit;
  transition: border-color 170ms ease, box-shadow 170ms ease;
}

.pmgc-field textarea {
  min-height: 125px;
  padding-top: 12px;
  resize: vertical;
}

.pmgc-field input:focus,
.pmgc-field select:focus,
.pmgc-field textarea:focus {
  border-color: var(--pmgc-gold);
  box-shadow: 0 1px 0 var(--pmgc-gold);
}

.pmgc-field em {
  align-self: flex-end;
  color: var(--pmgc-muted);
  font-size: 0.76rem;
  font-style: normal;
}

.pmgc-conditional {
  display: block;
}

.pmgc-conditional--hidden {
  display: none;
}

.pmgc-summary {
  padding: 22px;
  border: 1px solid var(--pmgc-line);
  background: var(--pmgc-paper);
}

.pmgc-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.pmgc-summary-row span {
  color: var(--pmgc-muted);
  font-size: 0.86rem;
}

.pmgc-summary-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 400;
}

.pmgc-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  margin-top: 24px;
  color: var(--pmgc-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.pmgc-consent input {
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
  accent-color: var(--pmgc-black);
}

.pmgc-submit {
  width: 100%;
  min-height: 59px;
  margin-top: 24px;
  border: 1px solid var(--pmgc-black);
  border-radius: 0;
  background: var(--pmgc-black);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, opacity 180ms ease;
}

.pmgc-submit:hover:not(:disabled) {
  background: transparent;
  color: var(--pmgc-black);
}

.pmgc-submit:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pmgc-status {
  display: none;
  margin: 15px 0 0;
  color: var(--pmgc-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.pmgc-status.is-visible {
  display: block;
}

.pmgc-status.is-error {
  color: #9f3434;
}

@media (max-width: 980px) {
  .pmgc-builder-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .pmgc-preview {
    position: static;
  }
}

@media (max-width: 700px) {
  .pmgc-builder-grid {
    width: min(100% - 24px, 1180px);
    padding: 56px 0;
  }

  .pmgc-form-panel {
    padding: 28px 20px;
  }

  .pmgc-amount-grid {
    grid-template-columns: 1fr;
  }

  .pmgc-type-grid,
  .pmgc-details-grid {
    grid-template-columns: 1fr;
  }

  .pmgc-field--full {
    grid-column: 1;
  }

  .pmgc-card {
    min-height: 260px;
  }

  .pmgc-card-message {
    max-width: 58%;
  }
}
