.agency-page{background:#f7f7f8;color:#353039;padding:clamp(4.5rem,8vw,7rem) 1.25rem 5rem}.agency-wrap{max-width:1180px;margin:auto}.agency-intro{max-width:760px;margin:0 0 2.5rem}.agency-kicker{margin:0 0 .55rem;color:#1474b7;font-size:.78rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.agency-intro h1{font-size:clamp(2.4rem,5vw,4.2rem);line-height:1.08;margin:0 0 1.2rem}.agency-intro>p:last-child{font-size:1.12rem;line-height:1.65;max-width:690px}.agency-panel{background:#fff;border:1px solid #e0e0e4;border-radius:18px;box-shadow:0 18px 50px rgba(29,28,35,.07);padding:clamp(1.2rem,3.5vw,2.5rem)}.agency-section{margin-top:clamp(3rem,6vw,5rem)}.agency-section-head{display:flex;align-items:end;justify-content:space-between;gap:2rem;margin-bottom:1.35rem}.agency-section-head h2{font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.2;margin:0}.agency-section-head>p{max-width:330px;line-height:1.5;margin:0;color:#63636b}.agency-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.agency-field{display:flex;flex-direction:column;gap:.45rem;font-weight:700}.agency-field span{font-size:.92rem}.agency-field input,.agency-field select{width:100%;min-height:52px;border:1px solid #bfc0c8;border-radius:8px;background:#fff;color:#292932;padding:.7rem .85rem;font:inherit;box-sizing:border-box}.agency-field input:focus,.agency-field select:focus{outline:3px solid rgba(24,116,183,.18);border-color:#1874b7}.agency-field select:disabled{background:#f4f4f5;color:#888}.agency-field--venue{grid-column:1/-1}.agency-field small{font-weight:400;color:#676772;line-height:1.4}.agency-form-footer{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;margin-top:1.4rem}.agency-form-footer p{font-size:.87rem;line-height:1.5;color:#65656e;max-width:590px;margin:0}.agency-button{border:0;border-radius:8px;background:#249d42;color:#fff;font:inherit;font-weight:800;padding:.9rem 1.45rem;cursor:pointer;white-space:nowrap}.agency-button:hover{background:#187f33}.agency-button:disabled{opacity:.6;cursor:wait}.agency-result{margin-top:1.7rem;padding:1.4rem;border:1px solid #d9e5da;border-radius:12px;background:#f7fbf8}.agency-result h3{font-size:1.35rem;margin:0 0 .45rem}.agency-result p{line-height:1.5}.agency-result table{border-collapse:collapse;width:100%;margin:1rem 0}.agency-result th,.agency-result td{padding:.65rem .45rem;text-align:left;border-bottom:1px solid #dce7dd;vertical-align:top}.agency-result td:last-child,.agency-result th:last-child{text-align:right;white-space:nowrap}.agency-result td small{display:block;color:#6a6a72}.agency-result .agency-total td{font-weight:800;font-size:1.18rem;border:0;padding-top:1rem}.agency-result .agency-note{font-size:.88rem;color:#60606a}.agency-result .agency-warning{color:#9b411b;font-weight:700}.agency-act-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.agency-act{display:flex;flex-direction:column;min-height:210px;padding:1.45rem;border:1px solid #dddde3;border-top:5px solid #9440aa;border-radius:10px;background:#fff}.agency-act--band{border-top-color:#e80f70}.agency-act--duelling{border-top-color:#1874b7}.agency-act h3{font-size:1.22rem;margin:0 0 .5rem}.agency-act p{line-height:1.5;margin:0 0 1.2rem}.agency-act a{margin-top:auto;font-weight:800;text-decoration:none}.agency-resources{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.agency-resources a{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;background:#fff;border:1px solid #dddde3;border-radius:8px;text-decoration:none;font-weight:700}.agency-resources a:hover,.agency-act a:hover{text-decoration:underline}@media(max-width:760px){.agency-section-head,.agency-form-footer{display:block}.agency-section-head>p,.agency-form-footer p{margin-top:.7rem}.agency-fields,.agency-act-grid,.agency-resources{grid-template-columns:1fr}.agency-field--venue{grid-column:auto}.agency-button{width:100%;margin-top:1rem}.agency-result{overflow-x:auto}}
#mainContainer.agency-page{background:#f7f7f8!important;box-sizing:border-box}

/* Match the site's dark canvas while keeping the form and resource cards light. */
#mainContainer.agency-page {
  background: var(--blue) !important;
  color: var(--white);
}
.agency-page h1,
.agency-page h2,
.agency-page h3 {
  max-width: none;
  margin-inline: 0;
  padding: 0;
  text-align: left;
}
.agency-page .agency-intro h1,
.agency-page .agency-section h2 {
  color: var(--white);
}
.agency-page .agency-section > .agency-section-head > p,
.agency-page .agency-intro > p:last-child {
  color: #d4cfd6;
}
.agency-page .agency-intro .agency-kicker,
.agency-page .agency-section .agency-kicker {
  color: #eaf6ff;
}
.agency-page .agency-panel,
.agency-page .agency-act,
.agency-page .agency-resources a {
  color: var(--back);
}
.agency-page .agency-panel h2,
.agency-page .agency-panel h3,
.agency-page .agency-act h3 {
  color: var(--back);
}
.agency-page .agency-act a {
  color: var(--blue);
}

.agency-page .agency-intro > p:not(.agency-kicker) {
  max-width: 760px;
  color: #eaf6ff;
  font-size: 1.12rem;
  line-height: 1.5;
}
.agency-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  height: 80px;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}
.agency-header.is-scrolled {
  background: var(--back);
  box-shadow: 0 4px 24px rgba(0,0,0,.28);
}
.agency-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100%;
  height: 80px;
  padding: 0 20px 0 0;
  box-sizing: border-box;
}
.agency-nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  height: 60px;
  margin-left: 5px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}
.agency-nav-logo img { display: block; width: auto; height: 100%; max-height: 40px; }
.agency-nav-logo span { display: inline-block; padding-bottom: 8px; font-family: 'pf'; font-size: 3rem; font-weight: normal; line-height: 1; }
.agency-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
  min-width: 0;
  margin-right: 0;
}
.agency-nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: .5rem .9rem;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 999px;
  box-sizing: border-box;
  color: #fff;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease;
}
.agency-nav-links a:hover,
.agency-nav-links a:focus-visible { background: #fff; border-color: #fff; color: var(--blue); }
.agency-nav-links .agency-nav-main { background: var(--green); border-color: var(--green); }
.agency-nav-links .agency-nav-main:hover,
.agency-nav-links .agency-nav-main:focus-visible { background: #218838; border-color: #218838; color: #fff; }
.agency-nav-main span { margin-left: .4rem; }
#mainContainer.agency-page { padding-top: calc(80px + clamp(2.5rem,5vw,4rem)); }
@media (max-width: 700px) {
  .agency-nav { gap: .6rem; padding-right: 20px; }
  .agency-nav-logo span { display: inline-block; padding-bottom: 4px; font-size: clamp(1.45rem, 6vw, 2rem); }
  .agency-nav-links { gap: .3rem; overflow-x: auto; scrollbar-width: none; }
  .agency-nav-links::-webkit-scrollbar { display: none; }
  .agency-nav-links a { min-height: 40px; padding: .45rem .65rem; font-size: .77rem; }
}
.agency-quicknav {
  position: static;
  z-index: auto;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.2rem;
}
.agency-quicknav a {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  padding: .58rem .95rem;
  border: 2px solid #eaf6ff;
  border-radius: 999px;
  color: #fff;
  font-size: .91rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.agency-quicknav a:hover,
.agency-quicknav a:focus-visible {
  background: #fff;
  color: var(--blue);
}
.agency-quicknav a span { font-size: 1.1rem; line-height: 1; }
.agency-page .agency-field select {
  height: 52px;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23353039' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  background-size: 14px 9px;
}
.agency-page .agency-field select:disabled { background-color: #f4f4f5; }
.agency-page #agency-estimate,
.agency-page #agency-acts,
.agency-page #agency-resources { scroll-margin-top: 100px; }
.agency-page .agency-act .agency-act-spec {
  margin: auto 0 0;
  color: var(--back);
  font-size: .88rem;
  font-weight: 800;
}
.agency-page .agency-resources a span {
  color: var(--blue);
  font-size: .84rem;
  white-space: nowrap;
}

/* PIN welcome screen; the quote page is not rendered until access is granted. */
#mainContainer.agency-gate-page {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-bottom: 5rem;
}
.agency-gate {
  width: min(100%, 650px);
  margin-inline: auto;
}
.agency-gate .agency-kicker { color: #eaf6ff; }
.agency-gate h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.08;
  margin: 0 0 1.2rem;
}
.agency-gate > p:not(.agency-kicker),
.agency-pin-form span {
  color: #eaf6ff;
  line-height: 1.5;
}
.agency-pin-form { margin-top: 2rem; }
.agency-pin-form label { display: block; margin-bottom: .55rem; font-weight: 800; }
.agency-pin-form input {
  display: block;
  width: min(100%, 340px);
  height: 60px;
  padding: .5rem 1rem;
  border: 2px solid #eaf6ff;
  border-radius: 10px;
  box-sizing: border-box;
  background: #fff;
  color: var(--back);
  font: inherit;
  font-size: 1.6rem;
  letter-spacing: .28em;
}
.agency-pin-form input:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.agency-pin-form span { display: block; margin-top: .65rem; font-size: .88rem; }
.agency-gate-message { min-height: 1.5em; margin: .75rem 0 0; font-size: .9rem; }
.agency-gate-request { margin-top: 1rem; }
.agency-gate-request button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}
.agency-gate-error { font-weight: 700; }
.agency-request-dialog {
  width: min(520px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 0;
  border-radius: 16px;
  box-sizing: border-box;
  background: #fff;
  color: var(--back);
  box-shadow: 0 25px 80px rgba(0,0,0,.3);
}
.agency-request-dialog::backdrop { background: rgba(18,25,40,.72); }
.agency-request-dialog h2 { margin: 0 0 .65rem; color: var(--back); font-size: 2rem; }
.agency-request-dialog p { line-height: 1.5; }
.agency-request-dialog .agency-kicker { position: relative; top: -1rem; margin-bottom: 1rem; color: var(--blue); }
.agency-dialog-close {
  position: absolute;
  top: .7rem;
  right: .9rem;
  padding: .1rem .45rem;
  border: 0;
  background: none;
  color: var(--back);
  font-size: 2rem;
  cursor: pointer;
}
.agency-dialog-close:focus:not(:focus-visible) { outline: none; }
.agency-request-dialog label { display: block; margin: 1rem 0; font-size: .9rem; font-weight: 800; }
.agency-request-dialog input:not([type="hidden"]) {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: .35rem;
  padding: .55rem .7rem;
  border: 1px solid #bfc0c8;
  border-radius: 8px;
  box-sizing: border-box;
  background: #fff;
  color: var(--back);
  font: inherit;
}
.agency-request-dialog .agency-honeypot { display: none; }
.agency-request-dialog .agency-button { width: 100%; margin-top: .5rem; }
.agency-request-dialog .agency-gate-message { color: var(--blue); }
.agency-request-dialog .agency-gate-message.is-error { color: #a32f2f; }
.agency-request-confirmation { padding: 1rem; border-radius: 8px; background: #edf8ef; font-weight: 700; }
