:root{
  --ap-contact-green:var(--green,var(--accent,#0d5a45));
  --ap-contact-green-dark:var(--green-dark,var(--accent-dark,#073e31));
  --ap-contact-paper:var(--paper-2,#fbf8f2);
  --ap-contact-ink:var(--ink,#102a21);
  --ap-contact-muted:var(--muted,#66736d);
  --ap-contact-line:var(--line,#dedbd3);
}
.ap-contact-bar{
  border-top:1px solid var(--ap-contact-line);
  border-bottom:1px solid var(--ap-contact-line);
  background:linear-gradient(135deg,var(--ap-contact-paper),#fffdfa);
}
.ap-contact-bar-inner{
  width:min(92%,1360px);
  margin:0 auto;
  padding:20px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.ap-contact-bar-copy strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:1.15rem;font-weight:500;color:var(--ap-contact-ink)}
.ap-contact-bar-copy span{display:block;margin-top:4px;color:var(--ap-contact-muted);font-size:.76rem;line-height:1.45}
.ap-contact-bar-button{
  flex:0 0 auto;
  display:inline-flex;align-items:center;gap:8px;
  min-height:40px;padding:9px 14px;
  border:1px solid var(--ap-contact-green);border-radius:8px;
  background:var(--ap-contact-green);color:#fff;
  font:800 .78rem/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  cursor:pointer;transition:background .15s ease,transform .15s ease;
}
.ap-contact-bar-button:hover{background:var(--ap-contact-green-dark);transform:translateY(-1px)}
.ap-contact-bar-button:focus-visible{outline:3px solid rgba(13,90,69,.18);outline-offset:3px}
.ap-contact-bar-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.ap-contact-backdrop{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(8,28,22,.58);
  backdrop-filter:blur(4px);
}
.ap-contact-backdrop.open{display:flex}
.ap-contact-modal{
  width:min(720px,100%);
  max-height:min(760px,calc(100vh - 48px));
  overflow:auto;
  border:1px solid var(--ap-contact-line);
  border-radius:16px;
  background:#fffdfa;
  color:var(--ap-contact-ink);
  box-shadow:0 26px 80px rgba(7,35,27,.26);
}
.ap-contact-modal-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-start;
  padding:24px 26px 20px;
  border-bottom:1px solid var(--ap-contact-line);
  background:rgba(255,253,250,.97);
  backdrop-filter:blur(10px);
}
.ap-contact-modal-head h2{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:1.8rem;font-weight:500;line-height:1.1}
.ap-contact-modal-head p{margin:7px 0 0;color:var(--ap-contact-muted);font-size:.78rem}
.ap-contact-close{
  width:38px;height:38px;flex:0 0 auto;
  border:1px solid var(--ap-contact-line);border-radius:9px;
  background:var(--ap-contact-paper);color:var(--ap-contact-muted);
  cursor:pointer;font-size:1.3rem;line-height:1;
}
.ap-contact-modal-body{padding:24px 26px 28px}
.ap-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ap-contact-field{display:grid;gap:6px}
.ap-contact-field.full{grid-column:1/-1}
.ap-contact-field label{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--ap-contact-muted);font-weight:900}
.ap-contact-field input,.ap-contact-field select,.ap-contact-field textarea{
  width:100%;border:1px solid #d8d6d0;background:#fff;color:var(--ap-contact-ink);
  border-radius:8px;padding:11px 12px;outline:0;font:inherit;
}
.ap-contact-field textarea{min-height:150px;resize:vertical;line-height:1.55}
.ap-contact-field input:focus,.ap-contact-field select:focus,.ap-contact-field textarea:focus{border-color:#9ab6ab;box-shadow:0 0 0 3px rgba(13,90,69,.08)}
.ap-contact-help{margin:5px 0 0;color:var(--ap-contact-muted);font-size:.7rem;line-height:1.5}
.ap-contact-help a{text-decoration:underline}
.ap-contact-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.ap-contact-submit{border:1px solid var(--ap-contact-green);background:var(--ap-contact-green);color:#fff;border-radius:8px;padding:10px 15px;font-weight:850;font-size:.8rem;cursor:pointer}
.ap-contact-submit:hover{background:var(--ap-contact-green-dark)}
.ap-contact-submit:disabled{opacity:.6;cursor:wait}
.ap-contact-status{font-size:.76rem;color:var(--ap-contact-muted)}
.ap-contact-status.success{color:var(--ap-contact-green)}
.ap-contact-status.error{color:#a13d32}
body.ap-contact-modal-open{overflow:hidden}

@media(max-width:640px){
  .ap-contact-bar-inner{width:min(100% - 28px,1360px);padding:18px 0;align-items:flex-start;flex-direction:column;gap:12px}
  .ap-contact-bar-button{width:100%;justify-content:center}
  .ap-contact-backdrop{padding:10px;align-items:flex-end}
  .ap-contact-modal{max-height:calc(100vh - 20px);border-radius:15px 15px 0 0}
  .ap-contact-modal-head,.ap-contact-modal-body{padding-left:18px;padding-right:18px}
  .ap-contact-grid{grid-template-columns:1fr}
  .ap-contact-field.full{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){.ap-contact-bar-button{transition:none}}
@media print{.ap-contact-bar,.ap-contact-backdrop{display:none!important}}
