
/* Application Styles */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* Layout helpers */
.container-1280 {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.container-1138 {
  max-width: 1203px;
  margin: 0 auto;
  width: 100%;
}

.min-h-screen {
  min-height: 100vh;
}



/* Top banner / Documents banner */
.hero {
  width: 100%;
  background: #282826;
}

.hero .hero-inner {
  height: 476px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.hero h1 {
  margin: 0;
  text-align: center;
  font-family: "Vanilla Bold";
  font-size: 64px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e5dece;
}

.hero-divider {
  height: 2px;
  width: 100%;
  background: #fff;
}

.docs-hero .hero-inner {
  height: 342px;
  padding: 70px 0;
}

/* Contact Hero styles */
.contact-hero {
  background: #282826;
  position: relative;
  overflow: hidden;
  /* Controls the vertical banner image size on the right */
  --contact-hero-image-width: 360px;
}

.contact-hero .hero-inner {
  height: 476px;
  padding: 0;
  position: relative;
}

.contact-hero-content {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.contact-hero h1 {
    max-width: 685px;
    color: #E5DECE;
    text-align: center;
    font-family: "Vanilla Bold";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 100px;
    padding: 0px 85px;
}

.contact-hero-spiral {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
}

.contact-hero-spiral svg {
  width: 250px;
  height: 350px;
}

/* Contact hero image (from Figma node 2528:2354) */
.contact-hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none;
  width: var(--contact-hero-image-width);
  overflow: hidden;
  pointer-events: none;
}

.contact-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

h2.conHerder {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
    margin: 50px 0 0 0;
}

@media (max-width: 768px) {
  .contact-hero .hero-inner {
    height: 400px;
    padding: 0;
  }
  
  .contact-hero h1 {
    font-size: 64px;
    max-width: 520px;
  }
  
  .contact-hero-spiral {
    right: -50px;
  }
  
  .contact-hero-spiral svg {
    width: 180px;
    height: 250px;
  }

  .contact-hero {
    --contact-hero-image-width: 240px;
  }

  .contact-hero-content {
    padding-left: 25px;
    padding-right: var(--contact-hero-image-width);
  }
}

@media (max-width: 480px) {
  .contact-hero h1 {
    font-size: 36px;
    max-width: 100%;
  }
  
  .contact-hero-spiral {
    opacity: 0.3;
    right: -80px;
  }

  .contact-hero {
    --contact-hero-image-width: 180px;
  }

  .contact-hero-image {
    opacity: 0.35;
  }
}

/* Tabs */
.tabs-section {
  width: 100%;
  background: #fff;
}

.tabs-inner {
  padding: 28px 0;
}

.tabs-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.tab-btn {
  height: 36px;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e5dece;
  padding: 0 24px;
  font-size: 14px;
  font-weight: 500;
  color: #282826;
  background: #fff;
  cursor: pointer;
}

.tab-btn:hover {
  background: #f2efec;
}

.tab-btn.is-active {
background: #282826;
    color: #F2EFEC;
    text-align: center;
    font-family: "Inter-Bold";
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.tab-btn .tab-label {
  display: inline-flex;
  align-items: center;
}

.tab-content {
  animation: tabFadeIn 220ms ease-out;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  margin: 28px 0 0;
  font-family: "Vanilla Bold";
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-title.normal {
  text-transform: none;
}

.placeholder-box {
  margin-top: 18px;
  background: #f2efec;
  padding: 22px;
  font-size: 14px;
  line-height: 1.5;
  color: #4c4c49;
}

.highlights-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.highlights-card {
  background: #f2efec;
  padding: 22px;
}

.highlights-card h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
}

.highlights-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: #4c4c49;
}

.highlights-card li {
  margin: 8px 0;
}

/* Accordions */
.accordion-stack {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion {
  width: 100%;
  border: 1px solid #e5dece;
  background: #f2efec;
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #282826;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.accordion-chevron {
  transition: transform 180ms ease;
}

.accordion.is-open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-panel {
  display: none;
  padding: 0 20px 20px;
  font-size: 12px;
  line-height: 1.4;
  color: #4c4c49;
}

.accordion.is-open .accordion-panel {
  display: block;
}

/* Documents accordions */
.docs-section {
  background: #fff;
}

.docs-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 25px;
}

.docs-item {
  background: #f6f4f1;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.docs-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  font-family: "Vanilla Bold";
  font-size: 22px;
  font-weight: 800;
  color: #282826;
  background: #f6f4f1;
  border: 0;
  cursor: pointer;
  text-align: left;
}

.docs-btn svg {
  transition: transform 180ms ease;
}

.docs-panel {
  display: none;
  padding: 0 26px 26px;
  background: #f6f4f1;
}

.docs-item.is-open .docs-panel {
  display: block;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 22px 28px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #282826;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-color: rgba(40, 40, 38, 0.4);
}

.doc-uploaded {
  font-size: 12px;
  font-weight: 500;
  color: #4c4c49;
}

/* Contact Us styles */
.contact-section {
  background: #fff;
  padding: 50px 0;
}

.contact-content {
  max-width: 824px;
  margin: 0 auto;
  width: 100%;
}

.contact-info {
  margin-top: 0;
}

.contact-intro {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-align: center;
}

.contact-accordion-stack {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 0 30px 50px 30px;
}

.contact-accordion-item {
  position: relative;
}

.contact-accordion-btn {
    width: 100%;
    max-width: 100%;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: #f2efec;
    border: 0;
    text-align: left;
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.contact-accordion-btn:focus-visible {
  outline: 2px solid #282826;
  outline-offset: 4px;
}

.contact-accordion-icon {
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.contact-accordion-item.is-open .contact-accordion-icon {
  transform: rotate(180deg);
}

.contact-accordion-panel {
  width: 824px;
  max-width: 100%;
  background: #f2efec;
  padding: 0px 32px 14px;
  color: #4c4c49;
}

.contact-accordion-text h3 {
    color: #282826;
    font-family: "Inter-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 24px */
}

.contact-accordion-btn span {
color: #282826;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.contact-accordion-text p {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.contact-accordion-panel a {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.contact-accordion-panel p {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.contact-accordion-text {
  font-size: 16px;
  line-height: 1.21;
  color: #282826;
}

.contact-accordion-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

span.leftTitle {
    color: #282826;
    font-family: "Inter-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding-right: 5px;
}

.top-5 {
    display: block;
    padding-top: 5px !important;
}

a.noBrdLn {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}

/* Business Development team accordion panel */
.bd-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bd-intro {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #282826;
  max-width: 637px; /* matches Figma text width */
}

.bd-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 260px; /* matches Figma input block width */
}

.bd-postcode-row {
  display: flex;
  align-items: stretch;
  gap: 30px;
  /* Allow the row to extend beyond the old 260px limitation so the button can sit beside the input */
  max-width: 100%;
  margin-bottom: 15px;
}

.bd-form {
  /* Increase max-width from input-only block to match design where button sits to the right */
  max-width: 600px;
}

.bd-postcode-label {
  font-size: 20px;
  font-weight: 700;
  color: #282826;
  font-family: "Inter-Bold";
  font-style: normal;
  line-height: 120%;
  margin-bottom: 10px;
}

.bd-postcode-input {
  width: 100%;
  border: none;
  background: #fff;
  padding: 11.4px 16px;
  font-size: 20px;
  line-height: 1.2;
  color: #282826;
  outline: none;
}

.bd-postcode-row .bd-postcode-input {
  flex: 0 0 260px;
}

.bd-resi-btn {
position: relative;
    height: 48px;
    padding: 0 18.5px;
    border: 0;
    background: #282826;
    color: #FFF;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.bd-resi-btn::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 40px;
    background: url(/media/njvjei0d/blackdownarr.svg);
    background-position: 138px 10px;
    background-repeat: no-repeat;
    display: block;
}

.bd-resi-btn:hover {
  opacity: 0.92;
}

@media (max-width: 520px) {
  .bd-postcode-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .bd-postcode-row .bd-postcode-input {
    flex: 1 1 auto;
    width: 100%;
  }

  .bd-resi-btn {
    width: 100%;
  }

  .bd-resi-btn::after {
    display: none;
  }
}

.bd-postcode-input::placeholder {
  color: #282826;
  opacity: 1;
}

.bd-card {
    background: #fff;
    padding: 24.5px 20px;
    border: 1px solid #e5dece;
    max-width: 525px;
    margin-bottom: 20px;
}

/* Office BDM section heading */
.bd-office {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bd-office + .bd-office {
  margin-top: 18px;
}

.bd-office-title {
  color: #282826;
    font-family: "Inter-Bold";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%;
}

.bd-card-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.bd-card-name h3 {
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
}

.bd-card-number a {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%; /* 33.6px */
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.bd-card-details a.bd-card-btn {
    color: #FFF;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 14px 45px;
}


.bd-card-avatar {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  border: 1px solid #e5dece;
  background: #f2efec;
  overflow: hidden;
}

.bd-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bd-card-details {
  flex: 1 1 auto;
  min-width: 0;
}

.bd-card-details .bd-card-name {
  margin-top: 0;
}

.bd-card-number {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #282826;
}

.bd-card-name {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #282826;
}

.bd-card-btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 48px;
  height: 48px;
  background: #282826;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.21;
  text-decoration: none !important;
}

.bd-card-btn:hover {
  opacity: 0.9;
}

@media (max-width: 520px) {
  .bd-card {
    max-width: 100%;
  }

  .bd-card-content {
    gap: 16px;
  }

  .bd-card-avatar {
    flex-basis: 96px;
    width: 96px;
    height: 96px;
  }
}

.bd-results {
  display: block;
}

.bd-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bd-tab {
  border: 1px solid #e5dece;
  background: #fff;
  color: #282826;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bd-tab.is-active {
  background: #282826;
  color: #fff;
}

.bd-panels {
  margin-top: 14px;
}

.bd-panel-item[hidden] {
  display: none !important;
}

.contact-accordion-panel a {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-section {
    padding: 40px 0;
  }

  .contact-accordion-stack {
    margin-top: 24px;
    gap: 14px;
  }

  .contact-accordion-btn {
    padding: 18px 20px;
    font-size: 18px;
  }

  .contact-accordion-panel {
    padding: 0 20px 18px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.contact-card {
  background: #f6f4f1;
  padding: 30px;
  border-radius: 8px;
}

.contact-card h3 {
  margin: 0 0 15px 0;
  font-size: 22px;
  font-weight: 700;
  color: #282826;
}

.contact-card p {
  margin: 0 0 20px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #4c4c49;
}

.contact-details p {
  margin: 8px 0;
  font-size: 14px;
  color: #282826;
}

.contact-details strong {
  font-weight: 600;
}

.office-info {
  background: #f2efec;
  padding: 30px;
  border-radius: 8px;
  max-width: 400px;
}

.office-info h3 {
  margin: 0 0 20px 0;
  font-size: 22px;
  font-weight: 700;
  color: #282826;
}

.office-details p {
  margin: 5px 0;
  font-size: 16px;
  color: #282826;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card,
  .office-info {
    padding: 20px;
  }
}

/* Login Starts */

/* Bootstrap Modal Customizations */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

/* Right-aligned modal */
.modal.fade .modal-dialog {
  transform: translateX(100%) !important;
}

.modal.show .modal-dialog {
  transform: translateX(0) !important;
}

.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.6) !important;
  top: 0 !important;
  height: 100vh !important;
}




/* Header overlay - only show when modal is active */
.header-overlay {
  display: none;
}

.header-overlay-custom {
  display: none;
}


/* Custom btn-close styling to match design */
.modal .btn-close {
    width: 68px;
    height: 68px;
    padding: 0;
    opacity: 1;
    border-radius: 0px;
}


.modal .btn-close:hover {
  opacity: 0.8 !important;
}

.maintenance {
  position: relative;
  height: 110px;
  width: 100%;
  background: #7a3424;
  padding: 26px 29px;
  color: #f2efec;
}

.maintenance-dismiss {
    position: absolute;
    right: 22px;
    top: 25px;
    height: 22px;
    width: 29px;
    border: 0;
    background: transparent;
    color: #F2EFEC;
    text-align: center;
    font-family: 'Inter-ExtraBold';
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: 132%;
}

.maintenance p {
  margin: 0;
  max-width: 781px;
  font-size: 16px;
  line-height: 1.21;
}

.modal-cards {
  margin-top: 50px;
  display: flex;
  gap: 40px;
  /* Keep login + register side-by-side on desktop */
  flex-wrap: nowrap;
  align-items: stretch;
}

.maintenance p span {
    color: #F2EFEC;
    font-family: Inter-ExtraBold;
    font-size: 16px;
    font-style: normal;
    font-weight: 800;
    line-height: normal;
}

.maintenance p {
    color: #F2EFEC;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.card-login {
    position: relative;
    height: auto;
    width: 542px;
    max-width: 100%;
    min-width: 0px;
    flex: 0 1 542px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(242, 239, 236);
    border-image: initial;
    padding: 25px 25px 10px;
}

.card-register {
  height: auto;
  max-width: 100%;
  flex: 1;
  min-width: 0;
  background: #f2efec;
  color: #282826;
  padding: 25px;
}

/* Tablet layout - keep side by side for 768px to 1235px */
@media (min-width: 768px) and (max-width: 1235px) {
  .modal-cards {
    flex-wrap: nowrap;
    gap: 20px;
  }

  .card-login {
    flex: 1;
    min-width: 0;
  }

  .card-register {
    flex: 1;
    min-width: 0;
  }


}

/* Stack cards on mobile screens */
@media (max-width: 767px) {
  .modal-cards {
    flex-wrap: wrap;
    gap: 20px;
  }

  .card-login,
  .card-register {
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
  }
}

.card-login h3,
.card-register h3 {
  margin: 0;
}

.card-login h3 {
    color: #F2EFEC;
    font-family: "Inter-SemiBold";
    font-size: 32px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.card-register h3 {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 28px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.card-login p {
    margin: 30px 0 0;
    max-width: 488px;
    color: #F2EFEC;
    font-family: "Inter-Regular";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.card-register .p1 {
    margin: 31px 0 0;
    font-family: "Inter-SemiBold";
    color: #282826;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.card-register .p2 {
    margin: 2px 0 0;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.btn-primary-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 14px 48px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.21;
  border: 0;
  cursor: pointer;
}

.btn-light {
    background: #f2efec;
    color: #282826;
    font-family: "Inter-Bold";
    text-align: center;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.btn-dark {
    background: #282826;
    color: #F2EFEC;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.btn-broker-login {
  position: static;
  left: 32px;
  bottom: 40px;
}

.btn-register {
  margin-top: 45px;
  width: 179px;
}

/* Login Ends */

/* Simple responsiveness */

@media (max-width: 900px) {
  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Desktop modal header styling */
@media (min-width: 768px) {
  .modal-header {
    margin-top: 60px;
  }
}

/* Modal custom styling */
.header-overlay-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0px;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1040;
  pointer-events: none;
}

/* When modal is active, show the overlay with full height */
.modal.show .header-overlay-custom {
  height: 100vh !important;
  pointer-events: auto !important;
}

.modal-dialog-custom {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1150px;
  max-width: 100%;
  margin: 0;
  height: 100vh;
}

/* Tablet specific: Position modal below header */
@media (min-width: 768px) and (max-width: 1279px) {
  .modal-dialog-custom {
    top: 79px !important;
    height: calc(100vh - 79px) !important;
  }
}

/* Ensure Bootstrap modal animations work properly */
.modal.fade .modal-dialog-custom {
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog-custom {
  transform: translateX(0);
}

.modal-content-custom {
  background: #282826;
  color: #fff;
  border: none;
  height: 100%;
  width: 100%;
  border-radius: 0;
  overflow-y: auto;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
  padding-bottom: 200px;
}

.modal-header-custom {
  border-bottom: none;
  padding: 25px 109px;
  background: #282826;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
}

.modal-title-custom {
  color: #F2EFEC;
  font-size: 48px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  margin: 0;
  font-family: "Vanilla Bold";
}

.btn-close-custom {
  height: 32px;
  width: 32px;
  background: #fff !important;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #000;
  border-radius: 2px;
}

.modal-body-custom {
  padding-left: 99.5px;
  padding-right: 99.5px;
  padding-top: 0;
}

/* iPad responsive modal body padding */
@media (min-width: 768px) and (max-width: 1024px) {
  .modal-body-custom {
    padding-left: 35px;
    padding-right: 35px;
  }
  
  .modal-header-custom {
    padding: 25px 35px;
  }

  button.tab-btn.docs-product-guide-btn {
    display: revert !important;
    border: 2px solid #E5DECE;
    width: 100%;
    height: 56px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    color: #282826;
    text-align: right;
    font-family:  "Inter-Medium";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

button.tab-btn.js-tab-btn.is-active {
    color: #FFF;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    padding: 0 15px;
    width: 100%;
}

button.tab-btn.docs-product-guide-btn > span {
    justify-content: center;
}

.docs-tabs-section .tabs-row {
    margin: 50px 0 0 0;
}

/*button.tab-btn.docs-product-guide-btn > span:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 60px !important;
    height: 2px !important;
    width: 200px;
    background: #000;
    display: block;
}*/

h2.docs-panel-title.frDek {
    display: none;
}

h2.docs-panel-title.frTab {
    display: block;
}
}

.modal-body-inner {
  margin-top: 60px;
  max-width: 985px;
}

.modal-spacer {
  height: 120px;
}

h2.docs-panel-title.frDek {
    display: block;
}

h2.docs-panel-title.frTab {
    display: none;
}

@media only screen and (min-width: 1025px) {
  button.tab-btn.docs-product-guide-btn {
    position: relative;
}

button.tab-btn.docs-product-guide-btn:after {
    content: "";
    height: 2px;
    width: 134px;
    position: absolute;
    bottom: 9px;
    left: 20px;
    background: #282826;

}
}
/* Documents page Starts */

/* Documents page-specific styles */

/* Documents banner */
.docs-hero .hero-inner {
  height: 340px;
  padding: 70px 0;
}

/* Documents tabs */
.docs-tabs-section {
  background: #ffffff;

  /* Prevent tiny overflow caused by the full-bleed (100vw) tab-bar background.
     100vw includes the vertical scrollbar width in many browsers, which can
     create a horizontal scroll on the page. */
  overflow-x: hidden;
}

.docs-tabs-section .tabs-row {
    position: relative;
    z-index: 0;
    background: #f2efec;
    padding: 36.5px 0;
    flex-wrap: nowrap;
    gap: 30px;
}

.docs-tabs-section .tabs-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  background: #f2efec;
  z-index: -1;
}

/* Tabs buttons (override shared product tabs sizing for Documents page) */
.docs-tabs-section .tab-btn {
    height: 48px;
    min-width: unset;
    padding: 0px 19.5px;
    color: #282826;
    text-align: center;
    font-family: "Inter-Medium";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    border: none;
        flex: 1;
}


a.docs-download-link:hover {
    font-weight: 700;
    font-family: "Inter-Bold";
}

.docs-tabs-section .tab-btn.is-active {
    background: #282826;
    color: #F2EFEC;
    text-align: center;
    font-family: "Inter-Bold";
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

/*.docs-tabs-section .tab-btn:last-child span:before {
    content: "";
    width: 134px;
    height: 0px;
    position: absolute;
    bottom: 0px;
    left: 0;
    background: #282826;
}*/

.docs-tabs-section .tab-btn:last-child span {
    position: relative;
}

.docs-tabs-section .tab-btn:last-child span svg {
    margin-left: 10px;
}

h2.docs-panel-title {
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 51px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


/* Keep all tabs within the container (no push-to-right) */

/* Figma shows Product guide label underlined */
.docs-tabs-section .tab-btn[data-tab="guide"] .tab-label {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.docs-tabs-section .tab-btn.is-active svg path {
  stroke: #ffffff;
}

@media (max-width: 980px) {
  .docs-tabs-section .tabs-row {
    flex-wrap: wrap;
  }
}

.docs-tabs-section .tabs-inner {
  /* Use a fluid max-width so the layout scales down smoothly (less “jump” near breakpoints) */
  max-width: clamp(700px, 90vw, 1146px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

/* General Product Documents panel */
.docs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.docs-panel-title {
  margin: 0;
  font-family: "Vanilla Bold";
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.docs-forms-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    min-width: 212px;
    height: 49px;
    background: #E5DECE;
    border: none;
    color: #282826;
    font-family: 'Inter-Bold';
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}

.docs-forms-pill-caret {
  /* Match iPad/tablet behaviour: caret rotates when dropdown opens */
  width: 20px;
  height: 20px;
  transition: transform 150ms ease;
  transform-origin: center;
}

span.js-forms-selected {
    margin-right: 15px;
}

.docs-forms-dropdown.is-open .docs-forms-pill-caret {
  transform: rotate(180deg);
}

.docs-forms-dropdown {
  position: relative;
}

.docs-forms-menu {
  margin-top: 0;
  background: #f2efec;
  border: 1px solid #e5dece;

  /* Overlay on desktop too (don’t push content down) */
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  min-width: 212px;
}

.docs-forms-item {
width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 14px 16px;
    color: #000;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.docs-forms-item.is-active {
    background: #e5dece;
    color: #000;
    font-family: "Inter-Bold";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.docs-download-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 60px;
}

.docs-download-row {
    background: #f2efec;
    padding: 30px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.docs-download-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 6px;
}

.docs-download-link svg {
  flex: 0 0 auto;
}

.docs-uploaded {
    color: #4C4C49;
    text-align: right;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
}

.docs-hero h1 {
    color: #E5DECE;
    text-align: center;
    font-family: "Vanilla Bold";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

a.docs-download-link {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

@media (max-width: 767px) {
  .docs-panel-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-panel-title {
    font-size: 28px;
  }

  .docs-download-row {
    padding: 18px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .docs-uploaded {
    text-align: left;
  }
}

/* Dropdown tabs layout (Tablet ONLY). Desktop should stay as normal tabs. */
@media (min-width: 768px) and (max-width: 1024px) {
  /* Turn the tab bar into: dropdown (active tab) + Product guide */
  .docs-tabs-section .tabs-row {
    padding: 0;
    background: transparent;
    position: relative;

    display: grid;
    grid-template-columns: 48.5% 48.5%;
    column-gap: 30px;
    row-gap: 0;
    align-items: start;
  }

  .docs-tabs-section .tabs-row::before {
    display: none;
  }

  .docs-tabs-section .tab-btn {
    flex: 0 0 335px;
    width: 335px;
    height: 56px;
    padding: 0 20px;
    font-size: 20px;
    border-width: 2px;
  }

  .docs-tabs-section .tab-btn.is-active {
    grid-column: 1;
    grid-row: 1;
  }

  .docs-tabs-section .tab-btn[data-tab="guide"] {
    grid-column: 2;
    grid-row: 1;
  }

  /* Hide the other 2 tab buttons in the row (they will appear in the dropdown menu) */
  .docs-tabs-section .tabs-row > .tab-btn:not(.is-active):not([data-tab="guide"]) {
    display: none;
  }

  .docs-tabs-section .tab-btn .tab-label {
    width: 100%;
  }

  /* Active button caret */
  .docs-tabs-section .tab-btn.is-active .tab-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .docs-tabs-section .tab-btn.is-active .tab-label::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid #f2efec;
    border-bottom: 2px solid #f2efec;
    transform: rotate(45deg);
    margin-top: -4px;
    flex: 0 0 auto;
  }

  .docs-tabs-section.is-dropdown-open .tab-btn.is-active .tab-label::after {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  /* Product guide (outlined, not underlined) */
  .docs-tabs-section .tab-btn[data-tab="guide"] .tab-label {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  /* Dropdown menu panel (matches screenshot) */
  .docs-tabs-menu {
    position: absolute;
    top: 94px;
    left: 0;
    width: 48.5%;
    z-index: 10;
    background: #f2efec;
    border: 1px solid #e5dece;
  }

  .docs-tabs-menu .tab-btn {
    display: flex;
    width: 100%;
    height: 56px;
    padding: 0 20px;
    font-size: 20px;
    border: 0;
    background: #e5dece;
    justify-content: flex-start;
  }

  .docs-tabs-menu .tab-btn + .tab-btn {
    border-top: 1px solid rgba(40, 40, 38, 0.12);
  }

  .docs-tabs-menu .tab-btn .tab-label {
    justify-content: flex-start;
  }

  .docs-tabs-menu .tab-btn .tab-label::after {
    display: none;
  }

  .docs-tabs-menu .tab-btn.is-active {
    background: #282826;
    color: #f2efec;
  }
  button.docs-product-guide-btn {
    border: none;
    display: flex;
    height: 56px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #282826;
    text-align: right;
    font-family: "Inter-Medium";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

button.docs-product-guide-btn > span:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1px !important;
    height: 2px !important;
    width: 135px;
    background: #000;
    display: block;
}

button.docs-product-guide-btn span {
    position: relative;
}

button.docs-product-guide-btn span svg {
    margin-left: 5px;
}

.docs-tabs-section .tabs-row::before {
        display: block;
    }

.docs-tabs-section .tabs-row {
    margin-top: 0px;
    padding: 37px 0px;
}

.docs-tabs-section .tabs-inner {
    max-width: 100%;
    padding: 0 33px;
}



}

/* Tablet-only layout tweaks (match Figma: node-id=2808-1965) */
@media (min-width: 768px) and (max-width: 1024) {
  .docs-tabs-section {
    /* Used to control the dropdown open/close state */
  }

  .docs-tabs-section .tabs-inner {
    max-width: 700px;
  }

  /* Panel header stacks: Forms bar first, then title */
  .docs-panel-header {
    margin-top: 22px;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
  }

  .docs-forms-pill {
    order: -1;
    width: 100%;
    height: 56px;
    background: #e5dece;
    border: 0;
    padding: 0 29px;
    font-size: 20px;
    font-weight: 700;
  }

  .docs-forms-dropdown {
    width: 100%;
    position: relative;
  }

  .docs-forms-menu {
    margin-top: 0;
    border: 0;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 4;
  }

  .docs-forms-item {
    padding: 16px 29px;
    font-size: 18px;
    background: #f2efec;
  }

  .docs-forms-item.is-active {
    background: #e5dece;
  }

  /* Arrow toggle for Forms dropdown */
  .docs-forms-pill-caret {
    /* Keep for backwards compatibility, but base styles now handle this too */
    width: 20px;
    height: 20px;
    transition: transform 150ms ease;
  }

  .docs-forms-dropdown.is-open .docs-forms-pill-caret {
    transform: rotate(180deg);
  }

  .docs-forms-pill {
    justify-content: space-between;
  }

  .docs-panel-title {
    font-size: 48px;
    text-transform: none;
  }

  .docs-download-list {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    gap: 25px;
  }

  .docs-download-row {
    padding: 21px 24px;
  }

  .docs-download-link {
    font-size: 20px;
  }

  .docs-download-link svg {
    width: 28px;
    height: 28px;
  }

  .docs-uploaded {
    font-size: 16px;
  }

  h2.docs-panel-title {
    font-size: 38px;
}
h2.docs-panel-title.frDek {
    font-size: 40px;
}

button.docs-product-guide-btn {
    border: 2px solid #E5DECE;
    display: flex;
    height: 56px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    background: #fff;
    color: #282826;
    text-align: right;
    font-family: "Inter-Medium";
    font-size: 20px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

button.docs-product-guide-btn > span:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 1px !important;
    height: 2px !important;
    width: 135px;
    background: #000;
    display: block;
}

button.docs-product-guide-btn span {
    position: relative;
}

button.docs-product-guide-btn span svg {
    margin-left: 5px;
}
h2.docs-panel-title.frDek {
    font-size: 40px;
}

}

@media (min-width: 1025px) and (max-width:1177px) {
.docs-tabs-section .tab-btn {
    font-size: 16px;
}

button.tab-btn.docs-product-guide-btn:after {
    width: 106px;
}
}




/* Documents page Ends */

/* Calculator Starts */

/* Calculators page styles */

/* Product details hero */
.calc-hero {
  background: #282826;
  padding: 106px 0 88px;
}

.calc-hero-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.calc-hero-subtitle {
  margin: 0;
  font-family: "Vanilla Bold";
  font-size: 64px;
  line-height: 1.2;
  text-align: center;
  color: #e5dece;
}

/* Product details steps (1–3 wrapper) */
.product-details {
  background: #fff;
  padding: 40px 0 80px;
}

.product-details-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.product-details-title {
    margin: 0;
    text-align: center;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 112.5%;
}

.product-progress {
  margin-top: 36px;
}

.progress-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  height: 48px;
}

.progress-segment {
  height: 16px;
  background: #f2efec;
  border-radius: 10px;
  align-self: center;
}

.progress-segment.is-complete {
  background: #282826;
}

.progress-step {
  position: absolute;
  left: calc(98.27% / 3);
  top: 0px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f2efec;
  border: 2px solid #282826;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter-Bold";
  font-weight: 700;
  font-size: 18px;
  color: #282826;
  line-height: normal;
}

.progress-text {
    margin-top: 0px;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

strong#progress-step-label {
    color: #282826;
    font-family: "Inter-Bold";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 150%; /* 27px */
}

.product-section-title {
    margin: 40px 0 18px;
    font-family: "Inter-SemiBold";
    font-weight: 600;
    font-size: 28px;
    color: #282826;
    line-height: normal;
}

.product-note {
  background: #f2efec;
  padding: 22px 25px;
  font-family: "Inter-Regular";
  font-size: 18px;
  color: #282826;
}

.product-note a {
  text-decoration: underline;
}

.selected-product-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border: 2px solid #000;
  padding: 22px 28px;
  background: var(--Almost-White, #F2EFEC);
}

.selected-product-fields {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, auto));
  gap: 36px;
  flex: 1;
  min-width: 0;
}

.selected-product-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.selected-product-label {
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.selected-product-value {
    word-break: break-word;
    color: #282826;
    font-family: "Inter-Bold";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: 132%;
}

.selected-product-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-shrink: 0;
}

.selected-product-change,
.selected-product-see {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid #282826;
  font-family: "Inter-SemiBold";
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.selected-product-change {
    background: #fff;
    text-decoration: underline;
    color: #282826;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    height: 48px;
}

.selected-product-change:hover {
  background: #f2efec;
  color: #282826;
}

.selected-product-see {
    background: #282826;
    color: #F2EFEC;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    height: 48px;
}

.selected-product-see:hover {
  background: #000;
}

.selected-product-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #e5dece;
  padding: 19px 24px;
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #282826;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 20px;
}

.selected-product-notice p {
    margin: 0;
    color: #000;
    font-family: "Inter-Bold";
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.selected-product-notice-link {
    color: #000;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
}

.selected-product-notice-link:hover {
  color: #282826;
}

@media (max-width: 1000px) {
  .selected-product-row {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .selected-product-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 700px) {
  .selected-product-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selected-product-actions {
    flex-direction: column;
  }

  .selected-product-change,
  .selected-product-see {
    width: 100%;
  }
}

.product-form-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 32px;
}

.product-field {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-field label {
display: flex;
    align-items: center;
    gap: 10px;
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.product-field .muted {
  font-weight: 500;
  color: #4c4c49;
}

.field-input,
.field-dropdown {
  background: #f2efec;
  padding: 18px 20px;
  font-family: "Inter-Regular";
  font-size: 16px;
  color: #4c4c49;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.field-input input {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    color: #4C4C49;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
}

span.radio-label {
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.field-input input::placeholder {
  color: #8a8680;
}

.product-field.has-error .field-input {
  border: 2px solid #c7362f;
  background: #fff3f3;
}

.product-field.has-error .field-dropdown {
  border: 2px solid #c7362f;
  background: #fff3f3;
}

.product-field.has-error .field-dropdown .dropdown-label {
  color: #c7362f;
}

.field-error {
  font-family: "Inter-Regular";
  font-size: 14px;
  color: #c7362f;
}

.field-dropdown {
  justify-content: space-between;
  position: relative;
}

.field-dropdown select {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 24px;
}

.field-dropdown select:focus {
  outline: none;
}

.field-dropdown::after {
  content: "";
  width: 14px;
  height: 6px;
  border-left: 2px solid #282826;
  border-bottom: 2px solid #282826;
  transform: rotate(-45deg);
  position: absolute;
  right: 20px;
}

.js-custom-dropdown {
  padding: 0;
}

.js-custom-dropdown::after {
  pointer-events: none;
  content: none;
}

.dropdown-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 16px;
}

.dropdown-arrow svg {
  width: 17px;
  height: 16px;
  transition: transform 150ms ease;
}

.js-custom-dropdown.is-open .dropdown-arrow svg {
  transform: rotate(180deg);
}

.dropdown-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 18px 20px;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.dropdown-toggle:focus {
  outline: none;
}

/* Override Bootstrap's default caret pseudo-element on .dropdown-toggle */
.dropdown-toggle::after {
  content: none !important;
}

.js-custom-dropdown.is-open::after {
  transform: rotate(135deg);
}

.dropdown-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 10px);
  background: #f2efec;
  border: 1px solid #e5dece;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.dropdown-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 20px;
  font-family: "Inter-Regular";
  font-size: 16px;
  color: #282826;
  cursor: pointer;
}

.dropdown-item:hover,
.dropdown-item.is-active {
  background: #e5dece;
  font-weight: 600;
}

.field-prefix {
  font-weight: 500;
  color: #4c4c49;
}

.toggle-group {
  display: inline-flex;
  background: transparent;
  gap: 20px;
}

.radio-group {
  display: inline-flex;
  gap: 24px;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Inter-SemiBold";
  font-weight: 600;
  font-size: 18px;
  color: #282826;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-indicator {
  width: 44px;
  height: 44px;
  border: 2px solid #282826;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.radio-indicator::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #282826;
  transform: scale(0);
  transition: transform 150ms ease;
}

.radio-option input:checked + .radio-indicator::after {
  transform: scale(1);
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  min-width: 88px;
  border: 2px solid #282826;
  background: #fff;
  font-family: "Inter-SemiBold";
  font-weight: 600;
  font-size: 18px;
  color: #282826;
  cursor: pointer;
}

.toggle-btn.is-active {
  background: #f2efec;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: #f2efec;
  font-size: 14px;
  font-weight: 600;
  color: #282826;
  position: relative;
  cursor: default;
}

.info-icon:hover {
  background: #282826;
  color: #ffffff;
}

.info-icon::after {
content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 6px;
    background: #f2efec;
    padding: 4px 8px;
    width: 200px;
    white-space: normal;
    box-shadow: none;
    pointer-events: none;
    transition: opacity 120ms ease;
    z-index: 9;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.info-icon:hover::after {
  opacity: 1;
}

.info-pill {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f2efec;
  padding: 6px 10px;
  font-family: "Inter-SemiBold";
  font-size: 12px;
  color: #282826;
}

.info-pill-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #282826;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.product-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
}

.btn-outline,
.btn-primary {
width: 100%;
    height: 48px;
    border: 0px solid #282826;
    background: #fff;
    cursor: pointer;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.btn-outline {
    font-weight: 400;
    font-family: "Inter-Regular";
}

.btn-outline {
  text-decoration: underline;
}

.btn-primary {
  background: #282826;
  color: #fff;
}

/* Step 3 - Summary & Results */
.results-heading {
  margin-top: 56px;
  text-align: center;
}

.results-section {
  margin-top: 40px;
}

.results-card {
  background: #f2efec;
  padding: 48px 40px 40px;
  text-align: center;
}

.results-intro {
    max-width: 441px;
    margin: 0 auto;
    color: #282826;
    text-align: center;
    font-family: "Inter-SemiBold";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.results-amount {
    margin: 5px 0 16px;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 112px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.results-note {
    color: #282826;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    max-width: 591px;
    line-height: 150%;
    margin: 0 auto 24px auto;
}

.results-tiers {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 180%;
    padding-bottom: 60px;
}

.results-tiers li + li {
  margin-top: 8px;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0 auto;
}

.js-download-pdf {
display: inline-flex;
    height: 56px;
    padding: 15px 14px;
    justify-content: center;
    align-items: center;
    max-width: 179px;
    color: #282826;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
    background: transparent;
    border: 1px solid #000;
}
.results-actions .btn-primary {
display: flex;
    width: 179px;
    height: 56px;
    padding: 15px 20px;
    justify-content: center;
    align-items: center;
    color: #F2EFEC;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.resudestxt {
    padding: 50px 0 23px 0;
    max-width: 662px;
    margin: 0 auto;
    width: 100%;
}

.resudestxt p {
    color: #000;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0 0 10px 0;
}

/* Step 3 - summary footer blocks */
.results-summary {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.results-summary-group {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 24px;
  background: #f6f4f1;
  padding: 18px 32px;
}

h2.AdTitle {
    color: #282826;
    font-family: 'Inter-Bold';
    font-size: 42px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 45px 0 0 0;
}

.results-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 60%;
}

.results-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-family: "Inter-SemiBold";
  font-size: 14px;
  color: #282826;
}

.results-summary-label {
  color: #282826;
    font-family: "Inter-SemiBold";
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 10px;
}

.results-summary-value {
    text-align: left;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 132%;
    width: 142px;
}

.results-summary-edit {
align-self: center;
    min-width: 96px;
    background: #ffffff;
    display: flex;
    width: 152px;
    height: 40px;
    padding: 9px 40px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: none;
    color: #111;
    text-align: center;
    font-family: "Inter-Regular";
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-decoration-line: underline;
}

@media (max-width: 768px) {
  .results-summary-group {
    flex-direction: column;
    align-items: stretch;
  }

  .results-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .results-summary-value {
    text-align: left;
  }

  .results-summary-edit {
    align-self: flex-end;
  }
}

@media (max-width: 1100px) {
  .product-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .calc-hero-subtitle {
    font-size: 48px;
  }

  .product-details-title {
    font-size: 36px;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet device Starts */

@media (min-width: 768px) and (max-width: 1024px) {
.docs-hero h1 {
    color: #E5DECE;
    text-align: center;
    font-family: "Vanilla Bold";
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 115%; /* 87.4px */
    padding: 100px 50px;
}

.docs-hero .hero-inner {
    min-height: 476px;
}

.product-details-title {
    color: #282826;

/* www.precisemortgages.co.uk/Semantic/Heading 2 */
    font-family: "Vanilla Bold";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 48px; /* 100% */
}

.product-details-inner {
    padding: 0 33px;
}

.selected-product-row.js-selected-product-row {
    flex-direction: row;
    align-items: normal;
    padding: 30px 30px 30px 30px;
}

.selected-product-fields {
    display: block;
}

.selected-product-fields .selected-product-field {
    float: left;
    width: 33.33%;
    margin-bottom: 20px;
}

.selected-product-actions {
    flex-direction: column-reverse;
    justify-content: center;
    gap: 21px;
}

.selected-product-fields .selected-product-field:nth-child(4), .selected-product-fields .selected-product-field:nth-child(5) {
    margin-bottom: 0px;
}

.selected-product-change,.selected-product-see {
    height: 56px;
}

.selected-product-notice p, .selected-product-notice-link {
    font-size: 16px;
}

.product-field label {
    font-size: 18px;
}

.step-three {
    left: auto !important;
    right: 0px !important;
    transform: none !important;
}
}

@media (min-width: 1101px) and (max-width: 1229px) {
  #NumfDpdnts, #NonRevlvgCrdt, #RevlvgCrdt, #app1emsts, #app2emsts {
      min-height: 71px;
  }
}
@media only screen and (min-width: 1230px) {
  #NumfDpdnts, #NonRevlvgCrdt, #RevlvgCrdt, #app1emsts, #app2emsts{
      min-height: 47px;
  }
}



/* Tablet device Ends */
/* Calculator Ends */

/* Home Starts */

/* Hero banner */
.home-hero .hero-inner {
  height: 420px;
  flex-direction: column;
  gap: 40px;
  padding: 64px 24px;
}

.home-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.home-hero h1 {
  margin: 0;
  text-align: center;
  font-family: "Inter-SemiBold";
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5dece;
}

/* CTA row */
.home-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.home-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 211px;
    height: 48px;
    padding: 0 28px;
    text-decoration: none;
    border-radius: 0;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
    text-align: center;
    font-family: "Inter-Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.home-hero-btn--light {
  background: #e5dece;
  color: #282826;
  border: 1px solid #e5dece;
}

.home-hero-btn--light:hover {
  background: #f3ecd9;
  border-color: #f3ecd9;
}

.home-hero-btn--outline {
  background: transparent;
  color: #e5dece;
  border: 1px solid #e5dece;
}

.home-hero-btn--outline:hover {
  background: #e5dece;
  color: #282826;
}

.home-hero-btn-icon {
  flex-shrink: 0;
}

/* Tablet */
@media (max-width: 900px) {
  .home-hero h1 {
    font-size: 64px;
  }

  .home-hero .hero-inner {
    height: auto;
    min-height: 360px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .home-hero h1 {
    font-size: 36px;
    letter-spacing: 0.03em;
  }

  .home-hero .hero-inner {
    padding: 48px 20px;
    gap: 28px;
  }

  .home-hero-content {
    gap: 28px;
  }

  .home-hero-cta {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .home-hero-btn {
    width: 100%;
    min-width: 0;
  }
}

/* ---------------------------------------------------------------- */
/* Lending features section                                         */
/* ---------------------------------------------------------------- */
.lending-section {
  background: #e5dece;
}

.lending-top-bar {
  height: 3px;
  width: 100%;
  background: #7ab7cf;
}

.lending-inner {
  padding: 72px 0px 96px;
}

.lending-heading {
    margin: 0;
    width: auto;
    max-width: 100%;
    padding: 100px 24px 0px 24px;
    text-transform: uppercase;
    text-align: left;
    background: #e5dece;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 112.5%;
}

ul.lending-card-list li p {
    margin: 0;
}

/* Carousel viewport */
.lending-carousel {
  position: relative;
  padding: 0px 0px;
}

.lending-track {
  display: flex;
  gap: 30px;
}

.lending-card {
  flex: 1;
  background: #fff;
  padding: 36px 32px 15px;
  min-height: 280px;
}

/* Clones used for the tablet/mobile infinite-loop carousel — hidden on desktop */
.lending-card[data-clone] {
  display: none;
}

.lending-card-title {
    margin: 0 0 20px;
    text-transform: uppercase;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px;
}

.lending-card-lead {
    margin: 34px 0 10px;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.lending-card-list {
    margin: 0;
    padding-left: 20px;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.lending-card-list li {
  margin-bottom: 6px;
}

.lending-card-list li::marker {
  color: #282826;
}

/* Arrow controls — hidden on desktop, shown on tablet/mobile */
.lending-carousel-controls {
  display: none;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.lending-carousel-btn {
  width: 64px;
  height: 56px;
  border: 1px solid #282826;
  background: #282826;
  color: #e5dece;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.lending-carousel-btn:hover {
  background: #000;
  color: #fff;
}

/* Timeline intro */
.timeline-intro {
  margin-top: 80px;
}

.timeline-intro .lending-heading {
  margin-bottom: 16px;
}

.timeline-lead {
  margin: 0;
  font-family: "Inter-Regular";
  font-size: 16px;
  line-height: 1.5;
  color: #282826;
}

.container-1280.lending-inner, .container-1280.bdm-inner {
    max-width: 1122px;
}

/* Tablet — carousel: 2 cards visible, horizontal scroll, arrows visible */
@media (max-width: 1024px) {
  .lending-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 48px;
  }

  .lending-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .lending-track::-webkit-scrollbar {
    display: none;
  }

  .lending-card {
    flex: 0 0 calc(50% - 12px);
    scroll-snap-align: start;
  }

  /* Show clones on tablet/mobile — they make the loop continuous */
  .lending-card[data-clone] {
    display: block;
  }

  .lending-carousel-controls {
    display: flex;
  }

  .timeline-intro .lending-heading {
    text-align: left;
  }

  .bdm-section {
    background: #fff;
    padding: 40px 40px 40px !important;
}
.bdm-header-left {
    flex: auto !important;
    max-width: max-content !important; 
}


section.lending-section {
    padding: 0 32px;
}

.lending-heading {padding: 50px 205px 0px 205px;}
}

/* ---------------------------------------------------------------- */
/* Timeline track                                                   */
/* ---------------------------------------------------------------- */
.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

/* Horizontal line connecting the dots */
.timeline-track::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  top: 59px;
  height: 2px;
  background: #282826;
  z-index: 0;
}

.timeline-month {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.timeline-month-label {
  font-family: "Vanilla Bold";
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #282826;
}

.timeline-month-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #282826;
  position: relative;
  z-index: 1;
}

.timeline-month-text {
  font-family: "Inter-Regular";
  font-size: 14px;
  line-height: 1.5;
  color: #282826;
  max-width: 200px;
}

/* ---------------------------------------------------------------- */
/* Need back up / BDM postcode section                              */
/* ---------------------------------------------------------------- */
.bdm-section {
  background: #fff;
  padding:   50px 79px 50px;
}

.bdm-inner {
    background: #F2EFEC;
    padding: 40px 58px 7px;
}

.bdm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.bdm-header-left {
  flex: 1 1 360px;
  max-width: 600px;
}

.bdm-heading {
    margin: 0 0 16px;
    text-transform: uppercase;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: 112.5%;
}

.bdm-lead {
margin: 0;
    color: #282826;
    font-family: "Inter-Regular";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}

.bdm-header-right {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

/* "Residential mortgages" tag — overrides .bd-resi-btn for the home layout
   (smaller pill with a CSS down-arrow, instead of the tall image button). */
.bdm-tag {
  position: relative;
  height: auto;
  margin-bottom: 1px;
  padding: 12px 18px;
  font-family: "Inter-SemiBold";
  font-size: 14px;
  font-weight: 600;
  background: #282826;
  color: #fff;
  border: 0;
  cursor: default;
}

.bdm-tag::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 24px;
  width: 0;
  height: 0;
  background: none;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #282826;
  display: block;
}

.bdm-form {
  max-width: 280px;
}

.bdm-form .bd-postcode-row {
  margin-bottom: 0;
}

.bdm-form .bd-postcode-input {
  flex: 1 1 auto;
  width: 100%;
}

.bd-postcode-input-wrap {
  position: relative;
  flex: 0 0 260px;
  display: flex;
  align-items: stretch;
}

.bdm-form .bd-postcode-input-wrap {
  flex: 1 1 auto;
  width: 100%;
}

.bd-postcode-input-wrap .bd-postcode-input {
flex: 1 1 auto;
    width: 100%;
    padding-right: 44px;
    border: 1px solid #000;
    background: #FFF;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.bd-postcode-search-icon {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4c4c49;
  cursor: pointer;
}

.bd-postcode-search-icon:focus {
  outline: 2px solid rgba(40, 40, 38, 0.3);
  outline-offset: 2px;
}

.bd-postcode-search-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.bd-postcode-search-icon .bd-icon-clear {
  display: none;
}

.bd-postcode-search-icon.is-clear .bd-icon-search {
  display: none;
}

.bd-postcode-search-icon.is-clear .bd-icon-clear {
  display: block;
}


/* Postcode validation (home page) */
.bdm-section .bd-postcode-error {
  margin-top: 8px;
  font-family: "Inter-Medium";
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #c0392b;
  position: absolute;
    bottom: -26px;
}

.bdm-section .bd-postcode-input.is-invalid {
  border-color: #c0392b;
}

.bdm-section .bd-postcode-input.is-invalid:focus {
  outline: 2px solid rgba(192, 57, 43, 0.3);
  outline-offset: 0;
}

.bdm-section .bd-no-match {
  margin-top: 16px;
  font-family: "Inter-Medium";
  font-size: 16px;
  line-height: 1.5;
  color: #282826;
}

/* Cards laid out side-by-side; override the default vertical stacking */
.bdm-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bdm-cards .bd-office + .bd-office {
  margin-top: 0;
}

.bdm-cards .bd-card {
  max-width: none;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .bdm-header {
    flex-direction: column;
    align-items: stretch;
  }

  .bdm-header-right {
    flex-direction: row;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
  }

  .bdm-cards {
    grid-template-columns: 1fr;
  }

  /* Tablet: timeline becomes a horizontal-scroll row showing ~3 months,
     with the connector line extending off the right edge into the 4th. */
  .timeline-track {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 32px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .timeline-track::-webkit-scrollbar {
    display: none;
  }

  .timeline-month {
    flex: 0 0 calc((100% - 64px) / 3);
    min-width: 180px;
    scroll-snap-align: start;
  }
}

@media (max-width: 480px) {
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .bdm-heading {
    font-size: 32px;
  }
}

/* Mobile — 1 card visible at a time */
@media (max-width: 640px) {
  .lending-inner {
    padding: 56px 20px 72px;
  }

  .lending-heading {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .lending-card {
    flex: 0 0 100%;
    padding: 28px 24px 32px;
  }

  .lending-card-title {
    font-size: 26px;
  }

  .lending-carousel-btn {
    width: 56px;
    height: 48px;
  }

  .timeline-intro {
    margin-top: 56px;
  }
}

h2.lending-heading span {
    max-width: 1125px;
    margin: 0 auto;
    width: 100%;
    display: block;
}

section.lending-section-timeline .lending-inner {
    padding: 0 0 0 0;
}

section.lending-section-timeline {
    background: #e5dece;
}

.timeline-intro {
    margin: 0;
}

/* Timeline starts */
/* ---------------------------------------------------------------- */
/* Roadmap milestones (sits below the timeline section)             */
/* ---------------------------------------------------------------- */
.roadmap-section {
  background: #e5dece;
  padding: 0 0 64px;
}

.roadmap-inner {
  padding: 16px 54px 24px;
}

.roadmap-track {
  display: flex;
  align-items: start;
  gap: 16px;
}

.roadmap-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 0 0 auto;
}

.roadmap-icon {
  flex: 0 0 auto;
  color: #282826;
}

.roadmap-icon svg {
  display: block;
}

.roadmap-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-intro.roadmap-track .roadmap-item .roadmap-text {
    position: absolute;
    top: 29px;
}

.timeline-intro.roadmap-track {
    position: relative;
}

.roadmap-date {
    text-transform: uppercase;
    color: #282826;
    font-family: "Vanilla Bold";
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 112.5%;
}

.roadmap-text {
color: #282826;
    font-family: "Inter-Regular";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    max-width: 184px;
}

.roadmap-connector {
  position: relative;
  flex: 1 1 auto;
  min-width: 60px;
  height: 2px;
  background-image: linear-gradient(to right, #282826 50%, transparent 50%);
  background-size: 12px 2px;
  background-repeat: repeat-x;
  margin-top: 9px;
}

.roadmap-connector--solid {
  background-image: none;
  background-color: #282826;
}

/* Tablet */
@media (max-width: 1024px) {
  .roadmap-inner {
    padding: 8px 24px 24px;
  }

  .roadmap-track {
    gap: 12px;
    padding: 0 35px
  }

  .roadmap-connector {
    min-width: 32px;
  }

  .roadmap-date {
    font-size: 18px;
  }

  .roadmap-text {
    font-size: 13px;
  }

  .bdm-inner {
    background: #F2EFEC;
    padding: 40px 58px 40px;
  }

  .bdm-cards {
    grid-template-columns: max-content;
  }

 .roadmap-inner {
    padding: 8px 24px 24px;
  }

  .roadmap-track {
    align-items: flex-start;
    gap: 8px;
  }

  .roadmap-item {
    flex-direction: column;
    align-items: flex-start;
    width: 44px;
    position: relative;
  }

  .roadmap-content {
    position: absolute;
    top: 56px;
    left: 0;
    gap: 6px;
    width: max-content;
  }

  .roadmap-connector {
    min-width: 32px;
    margin-top: 14px;
    max-width: 37%;
  }

  .roadmap-date {
    font-size: 18px;
  }

  .roadmap-text {
    font-size: 13px;
  }

section.lending-section-timeline {
    margin-top: -32px;
    padding-bottom: 143px;
}

}

/* Mobile — stack vertically with a vertical dashed connector */
@media (max-width: 700px) {
  .roadmap-section {
    padding: 0 0 48px;
  }

  .roadmap-inner {
    padding: 8px 20px 16px;
  }

  .roadmap-track {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .roadmap-item {
    width: 100%;
  }

  .roadmap-connector {
    width: 2px;
    height: 32px;
    flex: 0 0 auto;
    min-width: 0;
    margin-left: 21px;
    background-image: linear-gradient(to bottom, #282826 50%, transparent 50%);
    background-size: 2px 12px;
    background-repeat: repeat-y;
  }
}

section.hero.home-hero {
    background-repeat: no-repeat;
    margin: 0 auto;
    background-position: 50% 0%;
}

.timeline-intro.roadmap-track .roadmap-item:nth-child(3) .roadmap-content {
    max-width: 144px;
}

.timeline-intro.roadmap-track .roadmap-item:nth-child(3) .roadmap-content .roadmap-text {
    position: static;
}

.timeline-intro.roadmap-track .roadmap-item:nth-child(5) .roadmap-content .roadmap-text {
    position: static;
    width: 80px;
}

.timeline-intro.roadmap-track .roadmap-item:nth-child(3) .roadmap-content .roadmap-text {
    width: 284px;
}
/* Timeline ends */

/* Home Ends */


/* Conveyancing Starts */

.accordion-directory__table {
  --accordion-directory-border: #F2EFEC;
  --accordion-directory-text: #1f1f1f;
  --accordion-directory-row-height: 54px;
  --bs-table-bg: transparent;
  --bs-table-accent-bg: transparent;
  --bs-table-bg-state: transparent;
  --bs-table-bg-type: transparent;
  --bs-border-color: #F2EFEC;

  border-collapse: collapse;
  color: var(--accordion-directory-text);
  font-family: inherit;
  inline-size: 100%;
  min-inline-size: 620px;
  table-layout: auto;
}

.accordion-directory__table td,
.accordion-directory__table th {
  background-color: transparent !important;
  border-bottom: 1px solid #F2EFEC !important;
  box-shadow: none !important;
  font-weight: 400 !important;
  padding-top: 28.5px !important;
  padding-bottom: 26.5px !important;
  padding-left: 16px !important;
  padding-right: 24px !important;
  vertical-align: middle;
}

.accordion-directory__table--conveyancer {
  margin-bottom: 50px;
}

.accordion-directory__table--conveyancer td,
.accordion-directory__table--conveyancer th {
  border-right: 1px solid #F2EFEC !important;
}

.accordion-directory__table--conveyancer td:last-child,
.accordion-directory__table--conveyancer th:last-child {
  border-right: 0 !important;
}

.accordion-directory__table tbody tr {
  block-size: var(--accordion-directory-row-height);
  border-bottom: 1px solid #F2EFEC;
}

.accordion-directory__table tbody td:nth-child(3),
.accordion-directory__table tbody td:nth-child(4) {
  text-align: center;
}

.accordion-directory__table tbody tr:last-child td,
.accordion-directory__table tbody tr:last-child th {
  border-bottom: 0 !important;
}

.accordion-directory__table td p {
  margin-bottom: 0;
}

.accordion-directory__logo-cell {
  padding-inline-start: 18px;
}

.accordion-directory__table td.accordion-directory__logo-cell {
  padding-left: 32px !important;
}

.accordion-directory__logo {
  block-size: 30px;
  display: block;
  inline-size: min(150px, 100%);
  object-fit: contain;
  object-position: left center;
}

.accordion-directory__link {
  align-items: center;
  color: var(--accordion-directory-text);
  display: inline-flex;
  font-size: 14px;
  line-height: 1.25;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.accordion-directory__link:hover,
.accordion-directory__link:focus {
  color: var(--bs-link-hover-color, #0a58ca);
}

.accordion-directory__table td.accordion-directory__region-header {
  background-color: #282826 !important;
  border-bottom: 0 !important;
  color: #fff !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

.contact-accordion-panel .accordion-directory__region-header p {
  color: #ffffff;
}

.accordion-directory__table--conveyancer tbody td:nth-child(1):not(.accordion-directory__region-header) {
  background-color: #F2EFEC !important;
  border-bottom: 1px solid #fff !important;
}

.accordion-directory__table--conveyancer tbody td:nth-child(2) {
  white-space: nowrap;
}

.accordion-directory__table--conveyancer tbody td:nth-child(3),
.accordion-directory__table--conveyancer tbody td:nth-child(4) {
  text-align: left;
}

@media (max-width: 767.98px) {
  .accordion-directory__table,
  .accordion-directory__table tbody,
  .accordion-directory__table tr,
  .accordion-directory__table td {
    display: block;
    inline-size: 100%;
    min-inline-size: 0;
  }

  .accordion-directory__table td,
  .accordion-directory__table th {
    border-bottom: 0 !important;
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .accordion-directory__table tbody tr {
    block-size: auto;
    border-bottom: 1px solid #F2EFEC;
    padding-block: 12px;
  }

  .accordion-directory__table tbody tr:last-child {
    border-bottom: 0;
  }

  .accordion-directory__table--conveyancer td,
  .accordion-directory__table--conveyancer th {
    border-right: 0 !important;
  }

  .accordion-directory__logo-cell {
    display: block;
    padding-block-end: 8px;
  }

  .accordion-directory__logo {
    inline-size: 120px;
  }

  .accordion-directory__link {
    white-space: normal;
  }
}

table.table.accordion-directory__table {
  margin-top: -30px;
    margin-left: -36px;
    margin-right: -36px;
    width: calc(100% + 72px); 
}

.convey .contact-sub-accordion {
    margin-left: -37px;
    margin-right: -37px;
}

.convey a.accordion-directory__link {
    font-weight: 400;
    color: #000;
}

.convey .contact-accordion-btn {
    height: 80px;
}

.convey hr{
  margin: 1rem 0;
    color: #f2efec;
    border: 0;
    border-top: var(--bs-border-width) solid;
    margin-left: -17px;
    margin-right: -23px;
    opacity: 1;
}

.convey .contact-accordion-btn span {
    font-size: 32px;
    font-family: 'Vanilla Bold';
}
.convey table td:first-child p {
    font-weight: 700 !important;
}

 .ctaLinks {
    background-color: #E5DECE;
    padding: 91px 20px;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    height: 340px;
  }

  .ctaLinks .section-titlee {
    color: #000;
text-align: center;
font-family: "Vanilla Bold";
font-size: 70px;
font-style: normal;
font-weight: 400;
line-height: 60px;
  }

  .cta-block__actions {
    margin: 0;
  }

  .cta-block__btn {
    display: inline-block;
    margin: 0 23px;
    padding: 12px 20px;
    text-decoration: none;
    width: 123px;
    height: 48px;
    text-align: center;
    font-family: 'Inter-SemiBold';
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
  }

  .cta-block__btn--login {
    background: #F2EFEC;
    color: #282826;
  }

  .cta-block__btn--login:hover {
    background-color: #f0f0f0;
  }

  .cta-block__btn--register {
    background: #282826;
    color: #F2EFEC;
  }

  .cta-block__btn--register:hover {
    background-color: #3d3d3b;
  }

  .convey .contact-accordion-item:nth-child(2) {
    margin-bottom: 50px;
}

.convey .contact-accordion-item:nth-child(2) {
    margin-bottom: 50px;
}

.convey .contact-sub-accordion .contact-accordion-item {
    margin-bottom: 30px;
}

.convey .contact-sub-accordion .contact-accordion-item:nth-child(3) {
    margin-bottom: -2px;
}

.convey .contact-accordion-item.is-open .contact-sub-accordion .contact-accordion-btn .contact-accordion-icon {
    transform: none;
}

.convey .contact-accordion-item.is-open .contact-sub-accordion .is-open .contact-accordion-btn .contact-accordion-icon {
    transform: rotate(180deg);
}

.convey .contact-sub-accordion .contact-accordion-btn span {
    font-family: "Inter-SemiBold" !important;
    font-size: 24px !important;
}
.convey .contact-sub-accordion table.table.accordion-directory__table.mb-0 {
    margin-top: 0px;
}

@media (min-width: 768px) and (max-width: 1024px) {

    /* Stack column 1 and 2 ONLY inside the first accordion */
    .convey .contact-accordion-stack > .contact-accordion-item:nth-child(1) table td:nth-child(1),
    .convey .contact-accordion-stack > .contact-accordion-item:nth-child(1) table td:nth-child(2) {
        display: block;
        width: 100%;
        padding: 20px !important;
    }

    /* Adjust gap between column 1 and 2 */
    .convey .contact-accordion-stack > .contact-accordion-item:nth-child(1) table td:nth-child(1) {
        padding-bottom: 15px !important;
        border-bottom: none !important;
    }

    .convey .contact-accordion-stack > .contact-accordion-item:nth-child(1) table td:nth-child(2) {
        padding-top: 0 !important;
    }

    /* Keep columns 3 & 4 aligned left */
    .convey .contact-accordion-stack > .contact-accordion-item:nth-child(1) table td:nth-child(3),
    .convey .contact-accordion-stack > .contact-accordion-item:nth-child(1) table td:nth-child(4) {
        display: table-cell;
        text-align: left;
        vertical-align: bottom;
    }
    .convey .contact-sub-accordion .accordion-directory__table td, .convey .contact-sub-accordion .accordion-directory__table th{
      padding-left: 16px !important;
    padding-right: 16px !important;
    }
    .links-section.ctaLinks {
    padding: 50px 155px;
}
.ctaLinks .section-titlee{
  line-height: 70px;
}
}

.convey .contact-accordion-stack {
    margin-bottom: 50px;
}
.convey .contact-sub-accordion .contact-accordion-item:last-child{
  margin-bottom: -2px;
}
/* Conveyancing Ends */












