:root {
  --red: #d90000;
  --dark-red: #8e0000;
  --ink: #171717;
  --muted: #535b66;
  --line: #dfe3e8;
  --mist: #f4f5f7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  background: var(--white);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.top-strip {
  padding: 10px 20px;
  color: var(--white);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  background: var(--dark-red);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 14px clamp(18px, 5vw, 58px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.logo-link {
  width: 174px;
  flex: 0 0 auto;
}

.logo {
  width: 100%;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 4vw, 38px);
  flex: 1;
  font-size: 15px;
  font-weight: 800;
}

.site-nav a,
.application-button,
.call-button,
.primary-link,
.footer-links a {
  text-decoration: none;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 0 0 auto;
}

.application-button,
.call-button,
.primary-link,
.submit-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  padding: 12px 20px;
  color: var(--white);
  font: inherit;
  font-weight: 900;
  background: var(--red);
  cursor: pointer;
}

.application-button {
  white-space: nowrap;
}

.call-button::before {
  content: "\260E";
  margin-right: 9px;
}

.mobile-scenario-cta,
.mobile-bottom-actions {
  display: none;
}

.hero {
  min-height: calc(100vh - 132px);
  background-image: url("/broker-scenario/assets/hero-melbourne-yarra.webp");
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  min-height: calc(100vh - 132px);
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.18));
}

.hero-content {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.95fr);
  gap: clamp(32px, 5vw, 58px);
  align-items: center;
  padding: clamp(54px, 8vw, 88px) clamp(18px, 5vw, 58px);
}

.hero-copy {
  color: var(--white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow.dark {
  color: var(--red);
}

h1,
h2,
h3,
p,
li,
a {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
}

h3 {
  margin: 0;
  color: var(--dark-red);
  font-size: 19px;
  line-height: 1.25;
}

.hero-subheading {
  max-width: 650px;
  margin: 24px 0 26px;
  color: var(--white);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
}

.hero-list,
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-list {
  display: grid;
  gap: 13px;
  font-size: 18px;
  font-weight: 800;
}

.hero-list li,
.feature-list li {
  position: relative;
  padding-left: 32px;
}

.hero-list li::before,
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 7px rgba(217, 0, 0, 0.16);
}

.scenario-card {
  scroll-margin-top: 24px;
  overflow-anchor: none;
  border-radius: 8px;
  padding: clamp(26px, 4vw, 36px);
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.scenario-card h2 {
  font-size: clamp(34px, 4vw, 44px);
}

.scenario-card p {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 16px;
}

.scenario-card .scenario-intro {
  margin-bottom: 18px;
}

.scenario-card form {
  display: grid;
  gap: 14px;
}

.scenario-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 4px;
}

.scenario-progress span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #6a717a;
  font-size: 12px;
  font-weight: 900;
  background: #f0f2f4;
}

.scenario-progress span.is-active {
  color: var(--white);
  background: var(--red);
}

.scenario-step {
  display: none;
  gap: 14px;
}

.scenario-step.is-active {
  display: grid;
}

.scenario-step h3 {
  color: var(--ink);
  font-size: 22px;
}

.step-kicker {
  margin: 0;
  color: var(--dark-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid button {
  min-height: 52px;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  background: var(--white);
  cursor: pointer;
  overflow-wrap: anywhere;
  white-space: normal;
}

.choice-grid.compact button {
  min-height: 72px;
  padding: 10px;
  text-align: center;
}

.security-type-grid button {
  min-height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 10px 6px;
  font-size: 11px;
  line-height: 1.12;
}

.security-type-grid button::before {
  content: "";
  width: 27px;
  height: 27px;
  display: block;
  background-color: currentColor;
  opacity: 0.9;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.security-type-grid button[data-value="Residential"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11.5 12 4l9 7.5v8.5a1 1 0 0 1-1 1h-5.5v-6h-5v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 11.5 12 4l9 7.5v8.5a1 1 0 0 1-1 1h-5.5v-6h-5v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
}

.security-type-grid button[data-value="Commercial"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 21V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v17h4v-9h-2V9h3a1 1 0 0 1 1 1v11zM7 6v3h2V6zm5 0v3h2V6zm-5 5v3h2v-3zm5 0v3h2v-3zm-5 5v5h2v-5zm5 0v5h2v-5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 21V4a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v17h4v-9h-2V9h3a1 1 0 0 1 1 1v11zM7 6v3h2V6zm5 0v3h2V6zm-5 5v3h2v-3zm5 0v3h2v-3zm-5 5v5h2v-5zm5 0v5h2v-5z'/%3E%3C/svg%3E");
}

.security-type-grid button[data-value="Vacant land"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 18.5 8.5 7l4 7 2.5-4.5L21 18.5V21H3zM7.5 4 6 7h3z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 18.5 8.5 7l4 7 2.5-4.5L21 18.5V21H3zM7.5 4 6 7h3z'/%3E%3C/svg%3E");
}

.security-type-grid button[data-value="Multiple securities"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 9 5-9 5-9-5zm-7.5 8.5L12 15.7l7.5-4.2L21 13l-9 5-9-5zm0 5L12 20.7l7.5-4.2L21 18l-9 5-9-5z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m12 3 9 5-9 5-9-5zm-7.5 8.5L12 15.7l7.5-4.2L21 13l-9 5-9-5zm0 5L12 20.7l7.5-4.2L21 18l-9 5-9-5z'/%3E%3C/svg%3E");
}

.choice-grid button.is-selected {
  border-color: var(--red);
  color: var(--dark-red);
  background: #fff4f4;
  box-shadow: inset 0 0 0 1px var(--red);
}

.choice-grid.is-invalid button,
.field-invalid input,
.field-invalid textarea,
.field-invalid select {
  border-color: var(--red);
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(217, 0, 0, 0.14);
}

.field-invalid {
  color: var(--dark-red);
}

.scenario-estimate {
  display: grid;
  gap: 4px;
  border: 1px solid #ffd5d5;
  border-radius: 8px;
  padding: 14px;
  background: #fff8f8;
}

.scenario-estimate span {
  color: var(--dark-red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.scenario-estimate strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.15;
}

.scenario-estimate small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cbd2d9;
  border-radius: 4px;
  padding: 12px 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
}

input {
  min-height: 52px;
}

select {
  min-height: 52px;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input[type="file"] {
  padding: 10px 12px;
}

.file-list {
  display: grid;
  gap: 8px;
  margin: -2px 0 0;
  padding: 0;
  list-style: none;
}

.file-list:empty {
  display: none;
}

.file-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  background: #f8f9fb;
}

.file-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-list small {
  color: var(--muted);
  font-weight: 700;
}

.file-list button {
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--dark-red);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  background: #ffe4e4;
  cursor: pointer;
}

.file-note,
.form-error {
  margin: -6px 0 0;
  font-size: 13px;
}

.form-error,
.form-success {
  min-height: 18px;
  font-weight: 800;
}

.form-error {
  color: var(--dark-red);
}

.form-success {
  margin: -8px 0 0;
  color: #136b2f;
  font-size: 13px;
}

.submit-button {
  margin-top: 4px;
  position: relative;
}

.submit-button.is-loading {
  gap: 10px;
  cursor: wait;
}

.submit-button.is-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.scenario-actions {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 10px;
}

.back-button,
.next-button {
  min-height: 48px;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.back-button {
  color: var(--ink);
  background: var(--white);
}

.next-button {
  color: var(--white);
  border-color: var(--red);
  background: var(--red);
}

.back-button[hidden],
.next-button[hidden],
.submit-button[hidden] {
  display: none;
}

.thank-you-panel {
  display: grid;
  gap: 14px;
  padding-top: 8px;
}

.thank-you-panel[hidden] {
  display: none;
}

.thank-you-panel h3 {
  font-size: 28px;
  line-height: 1.15;
}

.thank-you-panel p {
  margin: 0;
}

.reset-form-button {
  width: fit-content;
}

.section {
  padding: clamp(70px, 9vw, 108px) clamp(18px, 5vw, 58px);
}

.section-inner {
  width: min(100%, 1068px);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.products-section {
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-grid article {
  min-height: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px 20px;
  text-align: center;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
}

.product-grid p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.no-service-section {
  background: var(--mist);
}

.flexibility-section {
  color: var(--white);
  background: #171717;
}

.flexibility-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.72fr);
  gap: 18px clamp(32px, 5vw, 70px);
  align-items: end;
}

.flexibility-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: #ff5a5a;
}

.flexibility-heading p:last-child {
  margin: 0;
  color: #d7d7d7;
  font-size: 18px;
}

.flexibility-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid #464646;
  border-bottom: 1px solid #464646;
}

.flexibility-flow article {
  min-height: 250px;
  padding: 30px 24px 34px;
  border-right: 1px solid #464646;
}

.flexibility-flow article:first-child {
  padding-left: 0;
}

.flexibility-flow article:last-child {
  padding-right: 0;
  border-right: 0;
}

.flexibility-flow span {
  display: block;
  margin-bottom: 28px;
  color: #ff5a5a;
  font-size: 15px;
  font-weight: 900;
}

.flexibility-flow h3 {
  color: var(--white);
  font-size: 22px;
}

.flexibility-flow p {
  margin: 14px 0 0;
  color: #c8c8c8;
}

.flexibility-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
}

.flexibility-footer p {
  margin: 0;
  font-size: 20px;
}

.loan-disclaimer {
  max-width: 780px;
  margin: 22px 0 0;
  color: #999;
  font-size: 12px;
}

.criteria-section {
  background: var(--white);
}

.service-layout,
.criteria-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.96fr);
  gap: clamp(32px, 5vw, 58px);
  align-items: center;
}

.criteria-layout {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
}

.lead-text {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.service-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.service-points article {
  min-height: 154px;
  border: 1px solid #ffd2d2;
  border-left: 5px solid var(--red);
  border-radius: 8px;
  padding: 18px;
  background: #fff9f9;
}

.service-points h3 {
  margin-bottom: 8px;
}

.service-points p {
  color: var(--muted);
  line-height: 1.45;
}

.service-note {
  font-weight: 700;
}

.service-image,
.criteria-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.service-image {
  aspect-ratio: 1122 / 1402;
}

.criteria-image {
  aspect-ratio: 1122 / 1402;
  align-self: start;
}

.service-image img,
.criteria-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.criteria-list {
  margin-bottom: 28px;
}

@media (min-width: 621px) {
  .criteria-image {
    position: sticky;
    top: 126px;
  }
}

@media (min-width: 901px) {
  .feature-image {
    order: 2;
  }

  .feature-copy {
    order: 1;
  }
}

.feature-section,
.contact-section {
  background: var(--mist);
}

.feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 58px);
  align-items: center;
}

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 18px;
  margin: 24px 0 28px;
  color: #2d343c;
  font-size: 18px;
}

.contact-inner h2 {
  text-align: center;
}

.contact-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 34px auto 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-card div {
  min-height: 112px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-card p {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 900;
}

.contact-card a {
  text-decoration: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 40px;
  padding: 44px clamp(18px, 5vw, 58px);
  color: var(--white);
  background: #141414;
}

.footer-brand {
  max-width: 540px;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: var(--white);
  padding: 6px;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 12px;
  font-weight: 800;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    flex-basis: 100%;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero-content,
  .service-layout,
  .criteria-layout,
  .feature-layout,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .service-points,
  .flexibility-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flexibility-flow article:nth-child(2) {
    border-right: 0;
  }

  .flexibility-flow article:nth-child(-n + 2) {
    border-bottom: 1px solid #464646;
  }
}

@media (max-width: 620px) {
  .top-strip {
    font-size: 13px;
  }

  .site-header {
    position: static;
    justify-content: center;
    min-height: 86px;
    padding: 12px 18px;
    text-align: center;
  }

  .logo-link {
    width: 184px;
  }

  .site-nav {
    display: none;
  }

  .header-actions {
    display: none;
  }

  .application-button,
  .call-button {
    width: 100%;
  }

  .hero-overlay {
    align-items: stretch;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 32px;
    padding-bottom: 42px;
  }

  .mobile-scenario-cta {
    display: inline-flex;
    min-height: 50px;
    width: min(100%, 260px);
    align-items: center;
    justify-content: center;
    margin: 0 0 26px;
    border-radius: 6px;
    padding: 12px 18px;
    color: var(--white);
    font-weight: 900;
    text-decoration: none;
    background: var(--red);
  }

  h1 {
    font-size: 45px;
  }

  .hero-subheading {
    font-size: 22px;
  }

  .form-grid,
  .choice-grid,
  .choice-grid.compact,
  .service-points,
  .product-grid,
  .flexibility-heading,
  .flexibility-flow,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .flexibility-heading .eyebrow {
    grid-column: auto;
  }

  .flexibility-flow article,
  .flexibility-flow article:first-child,
  .flexibility-flow article:last-child {
    min-height: 0;
    padding: 26px 0;
    border-right: 0;
    border-bottom: 1px solid #464646;
  }

  .flexibility-flow article:last-child {
    border-bottom: 0;
  }

  .flexibility-flow span {
    margin-bottom: 14px;
  }

  .flexibility-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .scenario-actions {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .mobile-bottom-actions {
    display: grid;
    gap: 18px;
    padding: 28px 18px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }

  .mobile-bottom-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 22px;
    font-weight: 900;
  }

  .mobile-bottom-nav a {
    text-decoration: none;
  }

  .mobile-bottom-buttons {
    display: grid;
    gap: 12px;
  }
}
