/* UsefulKits global footer, Contact form and About modal — R3 */

/* Contact is the same footer control as Privacy: same font, box, spacing and hover. */
.standard-site-footer .footer-contact-link {
  appearance: none !important;
  -webkit-appearance: none !important;
  min-height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 14px !important;
  margin: 0 !important;
  border: 1px solid #d1dce5 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: #45586a !important;
  font-family: inherit !important;
  font-size: .84rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  box-shadow: 0 2px 7px rgba(23,59,89,.03) !important;
  cursor: pointer !important;
}
.standard-site-footer .footer-contact-link:hover {
  border-color: #aebfcd !important;
  background: #f7fafc !important;
  color: #173b59 !important;
}
@media (max-width:700px) {
  .standard-site-footer .footer-contact-link { flex: 1 1 auto !important; }
}

.contact-dialog {
  width: min(760px, calc(100vw - 32px));
  height: min(88dvh, 780px);
  max-height: min(88dvh, 780px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: #20313d;
  background: transparent;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(13,48,76,.28);
}
.contact-dialog::backdrop { background: rgba(12,35,57,.64); backdrop-filter: blur(7px); }
.contact-card {
  box-sizing: border-box;
  height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden;
  border: 1px solid rgba(44,114,166,.2); border-radius: 28px;
  background: linear-gradient(180deg,#e4f3fb 0%,#eff8fd 54%,#e7f4fb 100%);
  font-family: inherit;
}
.contact-modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; padding:28px 30px 24px; color:#173b59; border-bottom:1px solid rgba(44,114,166,.16); background:linear-gradient(135deg,#d8edf8 0%,#c9e6f5 100%); }
.contact-title-wrap { display:flex; align-items:flex-start; gap:18px; }
.contact-icon { flex:0 0 52px; width:52px; height:52px; display:grid; place-items:center; border:1px solid rgba(29,104,153,.18); border-radius:16px; color:#1d6899; background:rgba(255,255,255,.62); }
.contact-icon svg { width:29px !important; height:29px !important; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.contact-modal-header .eyebrow { margin:0 0 5px; color:#1d6899; font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.contact-modal-header h2 { margin:0; color:#173b59; font-size:clamp(1.45rem,3vw,2rem); line-height:1.15; }
.contact-modal-header p:last-child { margin:8px 0 0; color:#4f6d82; }
.contact-close { flex:0 0 42px; width:42px; height:42px; padding:0; border:1px solid rgba(29,104,153,.14); border-radius:50%; color:#173b59; background:rgba(255,255,255,.68); font-family:inherit; font-size:27px; line-height:1; cursor:pointer; }
.contact-close:hover { background:#fff; }
.contact-modal-body { min-height:0; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; -webkit-overflow-scrolling:touch; padding:24px 30px 28px; }
.contact-fields { position:relative; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:18px; border:1px solid rgba(98,157,194,.24); border-radius:18px; background:rgba(255,255,255,.78); box-shadow:0 10px 26px rgba(32,91,128,.06); }
.contact-fields label { display:grid; gap:7px; }
.contact-fields label > span { color:#31536d; font-size:.82rem; font-weight:800; }
.contact-field-full { grid-column:1/-1; }
.contact-fields input,.contact-fields textarea { box-sizing:border-box; width:100%; border:1px solid #bdd3e1; border-radius:12px; color:#20313d; background:rgba(255,255,255,.92); outline:none; font:inherit; transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.contact-fields input { min-height:48px; padding:10px 13px; }
.contact-fields textarea { min-height:150px; padding:12px 13px; resize:vertical; }
.contact-fields input:focus,.contact-fields textarea:focus { border-color:#1d6899; background:#fff; box-shadow:0 0 0 3px rgba(29,104,153,.13); }
.contact-status { min-height:1.35em; margin:12px 2px 0; font-size:.86rem; font-weight:750; }
.contact-status:empty { display:none; }
.contact-status[data-state="pending"] { color:#173b59; }
.contact-status[data-state="success"] { color:#18794e; }
.contact-status[data-state="error"] { color:#a13636; }
.contact-modal-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:18px 30px; border-top:1px solid rgba(44,114,166,.16); background:rgba(218,238,249,.92); }
.contact-note { margin:0; color:#526f83; font-size:.9rem; }
.contact-submit { min-height:44px; display:inline-flex; align-items:center; justify-content:center; padding:10px 18px; border:1px solid #173b59; border-radius:11px; background:#173b59; color:#fff; font:inherit; font-size:.88rem; font-weight:800; line-height:1; cursor:pointer; white-space:nowrap; }
.contact-submit:hover { background:#0f2f49; }
.contact-submit:disabled { cursor:wait; opacity:.68; }
.contact-honeypot { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
@media(max-width:700px){
  .contact-dialog{width:calc(100vw - 20px);height:92dvh;max-height:92dvh;border-radius:22px}
  .contact-card{border-radius:22px}.contact-modal-header{padding:22px 20px 20px}.contact-title-wrap{gap:12px}.contact-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}
  .contact-modal-body{padding:18px}.contact-fields{grid-template-columns:1fr;padding:16px}.contact-field-full{grid-column:auto}.contact-modal-footer{align-items:stretch;flex-direction:column;padding:16px 18px}.contact-submit{width:100%}
}

/* R3 — unified footer controls + About modal */
.standard-site-footer .footer-links > a:not(.button-primary),
.standard-site-footer .footer-links > button {
  appearance:none !important;
  -webkit-appearance:none !important;
  box-sizing:border-box !important;
  min-height:40px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:9px 14px !important;
  margin:0 !important;
  border:1px solid #d1dce5 !important;
  border-radius:11px !important;
  background:#fff !important;
  color:#45586a !important;
  font-family:inherit !important;
  font-size:.84rem !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-decoration:none !important;
  box-shadow:0 2px 7px rgba(23,59,89,.03) !important;
  cursor:pointer !important;
  white-space:nowrap !important;
}
.standard-site-footer .footer-links > a:not(.button-primary):hover,
.standard-site-footer .footer-links > button:hover {
  border-color:#aebfcd !important;
  background:#f7fafc !important;
  color:#173b59 !important;
}
@media(max-width:560px){
  .standard-site-footer .footer-links > a:not(.button-primary),
  .standard-site-footer .footer-links > button { flex:1 1 auto !important; }
}

.about-dialog {
  width:min(760px,calc(100vw - 32px));
  max-height:min(88dvh,780px);
  padding:0;
  border:0;
  border-radius:28px;
  color:#20313d;
  background:transparent;
  overflow:hidden;
  box-shadow:0 28px 90px rgba(13,48,76,.28);
}
.about-dialog::backdrop { background:rgba(12,35,57,.64); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px); }
.about-card {
  box-sizing:border-box;
  max-height:min(88dvh,780px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid rgba(44,114,166,.2);
  border-radius:28px;
  background:linear-gradient(180deg,#e4f3fb 0%,#eff8fd 54%,#e7f4fb 100%);
  font-family:inherit;
}
.about-modal-header {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  padding:28px 30px 24px;
  color:#173b59;
  border-bottom:1px solid rgba(44,114,166,.16);
  background:linear-gradient(135deg,#d8edf8 0%,#c9e6f5 100%);
}
.about-title-wrap { display:flex; align-items:flex-start; gap:18px; }
.about-icon {
  flex:0 0 52px;
  width:52px;
  height:52px;
  display:grid;
  place-items:center;
  border:1px solid rgba(29,104,153,.18);
  border-radius:16px;
  color:#1d6899;
  background:rgba(255,255,255,.62);
}
.about-icon svg { width:29px !important; height:29px !important; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.about-modal-header .eyebrow { margin:0 0 5px; color:#1d6899; font-size:.78rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.about-modal-header h2 { margin:0; color:#173b59; font-size:clamp(1.45rem,3vw,2rem); line-height:1.15; }
.about-modal-header p:last-child { margin:8px 0 0; color:#4f6d82; font-weight:400; }
.about-close {
  flex:0 0 42px;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid rgba(29,104,153,.14);
  border-radius:50%;
  color:#173b59;
  background:rgba(255,255,255,.68);
  font-family:inherit;
  font-size:27px;
  line-height:1;
  cursor:pointer;
}
.about-close:hover { background:#fff; }
.about-modal-body {
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;
  padding:24px 30px 28px;
  font-weight:400;
}
.about-modal-body p { margin:0 0 16px; color:#38576d; line-height:1.68; font-weight:400 !important; }
.about-intro { padding:19px 20px; margin-bottom:18px; border:1px solid #b9dcef; border-radius:18px; background:rgba(255,255,255,.58); }
.about-intro p:last-child { margin-bottom:0; }
.about-principles { padding:18px 20px; border:1px solid rgba(98,157,194,.24); border-radius:18px; background:rgba(255,255,255,.78); box-shadow:0 10px 26px rgba(32,91,128,.06); }
.about-principles > p { color:#274c67; }
.about-list { margin:4px 0 0; padding-left:21px; color:#38576d; }
.about-list li { margin:0 0 11px; padding-left:4px; line-height:1.58; font-weight:400 !important; }
.about-list li:last-child { margin-bottom:0; }
.about-modal-footer { padding:18px 30px 20px; border-top:1px solid rgba(44,114,166,.16); background:rgba(218,238,249,.92); }
.about-modal-footer p { margin:0; color:#526f83; font-size:.9rem; line-height:1.6; font-weight:400 !important; }
@media(max-width:700px){
  .about-dialog{width:calc(100vw - 20px);max-height:92dvh;border-radius:22px}
  .about-card{max-height:92dvh;border-radius:22px}
  .about-modal-header{padding:22px 20px 20px}
  .about-title-wrap{gap:12px}
  .about-icon{width:44px;height:44px;flex-basis:44px;border-radius:14px}
  .about-modal-body{padding:18px}
  .about-intro,.about-principles{padding:16px}
  .about-modal-footer{padding:16px 18px}
}
