/* Appily Twenty — Petal Desk contact (pd-) */

.page-pd-desk {
  --pd-wine: #2d1b2e;
  --pd-wine-soft: #4a3048;
  --pd-blush: #e8c4c4;
  --pd-blush-deep: #c99595;
  --pd-mint: #7eb8a4;
  --pd-mint-dark: #5a9688;
  --pd-cream: #faf6f1;
  --pd-paper: #fffefb;
  --pd-line-blue: rgba(126, 184, 164, 0.15);
  --pd-margin-red: rgba(196, 69, 105, 0.35);
  --pd-ink: #1a1418;
  --pd-muted: #6b5f66;
  --pd-line: rgba(26, 20, 24, 0.1);
  --pd-shadow: 0 20px 48px rgba(45, 27, 46, 0.09);
  --pd-serif: 'Instrument Serif', Georgia, serif;
  --pd-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--pd-cream);
  font-family: var(--pd-sans);
}

.page-pd-desk .page-main { padding-top: 0; }

/* ── Hero ── */
.pd-hero {
  position: relative;
  padding: clamp(36px, 5vw, 56px) 0 clamp(28px, 4vw, 40px);
  background:
    radial-gradient(ellipse 70% 55% at 88% 12%, rgba(126, 184, 164, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 85%, rgba(232, 196, 196, 0.32), transparent 50%),
    linear-gradient(168deg, var(--pd-paper) 0%, var(--pd-cream) 100%);
  border-bottom: 1px solid var(--pd-line);
  overflow: hidden;
}

.pd-hero-petals {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 38%, rgba(232, 196, 196, 0.2) 0 12px, transparent 12px),
    radial-gradient(circle at 78% 28%, rgba(126, 184, 164, 0.12) 0 16px, transparent 16px);
  pointer-events: none;
}

.pd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
}

.pd-kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pd-mint-dark);
}

.pd-hero-copy h1 {
  margin: 0 0 12px;
  font-family: var(--pd-serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.06;
  color: var(--pd-ink);
  letter-spacing: -0.03em;
}

.pd-hero-copy h1 em {
  font-style: italic;
  color: var(--pd-wine);
}

.pd-lede {
  margin: 0 0 20px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--pd-muted);
  max-width: 44ch;
}

.pd-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-topics li {
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pd-wine);
  background: rgba(232, 196, 196, 0.35);
  border: 1px solid rgba(201, 149, 149, 0.35);
  border-radius: 999px;
}

/* Mailbox */
.pd-mailbox {
  text-align: center;
  min-width: 140px;
}

.pd-mailbox-box {
  position: relative;
  width: 100px;
  height: 72px;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, #5a9688, var(--pd-mint-dark));
  border-radius: 4px 4px 8px 8px;
  box-shadow: 0 8px 20px rgba(45, 27, 46, 0.15);
}

.pd-mailbox-slot {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 28px;
  height: 6px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 2px;
}

.pd-mailbox-flag {
  position: absolute;
  right: -4px;
  top: -20px;
  width: 4px;
  height: 28px;
  background: var(--pd-wine);
  transform-origin: bottom center;
  transform: rotate(-25deg);
  animation: pd-flag 3s ease-in-out infinite;
}

.pd-mailbox-flag::after {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-left-color: var(--pd-blush-deep);
  border-right: 0;
}

@keyframes pd-flag {
  0%, 100% { transform: rotate(-25deg); }
  50% { transform: rotate(-15deg); }
}

.pd-mailbox-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-muted);
  margin-bottom: 4px;
}

.pd-mailbox-status {
  display: block;
  font-family: var(--pd-serif);
  font-size: 1.1rem;
  color: var(--pd-wine);
  margin-bottom: 6px;
}

.pd-mailbox-code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--pd-mint-dark);
}

/* ── Floor layout ── */
.pd-floor {
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 7vw, 80px);
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}

/* Stationery form */
.pd-stationery {
  position: relative;
  background: var(--pd-paper);
  border: 1px solid var(--pd-line);
  border-radius: 4px;
  padding: 32px 28px 36px;
  box-shadow: var(--pd-shadow);
  overflow: hidden;
}

.pd-stationery::before {
  content: "";
  position: absolute;
  left: 48px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pd-margin-red);
  pointer-events: none;
  z-index: 0;
}

.pd-lines {
  position: absolute;
  inset: 80px 0 0 56px;
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent 27px,
    var(--pd-line-blue) 27px,
    var(--pd-line-blue) 28px
  );
  pointer-events: none;
  z-index: 0;
}

.pd-clip {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 48px;
  height: 32px;
  margin-left: -24px;
  background: linear-gradient(180deg, #888, #555);
  border-radius: 8px 8px 2px 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.pd-clip::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -8px;
  height: 10px;
  background: #666;
  border-radius: 0 0 4px 4px;
}

.pd-stationery-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding-left: 24px;
}

.pd-stationery-tag {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pd-mint-dark);
}

.pd-stationery-head h2 {
  margin: 0;
  font-family: var(--pd-serif);
  font-size: 1.65rem;
  font-weight: 400;
  color: var(--pd-ink);
}

.pd-stationery-ref {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pd-muted);
  padding-top: 4px;
}

/* Notices */
.pd-notice {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 16px 18px;
  border-radius: 12px;
  margin-left: 24px;
}

.pd-notice-success {
  background: rgba(126, 184, 164, 0.2);
  border: 1px solid rgba(126, 184, 164, 0.45);
}

.pd-notice-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  background: var(--pd-paper);
  border-radius: 50%;
  color: var(--pd-mint-dark);
}

.pd-notice-success strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pd-wine);
}

.pd-notice-success p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--pd-muted);
}

.pd-notice-error {
  background: rgba(196, 69, 105, 0.1);
  border: 1px solid rgba(196, 69, 105, 0.25);
  color: #a83254;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Form */
.pd-form {
  position: relative;
  z-index: 1;
  padding-left: 24px;
}

.pd-fields {
  display: grid;
  gap: 16px;
}

.pd-fields-duo {
  grid-template-columns: repeat(2, 1fr);
}

.pd-field-wide {
  grid-column: 1 / -1;
}

.pd-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pd-muted);
}

.pd-optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.8;
}

.pd-field input,
.pd-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--pd-line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  background: rgba(255, 254, 251, 0.85);
  color: var(--pd-ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pd-field input:focus,
.pd-field textarea:focus {
  outline: none;
  border-color: var(--pd-mint);
  box-shadow: 0 0 0 3px rgba(126, 184, 164, 0.2);
  background: var(--pd-paper);
}

.pd-field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.pd-form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px dashed var(--pd-line);
}

.pd-fine {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pd-muted);
}

.pd-fine a {
  color: var(--pd-wine);
  font-weight: 600;
}

/* Buttons */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pd-btn-primary {
  background: var(--pd-wine);
  color: #fff;
}

.pd-btn-primary:hover {
  background: var(--pd-wine-soft);
  color: #fff;
}

.pd-btn-soft {
  background: rgba(126, 184, 164, 0.2);
  color: var(--pd-wine);
  border: 1.5px solid rgba(126, 184, 164, 0.45);
}

.pd-btn-soft:hover {
  background: rgba(126, 184, 164, 0.35);
}

.pd-btn-outline {
  background: transparent;
  color: var(--pd-wine);
  border: 1.5px solid var(--pd-blush-deep);
}

.pd-btn-outline:hover {
  background: rgba(232, 196, 196, 0.25);
}

/* Envelope stack sidebar */
.pd-envelopes {
  position: sticky;
  top: 100px;
}

.pd-envelopes-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.pd-envelopes-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  background: rgba(232, 196, 196, 0.35);
  border-radius: 50%;
  color: var(--pd-wine);
  flex-shrink: 0;
}

.pd-envelopes-head h2 {
  margin: 0 0 4px;
  font-family: var(--pd-serif);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--pd-ink);
}

.pd-envelopes-head p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pd-muted);
}

.pd-stack {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.pd-card {
  position: relative;
  padding: 16px 18px 16px 22px;
  background: var(--pd-paper);
  border: 1px solid var(--pd-line);
  border-radius: 4px 12px 12px 4px;
  box-shadow: 0 4px 14px rgba(45, 27, 46, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.pd-card:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(45, 27, 46, 0.1);
}

.pd-card-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background: linear-gradient(180deg, rgba(232, 196, 196, 0.5), transparent);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  pointer-events: none;
  opacity: 0.6;
}

.pd-card-1 { margin-left: 0; }
.pd-card-2 { margin-left: 6px; }
.pd-card-3 { margin-left: 12px; }
.pd-card-4 { margin-left: 8px; }
.pd-card-5 { margin-left: 14px; }
.pd-card-6 { margin-left: 10px; }

.pd-card-key {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pd-mint-dark);
  margin-bottom: 4px;
}

.pd-card-val {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pd-ink);
  line-height: 1.45;
  word-break: break-word;
  text-decoration: none;
}

a.pd-card-val:hover {
  color: var(--pd-wine);
}

.pd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .pd-hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pd-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .pd-topics {
    justify-content: center;
  }

  .pd-mailbox {
    margin: 0 auto;
  }

  .pd-layout {
    grid-template-columns: 1fr;
  }

  .pd-envelopes {
    position: static;
  }

  .pd-fields-duo {
    grid-template-columns: 1fr;
  }

  .pd-field-wide {
    grid-column: auto;
  }

  .pd-card-1,
  .pd-card-2,
  .pd-card-3,
  .pd-card-4,
  .pd-card-5,
  .pd-card-6 {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .pd-stationery {
    padding: 28px 18px 32px;
  }

  .pd-stationery::before {
    left: 28px;
  }

  .pd-lines {
    left: 36px;
  }

  .pd-stationery-head,
  .pd-form,
  .pd-notice {
    padding-left: 16px;
    margin-left: 12px;
  }

  .pd-form-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-btn-primary {
    width: 100%;
  }

  .pd-links {
    flex-direction: column;
  }

  .pd-links .pd-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pd-mailbox-flag,
  .pd-card {
    animation: none;
    transition: none;
  }
}
