/*
 * Elena Doroshenko — final art-direction compatibility layer v1.6.0
 *
 * The complete visual system lives in site.css. This file intentionally contains
 * only the last-mile polish for forms, modals and internal pages. Keeping the
 * structural layout in one stylesheet prevents cascade conflicts during updates.
 */

/* Forms: make a legally complete form feel like a calm first conversation. */
.ed-modal__dialog {
  background:
    linear-gradient(145deg, rgba(255,253,248,.985), rgba(246,239,229,.975)),
    url("../decor/paper-grain.svg");
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 28px 28px 74px 28px;
  box-shadow: 0 34px 110px rgba(4,28,55,.38);
}
.ed-modal__dialog::before {
  position: absolute;
  z-index: -1;
  top: -95px;
  right: -135px;
  width: 390px;
  height: 330px;
  content: "";
  background: url("../decor/watercolor-left.svg") center / contain no-repeat;
  opacity: .17;
  pointer-events: none;
}
.ed-modal__eyebrow { letter-spacing: .16em; }
.ed-modal h2 { letter-spacing: -.035em; }

.edf-form {
  position: relative;
  padding: 24px;
  overflow: hidden;
  background: rgba(255,253,248,.78);
  border: 1px solid rgba(8,43,83,.11);
  border-radius: 20px 20px 54px 20px;
  box-shadow: 0 22px 62px rgba(4,28,55,.09);
}
.edf-form::before {
  position: absolute;
  z-index: 0;
  right: -120px;
  bottom: -145px;
  width: 360px;
  height: 300px;
  content: "";
  background: url("../decor/decision-loop.svg") center / contain no-repeat;
  opacity: .11;
  pointer-events: none;
}
.edf-form > * { position: relative; z-index: 1; }
.edf-field > span { color: var(--ed-navy); font-weight: 720; }
.edf-field input,
.edf-field select,
.edf-field textarea {
  min-height: 48px;
  color: var(--ed-ink);
  background: rgba(255,255,255,.82);
  border-color: rgba(8,43,83,.16);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.edf-field textarea { min-height: 118px; }
.edf-field input:focus,
.edf-field select:focus,
.edf-field textarea:focus {
  border-color: var(--ed-aqua-deep);
  box-shadow: 0 0 0 4px rgba(102,185,179,.14);
}
.edf-consent-box {
  background: rgba(242,235,224,.72);
  border-color: rgba(149,104,45,.19);
  border-radius: 16px 16px 38px 16px;
}
.edf-consent { min-height: 44px; }
.edf-consent input { width: 20px; height: 20px; margin-top: 2px; }
.edf-submit {
  min-height: 52px;
  border-radius: 999px;
  box-shadow: 0 16px 34px rgba(7,31,60,.20);
}

/* Internal pages inherit the same paper-and-watercolour world as the homepage. */
.ed-content-page,
.ed-page-section {
  background-color: var(--ed-cream);
  background-image: url("../decor/paper-grain.svg");
  background-size: 240px 240px;
}
.ed-entry-header {
  background: rgba(255,253,248,.76);
  border-color: rgba(8,43,83,.10);
  backdrop-filter: blur(8px);
}
.ed-content-page .ed-entry-content > h2,
.ed-page-section h2 { letter-spacing: -.035em; }

/* Compact accessibility-safe motion. */
@media (prefers-reduced-motion: reduce) {
  .ed-modal__dialog,
  .edf-form { transform: none !important; }
}

@media (max-width: 760px) {
  .ed-modal { padding: 9px; }
  .ed-modal__dialog {
    padding: 26px 18px 22px;
    border-radius: 20px 20px 44px 20px;
  }
  .edf-form {
    padding: 18px 15px;
    border-radius: 17px 17px 40px 17px;
  }
}
