/* A single correspondence card. The landing page's edge graphics sit behind it. */
#contact.request-section {
  display: block;
  isolation: isolate;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  scroll-margin-top: 10px;
}
.request-card [hidden] { display: none !important; }
.request-card {
  --card-pad: clamp(28px, 3.8vw, 56px);
  --ink-soft: #d6cbdc;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: clip;
  border: 1px solid #60516a;
  border-radius: 23px;
  background:
    radial-gradient(ellipse at 0 0, #593e6a 0%, transparent 55%),
    linear-gradient(113deg, #372b42 5%, #2b2432 51%, #26212b 69%, #252129);
  box-shadow: inset 0 1px 0 #f4e3ff17, inset 0 -2px 0 #100d1670, 0 14px 36px -20px #08060abe;
}
.request-intro, .request-surface { position: relative; min-width: 0; padding: var(--card-pad); }
.request-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(106px, 10.8vw, 156px);
  grid-template-areas: "heading heading" "benefits stamp" "free stamp";
  align-content: center;
  align-items: center;
  column-gap: 12px;
}
/* A quiet screen of paper dots fades out before the fields. */
.request-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, #efe1fa36 .7px, transparent .95px) 0 0 / 5px 5px;
  mask-image: radial-gradient(ellipse at 100% 95%, #000 0%, transparent 62%);
}
.request-intro h2 {
  grid-area: heading;
  margin: 0 0 clamp(24px, 2.6vw, 37px);
  line-height: 1.12;
  color: var(--text);
  text-align: left;
}
.request-title-lead {
  display: block;
  font-size: clamp(38px, 4.15vw, 62px);
  font-weight: 700;
  letter-spacing: -.052em;
  line-height: .99;
}
.request-title-detail {
  display: block;
  max-width: 28ch;
  margin-top: 14px;
  color: #e3d9eb;
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: -.026em;
  text-wrap: pretty;
}
.request-benefits {
  grid-area: benefits;
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.request-benefits li {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.4;
  font-weight: 600;
  color: #f1eaf6;
}
.request-benefits li::before {
  content: "";
  width: 9px;
  height: 5px;
  flex: 0 0 9px;
  margin-top: -2px;
  border: solid var(--lime);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.request-free {
  grid-area: free;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: .93rem;
  line-height: 1.4;
}

/* The envelope belongs to a die-cut stamp, complete with a printed cancellation. */
.request-lettermark {
  grid-area: stamp;
  position: relative;
  align-self: center;
  justify-self: end;
  width: clamp(98px, 9.2vw, 140px);
  aspect-ratio: 1.03;
  pointer-events: none;
}
.request-stamp {
  position: absolute;
  inset: 0;
  transform: rotate(9deg);
  filter: drop-shadow(2px 5px 3px #160f1e80);
}
.request-stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, #eadcf2, #bf9ace 56%, #ac84be);
  mask:
    radial-gradient(circle at 5px 0, transparent 2px, #000 2.8px) 0 0 / 10px 100% repeat-x,
    radial-gradient(circle at 5px 100%, transparent 2px, #000 2.8px) 0 0 / 10px 100% repeat-x,
    radial-gradient(circle at 0 5px, transparent 2px, #000 2.8px) 0 0 / 100% 10px repeat-y,
    radial-gradient(circle at 100% 5px, transparent 2px, #000 2.8px) 0 0 / 100% 10px repeat-y;
  mask-composite: intersect;
}
.request-stamp::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7%;
  border: 1px solid #efdaf57a;
  outline: 1px solid #7d5686;
  background:
    radial-gradient(ellipse at 33% 10%, #b799d7, transparent 65%),
    repeating-linear-gradient(128deg, #ffffff08 0 1px, transparent 1px 4px),
    #9978aa;
}
.request-stamp img {
  position: absolute;
  z-index: 1;
  width: 85%;
  height: 85%;
  object-fit: contain;
  left: 7%;
  top: 7%;
  transform: rotate(-14deg);
  filter: drop-shadow(1px 5px 3px #43245769);
}
.request-postmark {
  position: absolute;
  z-index: 2;
  bottom: -3%;
  left: -16%;
  width: 37%;
  aspect-ratio: 1;
  border: 3px double #d0b8dc83;
  border-radius: 50%;
  transform: rotate(-14deg);
}
.request-postmark i {
  position: absolute;
  width: 100%;
  height: 23%;
  right: 78%;
  top: 22%;
  border-top: 1px solid #c4aacf80;
  border-radius: 50%;
}
.request-postmark i:nth-child(2) { top: 40%; }
.request-postmark i:nth-child(3) { top: 58%; }

.request-surface { align-content: center; container-type: inline-size; }
.request-surface::before {
  content: "";
  position: absolute;
  top: 8%;
  bottom: 8%;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, #be9fc841 22% 78%, transparent);
}
.request-form { display: grid; gap: 16px; margin: 0; }
.request-identity, .request-actions { display: grid; gap: 12px; }
.request-field { display: block; min-width: 0; }
.request-field > span, .request-field > label {
  display: block;
  margin: 0 0 7px;
  color: #f6f2f8;
  font-size: .96rem;
  font-weight: 600;
  line-height: 1.32;
}
.request-field small { margin-left: 5px; color: #c6b8ce; font-size: .78rem; font-weight: 400; }
.request-field :is(input, textarea), .request-draft {
  width: 100%;
  display: block;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #66576f;
  border-radius: 9px;
  background: #211c26;
  box-shadow: inset 0 2px 4px #120c184d, 0 1px 0 #ffffff08;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.38;
}
.request-field textarea { min-height: 98px; resize: vertical; }
.request-phone {
  display: flex;
  align-items: stretch;
  min-width: 0;
  border: 1px solid #66576f;
  border-radius: 9px;
  background: #211c26;
  box-shadow: inset 0 2px 4px #120c184d, 0 1px 0 #ffffff08;
}
.request-prefix {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-inline: 10px;
  border-inline-end: 1px solid #56495e;
  border-radius: 8px 0 0 8px;
  background: #322a38;
  color: #f0e5f8;
  font-size: .94rem;
  font-variant-numeric: tabular-nums;
}
.request-prefix::after {
  content: "";
  width: 6px;
  height: 6px;
  border: solid #c5b6ce;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.request-prefix select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font: inherit;
  color-scheme: dark;
}
.request-field .request-phone input {
  min-width: 0;
  min-height: 44px;
  padding-inline: 10px;
  border: 0;
  border-radius: 0 8px 8px 0;
  background: transparent;
  box-shadow: none;
}
.request-phone:has([aria-invalid="true"]) { border-color: #ffacb6; }
.request-field :is(input, textarea)::placeholder { color: #b7aebe; opacity: 1; }
.request-field [aria-invalid="true"] { border-color: #ffacb6; }
.request-error { color: #ffb9c1; font-size: .9rem; line-height: 1.4; }
.request-submit, .request-chat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(178deg, #944cdd, #7e37c4);
  box-shadow: 0 3px 0 #492863, 0 5px 12px #160e203d;
  font: inherit;
  font-weight: 600;
  line-height: 1.29;
  text-decoration: none;
  cursor: pointer;
}
.request-actions { gap: 9px; }
.request-actions > * { min-width: 0; text-align: center; }
.request-actions .request-submit, .request-telegram { padding-inline: 10px; font-size: .94rem; }
.request-telegram {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding-block: 12px;
  border: 1px solid #776681;
  border-radius: 10px;
  color: #efe7f4;
  background: #352d3c;
  font-weight: 600;
  line-height: 1.29;
  text-decoration: none;
}
@container (min-width: 392px) {
  .request-identity { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
}
@container (min-width: 430px) {
  .request-actions { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
}
.request-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  min-height: 44px;
  color: #ddd3e3;
  font-size: .9rem;
  line-height: 1.5;
  cursor: pointer;
}
.request-consent > span { overflow-wrap: anywhere; }
.request-consent input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--lime);
  cursor: pointer;
}
.request-consent input[aria-invalid="true"] { outline: 2px solid #ffacb6; outline-offset: 2px; }
.request-consent a { color: #ead8fa; text-decoration: underline; text-underline-offset: .15em; }
.request-confirmation { display: grid; gap: 13px; justify-items: start; align-content: center; min-height: 250px; }
.request-confirmation h3 { max-width: 20ch; font-size: clamp(25px, 2.1vw, 34px); }
.request-confirmation[data-accepted] h3::before { content: "✓"; display: block; margin-bottom: 14px; color: var(--lime); }
.request-confirmation p { color: var(--ink-soft); }
.request-draft { min-height: 78px; resize: vertical; }
.request-send-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.request-feedback:empty { display: none; }
.request-feedback { font-size: .88rem; color: var(--ink-soft); }
.request-again, .request-copy {
  padding: 6px 0;
  border: 0;
  color: #e2cdef;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: .18em;
  cursor: pointer;
}
.request-prefix:has(select:focus-visible), .request-field :is(input, textarea):focus-visible,
.request-telegram:focus-visible, .request-submit:focus-visible, .request-confirmation :is(a, button, textarea):focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}
@media (hover: hover) {
  .request-phone:hover, .request-field :is(input, textarea):hover { border-color: #9d88a9; }
  .request-telegram:hover { color: #fff; background: #413648; border-color: #a690b2; }
  .request-card .request-submit:hover:not(:disabled), .request-chat:hover { background: linear-gradient(#a05be3, #8940cf); }
  .request-again:hover, .request-copy:hover { color: #fff; }
}

@media (min-width: 741px) and (max-width: 950px) {
  .request-card { --card-pad: 25px; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
  .request-intro { grid-template-columns: minmax(0, 1fr) 86px; column-gap: 6px; }
  .request-lettermark { width: 79px; }
}
@media (max-width: 740px) {
  .request-card { --card-pad: clamp(19px, 5.3vw, 34px); grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .request-intro { grid-template-areas: "heading heading" "benefits stamp" "free free"; grid-template-columns: minmax(0, 1fr) clamp(78px, 20vw, 122px); padding-block-end: 20px; }
  .request-intro h2 { margin-bottom: 20px; }
  .request-title-lead { font-size: clamp(30px, 7.8vw, 44px); }
  .request-title-detail { margin-top: 10px; font-size: clamp(19px, 4.5vw, 23px); }
  .request-benefits { gap: 4px; }
  .request-free { margin-top: 12px; }
  .request-lettermark { width: clamp(72px, 17.8vw, 102px); margin-right: 3px; }
  .request-postmark i { width: 65%; }
  .request-surface { padding-block-start: 21px; }
  .request-surface::before { width: auto; height: 1px; top: 0; bottom: auto; inset-inline: var(--card-pad); background: linear-gradient(90deg,#c3a2d257, #bb9fca18); }
  .request-form { gap: 14px; }
}
@media (max-width: 270px) {
  .request-intro { display: block; }
  .request-lettermark { width: 60px; margin: 0 6px 15px auto; }
  .request-title-lead { font-size: 26px; overflow-wrap: anywhere; }
  .request-title-detail { font-size: 17px; }
  .request-actions > * { white-space: normal; overflow-wrap: anywhere; }
}
@media (forced-colors: active) {
  .request-lettermark { display: none; }
}
