
.afform.afform {

  --af-ink:         #14161a;
  --af-muted:       #555d68;
  --af-card:        #ffffff;
  --af-line:        #7d848e;
  --af-accent:      #97772a;
  --af-accent-soft: #fbf4e2;
  --af-bad:         #a4282b;

  color: var(--af-ink);
  background: var(--af-card);
  display: grid;
  gap: .85rem;
  border: 1px solid var(--af-line);
  border-radius: 12px;
  padding: 1.15rem;
}

.afform.afform b,
.afform.afform label,
.afform.afform legend,
.afform.afform .afq,
.afform.afform .aflabel,
.afform.afform input,
.afform.afform select,
.afform.afform textarea { color: var(--af-ink); }

.aftop b { display: block; font-size: 1.15rem; line-height: 1.25; }
.aftop span { display: block; color: var(--af-muted); font-size: .9rem;
              margin-top: .2rem; }

.afprog { display: flex; align-items: center; gap: .6rem; font-size: .8rem;
          color: var(--af-muted); }
.afbars { display: flex; gap: .25rem; flex: 1; }
.afbars i { flex: 1; height: 3px; border-radius: 2px; background: #d7dbe1; }
.afbars i.on { background: var(--af-accent); }

.afstep { display: grid; gap: .8rem; }
.afstep[hidden] { display: none; }
.afq { font-weight: 600; font-size: 1.02rem; margin: 0; }

.affield { display: grid; gap: .3rem; }
.affield label, .aflabel { font-size: .85rem; font-weight: 600; }
.afopt { font-weight: 400; color: var(--af-muted); }

.afform input[type="text"], .afform input[type="tel"],
.afform input[type="email"], .afform select, .afform textarea {
  font: inherit;
  padding: .62rem .7rem;
  border: 1px solid var(--af-line);
  border-radius: 8px;
  background: var(--af-card);
  color: var(--af-ink);
  width: 100%;
}
.afform ::placeholder { color: #6b727c; opacity: 1; }
.afform textarea { resize: vertical; min-height: 4.5rem; }
.afform :focus-visible { outline: 2px solid var(--af-accent); outline-offset: 1px; }

.afform input:user-invalid, .afform select:user-invalid,
.afform textarea:user-invalid { border-color: var(--af-bad); }

.aftiles { border: 0; padding: 0; margin: 0; display: grid;
           grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
           gap: .5rem; }
.aftiles legend { font-size: .85rem; font-weight: 600; padding: 0 0 .4rem; }
.aftile { position: relative; display: flex; }
.aftile input { position: absolute; opacity: 0; width: 100%; height: 100%;
                margin: 0; cursor: pointer; }
.aftile span {
  flex: 1; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: .55rem .6rem;
  border: 1px solid var(--af-line); border-radius: 9px;
  background: var(--af-card);
  color: var(--af-ink);
  font-size: .9rem; line-height: 1.2;
  transition: border-color .12s, background .12s;
}
.aftile input:hover + span { border-color: var(--af-accent); }

.aftile input:checked + span {
  border-color: var(--af-accent);
  border-width: 2px;
  background: var(--af-accent-soft);
  color: var(--af-ink);
  font-weight: 600;
}
.aftile input:focus-visible + span { outline: 2px solid var(--af-accent);
                                     outline-offset: 1px; }

.afsr { position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.afhints { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.afhints[hidden] { display: none; }
.afhint {
  font: inherit; font-size: .82rem;
  padding: .35rem .7rem; min-height: 32px;
  border: 1px solid var(--af-line); border-radius: 999px;
  background: var(--af-card); color: var(--af-ink); cursor: pointer;
}
.afhint[aria-pressed="true"] { border-color: var(--af-accent); border-width: 2px;
  background: var(--af-accent-soft); color: var(--af-ink); font-weight: 600; }

.afcheck { display: grid; grid-template-columns: auto 1fr; gap: .55rem;
           align-items: start; font-size: .82rem; line-height: 1.4;
           color: var(--af-ink); }
.afcheck input { margin-top: .15rem; width: 18px; height: 18px; }

.afconsent { font-size: .74rem; color: var(--af-muted); margin: 0;
             line-height: 1.45; }

.afnav { display: flex; align-items: center; gap: .6rem; }
.afnav .btn { flex: 1; }
.afback { font: inherit; font-size: .88rem; background: none; border: 0;
          color: var(--af-muted); cursor: pointer; padding: .5rem .2rem;
          min-height: 44px; text-decoration: underline; }
.afback:hover { color: var(--af-ink); }
.afback[hidden], .afnext[hidden], .afsend[hidden] { display: none; }

.afform .afnext, .afform .afsend {
  background: #D8B761; color: #14161a; border: 0; font-weight: 700;
}
.afform .afnext:hover, .afform .afsend:hover { background: #c9a64e; }

.afnote { background: #fdf3f3; color: #7a1d20; border: 1px solid #e9c9c9;
          border-left: 3px solid var(--af-bad);
          border-radius: 8px; padding: .6rem .7rem; font-size: .85rem; }

.pac-container { z-index: 10000; border-radius: 8px; border: 1px solid #c9ced6;
                 box-shadow: 0 10px 30px rgba(0,0,0,.14); font: inherit; }

@media (prefers-reduced-motion: reduce) {
  .aftile span, .afhint { transition: none; }
}

.afwhy { display: block; font-size: .78rem; color: var(--af-muted);
         line-height: 1.4; margin-top: .15rem; }
.afproof { display: block; font-size: .76rem; color: var(--af-muted);
           margin-top: .45rem; }
