/* ECM Real Estate Services — rebuild faithful to original */

:root {
  --bg: #ffffff;
  --band-grey: #ebebeb;          /* Directors / Let's Talk band */
  --band-dark: #303030;          /* About Us */
  --band-darker: #1c1c1c;        /* Subscribe */
  --band-darkest: #0e0e0e;       /* Footer */
  --ink: #2c2c2c;
  --ink-soft: #555555;
  --ink-mute: #8c8c8c;
  --rule: rgba(0,0,0,0.12);

  --accent: #b9302c;              /* brick red from original */
  --accent-hover: #a02824;
  --accent-ink: #ffffff;
  --info-blue: #2f6e9e;            /* "lending highlights" blue */

  --sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --pad-x: clamp(20px, 5vw, 80px);
  --max-w: 1180px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--max-w); margin: 0 auto; padding-inline: var(--pad-x); }

/* ───── Section heading (centered uppercase + small red underline) ───── */
.sect-head {
  text-align: center;
  margin-bottom: 56px;
}
.sect-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: inherit;
}
.sect-head .rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin: 14px auto 0;
}
.sect-head.light h2 { color: #fff; }

/* ───── Nav (sits over hero, simple) ───── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255,255,255,0.97);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--rule);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-brand img {
  display: block;
  height: 38px;
  width: auto;
  transition: filter 0.3s var(--ease);
}
.nav.is-scrolled .nav-brand img {
  /* Invert the white wordmark to dark while preserving the red dots */
  filter: invert(1) hue-rotate(180deg) brightness(0.92);
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0; padding: 0;
  font-weight: 600;
  font-size: 11px;
}
.nav-links a { position: relative; }
.nav-links a:hover { color: var(--accent); }
@media (max-width: 900px) { .nav-links { display: none; } }

/* Hero logo (large, centered above the headline) */
.hero-logo {
  width: clamp(180px, 22vw, 280px);
  height: auto;
  margin: 0 auto 10px;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.4));
}

/* ───── Hero ───── */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  color: #fff;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
  background-color: #1a1410;
  opacity: 0;
  animation: hero-cycle 14s infinite;
  transform: scale(1.04);
  will-change: opacity, transform;
}
.hero-slide.s1 {
  background-image: url("assets/hero.jpg");
  animation-delay: 0s;
}
.hero-slide.s2 {
  background-image: url("assets/hero-2.jpg");
  background-position: center 55%;
  animation-delay: -7s;
}
@keyframes hero-cycle {
  0%   { opacity: 0; transform: scale(1.08); }
  7%   { opacity: 1; }
  43%  { opacity: 1; transform: scale(1.0); }
  50%  { opacity: 0; transform: scale(1.0); }
  100% { opacity: 0; transform: scale(1.0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; }
  .hero-slide.s1 { opacity: 1; transform: none; }
  .hero-slide.s2 { opacity: 0; }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,6,0.35) 0%, rgba(10,8,6,0.15) 35%, rgba(10,8,6,0.55) 75%, rgba(10,8,6,0.8) 100%),
    radial-gradient(60% 50% at 50% 45%, rgba(0,0,0,0.45), transparent 75%);
  z-index: -1;
}
.hero-inner {
  max-width: 760px;
  padding-inline: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero-rule {
  width: 64px; height: 2px;
  background: var(--accent);
  margin-bottom: 4px;
}
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
}
.hero p {
  margin: 0;
  max-width: 560px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  margin-top: 6px;
}
.btn-apply:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-apply .lock { font-size: 12px; }

/* down chevron */
.hero-chevron {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 22px;
  animation: bob 2.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ───── Welcome band (white, single centered line) ───── */
.welcome {
  text-align: center;
  padding: 70px var(--pad-x);
}
.welcome p {
  margin: 0 auto;
  max-width: 760px;
  font-size: 16px;
  color: var(--ink-soft);
}

/* ───── About (dark band with full-bleed check photo bg) ───── */
.about {
  background-color: var(--band-dark);
  background-image:
    linear-gradient(rgba(20,18,16,0.62), rgba(20,18,16,0.62)),
    url("assets/about-check.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: rgba(255,255,255,0.86);
  padding: 110px var(--pad-x) 130px;
  text-align: center;
  position: relative;
}
.about h2, .about .sect-head h2 { color: #ffffff; }

.about-body {
  max-width: 740px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 1.85;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.about-houses {
  max-width: 980px;
  margin: 40px auto 0;
  aspect-ratio: 1140 / 180;
  background-color: #1a1a1a;
  background-image: url("assets/about-home.jpg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,0.7);
  position: relative;
}

/* Below dark band: two-column highlights + service-aim strip */
.about-after {
  background: var(--bg);
  padding: 60px var(--pad-x) 80px;
}
.about-after-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.about-after-grid .hl {
  color: var(--info-blue);
  font-size: 13px;
  line-height: 1.75;
}
.about-after-grid .aim {
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ink);
  font-style: italic;
}
@media (max-width: 800px) { .about-after-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ───── Directors ───── */
.directors {
  background: var(--band-grey);
  padding: 90px var(--pad-x) 110px;
  text-align: center;
  position: relative;
  z-index: 2;
}
/* Realistic paper-lift shadow under bottom edge.
   Two stacked ellipses: a tight, darker contact shadow + a wider,
   softer ambient halo — mimics how an off-the-page sheet really casts
   light when its corners curl up. */
.directors::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -34px;
  height: 90px;
  background:
    /* tight dark core under the center dip */
    radial-gradient(
      ellipse 30% 70% at 50% 0%,
      rgba(0, 0, 0, 0.60) 0%,
      rgba(0, 0, 0, 0.40) 28%,
      rgba(0, 0, 0, 0.16) 55%,
      transparent 78%
    ),
    /* soft ambient spread, tapering to clear corners */
    radial-gradient(
      ellipse 55% 90% at 50% 0%,
      rgba(0, 0, 0, 0.26) 0%,
      rgba(0, 0, 0, 0.12) 40%,
      transparent 80%
    );
  filter: blur(10px);
  pointer-events: none;
  opacity: 1;
}
.directors-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 920px;
  margin: 0 auto;
}
.director {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.director-photo {
  width: 110px; height: 110px;
  border-radius: 50%;
  background-size: cover;
  background-position: center top;
  background-color: #c9c3b6;
  overflow: hidden;
  box-shadow: 0 6px 22px -10px rgba(0,0,0,0.35);
}
.director-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 6px;
}
.director-role {
  font-size: 12px;
  color: var(--ink-mute);
  font-style: italic;
}
.director-mail {
  margin-top: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.director-mail:hover { background: var(--accent-hover); transform: translateY(-1px); }
@media (max-width: 800px) { .directors-row { grid-template-columns: 1fr; gap: 36px; } }

/* ───── Services (white bg, 2×3 grid of red-icon rows) ───── */
.services {
  background: var(--bg);
  padding: 100px var(--pad-x);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.service {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.service-icon {
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.service:hover .service-icon { background: var(--accent-hover); transform: translateY(-2px); }
.service h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.service p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-soft);
}
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 620px) { .service-grid { grid-template-columns: 1fr; } }

/* ───── Subscribe band ───── */
.subscribe {
  background: var(--band-darker);
  color: #ffffff;
  padding: 70px var(--pad-x) 80px;
  text-align: center;
}
.subscribe h2 {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.subscribe-form {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
}
.subscribe-form input {
  border: 0;
  background: #ffffff;
  font-family: inherit;
  font-size: 13px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
}
.subscribe-form input::placeholder { color: var(--ink-mute); }
.subscribe-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background 0.3s var(--ease);
}
.subscribe-form button:hover { background: var(--accent-hover); }
.subscribe .fineprint {
  margin: 18px auto 0;
  max-width: 520px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}
.subscribe .fineprint a { color: rgba(255,255,255,0.7); text-decoration: underline; }
@media (max-width: 700px) { .subscribe-form { grid-template-columns: 1fr; } }

/* ───── Loan Programs table ───── */
.loans {
  background: var(--bg);
  padding: 100px var(--pad-x);
  text-align: center;
}
.loans-table-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  overflow-x: auto;
}
.loans-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
.loans-table thead th {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 18px;
  background: #f4f4f4;
  border-bottom: 2px solid var(--ink);
  text-align: left;
  vertical-align: middle;
}
.loans-table thead th:first-child {
  background: transparent;
  border-bottom: 2px solid transparent;
}
.loans-table tbody th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-align: left;
  padding: 18px 18px;
  border-bottom: 1px solid var(--rule);
  width: 18%;
  background: #fafafa;
}
.loans-table tbody td {
  padding: 18px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-soft);
  vertical-align: top;
}
.loans-table tbody td strong {
  color: var(--ink);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.loans-table tbody tr:nth-child(odd) td { background: #fcfcfc; }
.loans-apply {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
@media (max-width: 760px) {
  .loans-table thead { display: none; }
  .loans-table, .loans-table tbody, .loans-table tr, .loans-table td, .loans-table tbody th { display: block; width: 100%; }
  .loans-table tr { margin-bottom: 18px; border: 1px solid var(--rule); }
  .loans-table tbody th { background: #f4f4f4; }
  .loans-table tbody td::before {
    content: attr(data-col);
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
    font-weight: 700;
  }
}

/* ───── Let's Talk ───── */
.talk {
  background-color: #2c2c2c;
  background-image:
    linear-gradient(rgba(20,18,16,0.62), rgba(20,18,16,0.74)),
    url("assets/state-street.jpg");
  background-size: cover;
  background-position: center 35%;
  background-attachment: fixed;
  color: #ffffff;
  padding: 110px var(--pad-x);
  text-align: center;
  position: relative;
}
.talk .sect-head h2 { color: #fff; }
.talk .sect-head .rule { background: #fff; }
.talk-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.talk-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.talk-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  color: #fff;
  font-size: 30px;
  line-height: 1;
}
.talk-col h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.talk-col p {
  margin: 0;
  max-width: 32ch;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}
.talk-col .info { font-size: 13px; color: rgba(255,255,255,0.95); line-height: 1.7; }
.talk-col .info a { color: #fff; }
.talk-col .info a:hover { text-decoration: underline; }
@media (max-width: 800px) { .talk-row { grid-template-columns: 1fr; } }

/* ───── Contact form ───── */
.contact {
  background: var(--bg);
  padding: 100px var(--pad-x);
  text-align: center;
}
.contact-intro {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.contact-intro a { color: var(--accent); }
.contact-form {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.contact-form .field { position: relative; }
.contact-form .field-msg { grid-row: span 3; }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--rule);
  background: #fafafa;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--ink);
  background: #fff;
}
.contact-form textarea {
  resize: vertical;
  min-height: 168px;
  height: 100%;
}
.contact-form .field.is-error input,
.contact-form .field.is-error textarea,
.contact-form .field.is-error select {
  border-color: var(--accent);
  background: #fff5f4;
}
.contact-form .err {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin-top: 14px;
}
.success-pane {
  grid-column: 1 / -1;
  border: 1px solid var(--rule);
  background: #fafafa;
  padding: 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.success-pane h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}
.success-pane p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.success-pane button {
  align-self: center;
  margin-top: 10px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
@media (max-width: 800px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form .field-msg { grid-row: auto; }
  .contact-form textarea { min-height: 140px; }
}

/* ───── Footer ───── */
.footer {
  background: var(--band-darkest);
  color: rgba(255,255,255,0.65);
  text-align: center;
  padding: 26px 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.footer .rights { margin-top: 4px; opacity: 0.6; font-size: 11px; }

/* ───── Reveal animations ───── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Density variations */
body[data-density="compact"] .section,
body[data-density="compact"] .about,
body[data-density="compact"] .directors,
body[data-density="compact"] .services,
body[data-density="compact"] .subscribe,
body[data-density="compact"] .loans,
body[data-density="compact"] .talk,
body[data-density="compact"] .contact { padding-top: 60px; padding-bottom: 70px; }
body[data-density="comfy"] .about,
body[data-density="comfy"] .directors,
body[data-density="comfy"] .services,
body[data-density="comfy"] .loans,
body[data-density="comfy"] .talk,
body[data-density="comfy"] .contact { padding-top: 130px; padding-bottom: 140px; }

/* ───── Application modal ───── */
.app-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  animation: appFadeIn 0.2s var(--ease);
}
@keyframes appFadeIn { from { opacity: 0; } to { opacity: 1; } }
.app-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: #fff;
  color: var(--ink);
  border-top: 4px solid var(--accent);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  padding: 36px 36px 28px;
  animation: appSlideIn 0.25s var(--ease);
}
@keyframes appSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.app-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: var(--ink-mute);
  padding: 6px 10px;
  cursor: pointer;
}
.app-modal-close:hover { color: var(--ink); }
.app-modal-head { text-align: center; margin-bottom: 22px; }
.app-modal-head h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.app-modal-head p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.app-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.app-section-label {
  grid-column: 1 / -1;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.app-section-label:first-of-type { margin-top: 0; }

.app-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.app-field-wide { grid-column: 1 / -1; }
.app-field-full { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.app-field label,
.app-field-full label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.app-field input,
.app-field select,
.app-field-full input,
.app-field-full textarea,
.app-field-full select {
  width: 100%;
  height: 44px;
  border: 1px solid var(--rule);
  background: #fafafa;
  padding: 0 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  box-sizing: border-box;
}
.app-field-full textarea {
  height: auto;
  padding: 12px 14px;
}
.app-field select,
.app-field-full select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23555' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.app-field input:focus,
.app-field select:focus,
.app-field-full input:focus,
.app-field-full textarea:focus,
.app-field-full select:focus {
  border-color: var(--ink);
  background: #fff;
}
.app-field-full textarea {
  resize: vertical;
  min-height: 110px;
}
.app-field.is-error input,
.app-field.is-error select {
  border-color: var(--accent);
  background: #fff5f4;
}
.app-field .err {
  position: absolute;
  top: -2px;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.app-submit-error {
  grid-column: 1 / -1;
  color: var(--accent);
  font-size: 13px;
  text-align: center;
  padding: 10px;
  background: #fff5f4;
  border: 1px solid var(--accent);
}

.app-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.app-cancel {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 12px 26px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
}
.app-cancel:hover { background: var(--ink); color: #fff; }
.app-cancel:disabled { opacity: 0.5; cursor: not-allowed; }

.app-disclosure {
  grid-column: 1 / -1;
  margin: 14px 0 0;
  font-size: 11px;
  color: var(--ink-mute);
  text-align: center;
  line-height: 1.6;
}

.app-success {
  text-align: center;
  padding: 20px 0 10px;
}
.app-success h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.app-success p {
  margin: 0 auto 12px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}
.app-success-sub { font-size: 13px !important; }
.app-success-sub a { color: var(--accent); }
.app-success .btn-apply { margin-top: 14px; }

@media (max-width: 720px) {
  .app-modal { padding: 28px 20px 22px; }
  .app-form { grid-template-columns: 1fr; }
  .app-modal-head h3 { font-size: 16px; }
}
