html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  border: 0;
  font-size: 100%;
  font: inherit;
  margin: 0;
  padding: 0;
}
article,
aside,
details,
figcaption,
figure,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
* {
  box-sizing: border-box;
}
img {
  max-width: 100%;
}

body {
  background: #f5f7fa;
  background-repeat: no-repeat;
  background-size: cover;
  color: rgb(0, 0, 0);
  font-weight: 400;
  font-size: 90%;
  font-family: Roboto, "Helvetica Neue";
  font-display: swap;
  font-stretch: normal;
  text-rendering: optimizeLegibility !important;
  -webkit-font-smoothing: antialiased !important;
  -webkit-text-size-adjust: none;
}

/* Fonts */
h1,
h2 {
  line-height: 125%;
}
h1 {
  font-size: 300%;
  padding: 1.5vh 0;
}
h2 {
  font-size: 150%;
  padding: 0 0 0.3em 0;
}
h3 {
  font-size: 200%;
  line-height: 125%;
  padding: 1em 0;
}
h3 strong {
  font-size: 150%;
  display: block;
  line-height: 125%;
}
h4 {
  font-size: 130%;
  line-height: 125%;
  font-weight: 400;
  padding: 0.5em 0;
}
p {
  line-height: 150%;
  padding: 0.6em 0;
  color: black;
}
strong {
  font-weight: 700;
}
em {
  font-style: italic;
}
small,
p small {
  font-size: 90%;
  padding: 0 0 0.5em 0;
  line-height: 140%;
  font-weight: 400;
  display: block;
  color: #999;
}

@media only screen and (max-width: 767px) {
  h1 {
    font-size: 200%;
    padding: 1vh 0;
  }
  h2 {
    font-size: 150%;
  }
  h3 {
    font-size: 125%;
  }
}
@media only screen and (max-width: 420px) {
  h1 {
    font-size: 160%;
  }
  h2 {
    font-size: 130%;
  }
  h4 {
    font-size: 100%;
  }
}

/* Links */
a {
  color: rgb(0, 0, 0);
}
input[type="submit"],
.btn,
button,
.btn i {
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.btn,
input[type="submit"] {
  color: #ffffff;
  -webkit-appearance: none;
  display: inline-block;
  cursor: pointer;
  padding: 1em;
  font-size: 125%;
  min-width: 300px;
  margin: 1em 0;
  border: 0;
  text-align: center !important;
  text-decoration: none;
  border-radius: 50px;
}
.btn i,
.btn span {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.btn i {
  color: #000005;
  font-size: 150%;
}
.btn:hover {
  background-color: linear-gradient(to right, #903579, #633f8f, #18265f);
}

@media only screen and (max-width: 420px) {
  .btn,
  input[type="submit"] {
    padding: 1em;
    letter-spacing: 0px;
    min-width: 240px;
  }

  .btn i,
  .btn span {
    margin-right: 4px;
  }
}


.twocolordiv {
  border: none !important;
  background: linear-gradient(to right, #903579, #633f8f, #18265f) !important;
}

.legends p {
  display: inline-block;
  color: black;
  vertical-align: top;
  text-align: center;
  line-height: 10px;
  padding-left: 20px;
  padding-right: 10px;
  font-size: 20px;
}

@media only screen and (max-width: 425px) {
  .legends p {
    padding-right: 20px;
  }
  .legends {
    text-align: left;
  }
}

@media only screen and (max-width: 375px) {
  .legends p {
    padding-right: 10px;
  }
  .legends {
    text-align: left;
  }
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
  /* Styles */
}

/* Smartphones (landscape) ----------- */
@media only screen and (min-width: 321px) {
  /* Styles */
}

/* Smartphones (portrait) ----------- */
@media only screen and (max-width: 320px) {
  /* Styles */
}

/* Header */
header {
  background: white;
  z-index: 100;
  text-align: left;
  display: grid;
  grid-template-columns: 50% 50%;
  justify-items: stretch;
  position: relative;
  align-items: center;
  box-shadow: 0 1px 5px rgba(25, 25, 25, 0.2);
}
.logo {
  padding: 1em 3vw;
}
.logo img {
  width: 150px;
}
.retail-capital {
  padding: 1em 3vw;
  text-align: right;
}
.retail-capital img {
  width: 200px;
  float: right;
}
header img {
  display: block;
}

@media only screen and (max-width: 767px) {
  /* .logo {
    width: 30%;
  } */
  .logo img {
    max-width: 160px;
  }
  .retail-capital img {
    width: 160px;
  }
}
@media only screen and (max-width: 420px) {
  .logo {
    height: 100%;
    width: auto;
  }
  .retail-capital img {
    width: 130px;
  }
}

table {
  margin: auto;
  color: black;
  border-spacing: 20px;
}
td p {
  padding: 0 30px 20px;
  text-align: left;
  color: black;
}

/* Main Structure */
#main-content {
  display: hidden;
  clear: both;
  position: relative;
  z-index: 10;
  text-align: center;
  height: 100vh;
  overflow: hidden;
}

@media only screen and (min-width: 768px) {
  .page-container {
  }
  .intro {
    padding: 0.75em;
  }
  .intro p {
    font-size: 115%;
  }
  #main-content {
    max-width: 900px;
    margin: 0 auto;
  }
}
@media only screen and (max-width: 769px) {
  #main-content {
    padding: 1em;
    overflow-y: scroll; 
  }
}

/* Form Elements */
.white-container {
  background: white;
  clear: both;
  padding: 2.5em;
  margin: 2vh 0 5vh;
  position: relative;
  box-shadow: 0 1px 10px rgba(25, 25, 25, 0.1);
  border-radius: 10px;
  overflow-x: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-icon {
  display: inline-block;
  position: relative;
  z-index: 10;
  margin: 0 0 1em 0;
}
.feature-icon img {
  max-width: 250px;
}
.notification {
  display: inline-block;
  position: relative;
  z-index: 10;
  margin: 0;
}
.notification h3 {
  padding: 0 0 1em 0;
}
.notification p {
  padding: 0 0 1em 0;
}
.notification img {
  max-width: 200px;
}
.form-item {
  display: block;
  padding: 0.6em 0;
  max-width: 400px;
  margin: 0 auto;
}
.form-item .btn,
.form-item input[type="submit"] {
  margin: 0;
}
.field-title {
  line-height: 125%;
  color: black;
  padding: 5px 0;
}

.form-grid .form-item {
  display: block;
  padding: 0;
  max-width: 100%;
  margin: 0;
  text-align: left;
}

input,
select,
textarea {
  font-size: 90%;
  font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
  border: 0;
  background: #f8fbfe;
  border: 1px solid #b6d9fb;
  outline: none;
  text-align: left;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: normal;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  padding: 1em;
  color: rgb(0, 0, 0);
  width: 100%;
  background: #f5f7fa !important;
  border: 1px solid #f5f7fa !important;
}
input:focus,
textarea:focus {
  border-color: #e8f2fb;
  background: #e8f2fb !important;
}

input.readonly,
input.readonly:focus,
select[disabled],
select.readonly {
  background: #f5f7fa !important;
  border-color: #f5f7fa !important;
  border-bottom: none !important;
}
input[type="checkbox"] {
  width: auto !important;
  margin: 0;
}
input[type="checkbox"] {
  font-size: 150%;
}
input#datepicker {
  width: 125px !important;
  margin-right: 4px;
}
input[type="submit"] {
  display: block;
  width: 100%;
  -webkit-appearance: none;
}
select {
  min-width: 50%;
  width: 100%;
  height: 2.9rem;
  padding: 1em;
  overflow: visible;
  text-overflow: ellipsis;
  white-space: normal;
  border-radius: 4px;
}
::placeholder {
  color: grey;
  font-weight: 400;
}
span.optional {
  display: inline-block;
  color: #999;
  font-size: 85%;
}
fieldset {
  display: block;
  padding: 0 0 1em;
}
.otp input {
  width: 40px;
  display: inline-block;
}
fieldset .response.error {
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  margin: 0.25em 0;
}
.select {
  display: block;
  position: relative;
}
.select.autowidth {
  display: inline-block;
  min-width: 100px;
}
.select:before {
  position: absolute;
  color: #999;
  right: 1em;
  top: 0.8em;
  font-family: "Helvetica Neue";
  font-weight: 900;
  content: "\f0dd";
}
.select select {
  -webkit-appearance: none;
  padding: 0 1em;
  width: 100%;
  height: 40px;
  background: white;
}
input:not(:placeholder-shown) {
  background: #f5f7fa;
}

/* Checkboxes */
.checkbox input {
  display: inline-block;
  vertical-align: top;
  margin-right: 5px;
}
.checkbox p {
  display: inline-block;
  vertical-align: top;
  width: 90%;
  width: calc(100% - 40px);
  text-align: left;
  padding: 0;
  font-size: 90%;
}
span.checkbox {
  display: inline-block;
  vertical-align: top;
  margin-right: 2em;
}

.response {
  display: block;
  text-align: center;
  margin: 1em 0;
  padding: 1em;
  font-size: 90%;
  line-height: 125%;
  border-radius: 4px;
}
.response i {
  margin-right: 0.5em;
}
.response.error {
  color: red;
  margin: 0;
  padding: 0.5em 0;
}
.error {
  color: red;
  margin: 0;
  padding: 0.5em 0;
}
.response.success {
  color: #18c00b;
  border: 1px solid #18c00b;
  background: #f4fdf3;
}

@media only screen and (min-width: 769px) {
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 1.5em;
    grid-row-gap: 1em;
  }
  .checkbox {
    display: block;
    max-width: 90%;
    margin: 0 auto;
  }
}
@media only screen and (max-width: 768px) {
  .white-container {
    padding: 1.5em;
  }
  .form-grid .form-item {
    padding: 0.5em 0;
  }
  .response {
    padding: 0.5em;
  }
  .feature-icon img {
    max-width: 125px;
  }
}
@media only screen and (max-width: 420px) {
  .white-container {
    padding: 1em;
  }
}

/* Range Slider */
.rangeslider,
.rangeslider__fill {
  display: block;
  border-radius: 15px;
}
.rangeslider {
  background: #e0e5f0;
  position: relative;
}
.rangeslider--vertical {
  width: 10px;
  min-height: 150px;
  max-height: 100%;
  margin: 0 auto;
}
.rangeslider--horizontal {
  width: 95%;
  min-height: 10px;
  max-width: 95%;
  margin: 0 auto;
}
.rangeslider--disabled {
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
  opacity: 0.4;
}
.rangeslider__fill {
  background: linear-gradient(to right, #903579, #633f8f, #18265f);
  position: absolute;
}
.rangeslider--vertical .rangeslider__fill {
  bottom: 0;
  width: 100%;
}
.rangeslider--horizontal .rangeslider__fill {
  left: 0;
  height: 100%;
}
.rangeslider__handle {
  background: white;
  cursor: pointer;
  display: inline-block;
  width: 34px;
  height: 34px;
  position: absolute;
  background: #40abb2;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.25);
}
.rangeslider__handle:after {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: +1;
  background: f5a81d;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}
.rangeslider_handle:hover {
  background: #40abb2;
}
.rangeslider__handle:active,
.rangeslider--active .rangeslider__handle {
  background: #40abb2;
}
.rangeslider--vertical .rangeslider__handle {
  left: -12px;
  touch-action: pan-x;
  -ms-touch-action: pan-x;
}
.rangeslider--horizontal .rangeslider__handle {
  top: -12px;
  touch-action: pan-y;
  -ms-touch-action: pan-y;
}

.amount-slider,
.months-slider {
  text-align: center;
  position: relative;
}
.dragbar {
  clear: both;
  padding: 1em 35px;
}

.amount-slider output:before {
  content: "R";
}
.output-value {
  font-size: 150%;
  height: 55px;
  line-height: 55px;
  display: block;
  position: relative;
  margin: 1em 0;
  background: white;
  color: rgb(0, 0, 0);
}
.output-value output {
  display: block;
  outline: none;
}
.output-value {
  border-radius: 50px;
  background: white;
  border: 1px solid #e0e5f0;
}
.output-value i {
  position: absolute;
  left: 1em;
  top: 0;
  color: #e0e5f0;
  line-height: 54px;
}

#monthsOutput:after {
  content: "months";
  margin-left: 5px;
}

.range-sliders button {
  background: none;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #803579;
  border: 5px solid #e0e5f0;
  font-size: 28px;
  line-height: 28px;
  width: 34px;
  height: 34px;
  border-radius: 30px;
  text-indent: 0;
  padding: 0;
  cursor: pointer;
  outline: inherit;
  overflow: hidden;
}

.range-sliders button svg {
  display: block;
  margin: 0 auto;
  position: relative;
  top: 0;
  left: 0;
}
.range-sliders button:hover {
  color: #b9c2d6;
  border-color: #b9c2d6;
}
.range-sliders button.less-amount,
.range-sliders button.less-months {
  position: absolute;
  left: 0px;
  top: 2px;
}
.range-sliders button.more-amount,
.range-sliders button.more-months {
  position: absolute;
  right: 0px;
  top: 2px;
}

.results {
  display: grid;
  margin: 1.5em 0;
  grid-template-columns: repeat(4, 1fr);
  grid-column-gap: 4px;
}
.results .title {
  padding: 10px 0;
  position: relative;
  color: rgb(0, 0, 0);
  white-space: nowrap;
}
.results .value {
  background: #f5f7fa;
  height: 55px;
  line-height: 55px;
}
.results div.value:last-of-type {
  background: #e8f2fb;
}
.text-with-tip {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media only screen and (min-width: 769px) {
  .range-sliders {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 2em;
    justify-items: stretch;
    position: relative;
  }
  .results .value {
    font-size: 125%;
  }
  .amount-btns,
  .months-btns {
    display: block;
  }
  .range-sliders button {
    float: right;
  }
  .range-sliders button:last-of-type {
    float: left;
  }
}
@media only screen and (max-width: 768px) {
  .results .title {
    padding: 4px 0;
    letter-spacing: 0;
  }
  .results {
    grid-template-columns: repeat(2, 1fr);
  }
  .results .value {
    height: 45px;
    line-height: 45px;
  }
  .output-value {
    font-size: 125%;
    height: 45px;
    line-height: 45px;
    margin: 0.5em 0;
  }
  .output-value i {
    line-height: 44px;
  }
}
@media only screen and (max-width: 426px) {
  .results {
    margin: 1em 0;
  }
  .results .title {
    font-size: 10px;
    padding: 4px 0;
    letter-spacing: 0;
  }
  .results .value {
    height: 45px;
    line-height: 45px;
  }
  .output-value {
    font-size: 125%;
    height: 45px;
    line-height: 45px;
    margin: 0.5em 0;
  }
  .output-value i {
    line-height: 44px;
  }
}
@media only screen and (max-width: 421px) {
  .results {
    margin: 1em 0;
    grid-column-gap: 1px;
  }
}

@media only screen and (max-width:375px){
  .results {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Tooltip Styles */
[data-tooltip],
.tooltip {
  position: relative;
  cursor: pointer;
}
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after {
  position: absolute;
  visibility: hidden;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
  opacity: 0;
  -webkit-transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out,
    -webkit-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
  -moz-transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out,
    -moz-transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
  transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out,
    transform 0.2s cubic-bezier(0.71, 1.7, 0.77, 1.24);
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  pointer-events: none;
}
[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
.tooltip:hover:before,
.tooltip:hover:after {
  visibility: visible;
  -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
  filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100);
  opacity: 1;
}

.tooltip:before,
[data-tooltip]:before {
  z-index: 10001;
  border: 6px solid transparent;
  background: transparent;
  content: "";
}
.tooltip:after,
[data-tooltip]:after {
  z-index: 10000;
  padding: 10px 15px;
  width: max-content;
  background-color: #40abb2;
  color: white;
  border-radius: 4px;
  content: attr(data-tooltip);
  font-size: 13px;
  line-height: 1.3em;
  text-align: left;
}
[data-tooltip]:before,
[data-tooltip]:after,
.tooltip:before,
.tooltip:after,
.tooltip-top:before,
.tooltip-top:after {
  bottom: 100%;
  left: 50%;
}
[data-tooltip]:before,
.tooltip:before,
.tooltip-top:before {
  margin-left: -6px;
  margin-bottom: -12px;
  border-top-color: #40abb2;
}
[data-tooltip]:after,
.tooltip:after,
.tooltip-top:after {
  margin-left: -80px;
}
[data-tooltip]:hover:before,
[data-tooltip]:hover:after,
[data-tooltip]:focus:before,
[data-tooltip]:focus:after,
.tooltip:hover:before,
.tooltip:hover:after,
.tooltip-top:hover:before,
.tooltip-top:hover:after {
  -webkit-transform: translateY(-12px);
  -moz-transform: translateY(-12px);
  transform: translateY(-12px);
}
span.tooltip i {
  color: rgb(0, 0, 0);
  margin: 0 3px;
  font-size: 14px;
}
span.tooltip i:hover {
  color: #40abb2;
}
@media only screen and (max-width: 426px) {
  .results .tooltip {
    margin-top: 5px;
  }
  .tooltip:after,
  [data-tooltip]:after {
    width: 110px;
    font-size: 12px;
  }
  [data-tooltip]:after,
  .tooltip:after,
  .tooltip-top:after {
    margin-left: -55px;
  }
}

.tooltip:last-child:after,
[data-tooltip]:last-child:after {
  left: auto !important;
  right: 0 !important;
  margin-left: 0 !important;
  transform: translateX(0) !important;
}

/* For tooltips in .results table, target the last column's tooltip */
.results .value:last-of-type .tooltip:after,
.results .value:last-of-type [data-tooltip]:after {
  left: auto !important;
  right: 0 !important;
  margin-left: 0 !important;
  transform: translateX(0) !important;
}

.results .tooltip,
.results [data-tooltip] {
  position: relative;
}
.results .tooltip:after,
.results [data-tooltip]:after {
  left: 100% !important;
  transform: translateX(-90%) !important;
}
.results .tooltip:before,
.results [data-tooltip]:before {
  left: 100% !important;
  transform: translateX(-90%) !important;
}

@media only screen and (max-width: 326px) {
  .results .tooltip {
    margin-top: 5px;
  }
  .tooltip:after,
  [data-tooltip]:after {
    width: max-content;
    font-size: 12px;
  }
  [data-tooltip]:after,
  .tooltip:after,
  .tooltip-top:after {
    margin-left: -55px;
  }
}

/* invisible element */
.invisible {
  display: none;
}


.hidden {
  display: none;
}

.collapsible {
  max-height: 4.3em;
  overflow: hidden;
  transition: max-height 0.3s ease;
  line-height: 1.5;
}
.expanded {
  max-height: 100em;
}
.show-more {
  cursor: pointer;
  text-decoration: underline;
  color: #000 !important;
  font-weight: bold !important;
}

.truncate-text {
  display: none;
}

#intro-block.expanded .truncate-text {
  display: inline;
}

/* =============================================================================
   Contract Page Section Headings
   ============================================================================= */
#information-area h2:not(.large) {
  font-weight: 700;
  margin: 2em 0 1em;
  border-bottom: 2px solid #232323;
  padding-bottom: 0.5em;
  display: inline-block;
}
#information-area h2:not(.large):first-of-type {
  margin-top: 1em;
}

/* Hide empty sections cleanly */
#information-area h2:not(.large):hidden + .form-grid {
  display: none !important;
}

/* Adjust spacing when sections are hidden */
.divider:hidden + br:hidden + h2:not(.large) {
  margin-top: 1em;
}

/* =============================================================================
   Contract Summary Section
   ============================================================================= */
.contract-summary-container {
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  padding: 2em;
  margin: 2em 0;
  position: relative;
}

.contract-summary-container h2 {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 1.5em !important;
  text-align: center;
  border-bottom: none !important;
  padding-bottom: 0 !important;
  display: block !important;
  position: relative;
}

.contract-summary-container h2:after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #232323;
  margin: 0.5em auto;
}

.contract-summary-container .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
}

.contract-summary-container .field-title {
  font-weight: 600 !important;
  color: #444 !important;
  font-size: 0.95em !important;
}

.contract-summary-container .form-field input {
  font-weight: 700;
  font-size: 1.1em !important;
  color: #232323 !important;
}

@media only screen and (max-width: 767px) {
  .contract-summary-container .form-grid {
    grid-template-columns: 1fr;
    gap: 1em;
  }
}

/* =============================================================================
   Label styles to differentiate form labels from data
   ============================================================================= */
   label,
   .field-title,
   legend {
     color: #666 !important;
     font-size: 14px !important;
     font-weight: 500 !important;
     font-style: bold !important;
     letter-spacing: 0.5px !important;
     margin-bottom: 4px !important;
   }
   
  /* =============================================================================
    Plain-text styling for read-only contract fields
    ============================================================================= */
   
   /* Only readonly inputs, selects, textareas become plain text */
   input[readonly]:not([type="checkbox"]),
   select[readonly],
   textarea[readonly] {
     border: none !important;
     background: transparent !important;
     padding: 8px 0 !important;
     font-size: 16px !important;
     color: #747171 !important;
     outline: none !important;
     box-shadow: none !important;
     border-radius: 0 !important;
     border-bottom: 1px solid #ccc !important;
     pointer-events: none !important;
     cursor: default !important;
     font-weight: normal !important;
   }
   
   input[readonly]:focus,
   select[readonly]:focus,
   textarea[readonly]:focus {
     outline: none;
     border-bottom: 1px solid #ccc;
   }
   
/* =============================================================================
   Editable fields
   ============================================================================= */
   
input:not([readonly]):not([disabled]),
select:not([readonly]):not([disabled]),
textarea:not([readonly]):not([disabled]),
input:not(.readonly),
select:not(:disabled) {
  border-bottom: 2px solid #232323 !important;
  pointer-events: auto !important;
  cursor: text !important;
  background-color: #f5f7fa !important;
}
   
/* Required field asterisk */
.required-asterisk {
  color: #FF0000 !important;
  margin-left: 4px !important;
  font-weight: bold !important;
}
   
/* Specific targeting for company registration fields */
#company_registration_name:not(.readonly),
#company_registration_number:not(.readonly) {
  border-bottom: 2px solid #232323 !important;
  pointer-events: auto !important;
  cursor: text !important;
}
   
/* Error field styling after validation */
input.validation-error,
select.validation-error,
textarea.validation-error,
#information-area input.validation-error,
#information-area select.validation-error,
#information-area textarea.validation-error,
input.validation-error:not([readonly]):not([disabled]),
select.validation-error:not([readonly]):not([disabled]),
textarea.validation-error:not([readonly]):not([disabled]) {
  border-bottom: 2px solid #ff0000 !important;
  box-shadow: 0 1px 0 0 #ff0000 !important;
}

/* =============================================================================
   Footer Logo Component - Sticky footer branding
   ============================================================================= */
.footer-logo-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 12px 0;
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.powered-by-text {
  font-size: 14px;
  font-weight: 500;
  color: #666;
  white-space: nowrap;
}

.footer-logo-image {
  height: 32px;
  width: auto;
  max-width: 120px;
  display: block;
}

/* Hide footer logo by default - partners must explicitly enable it */
.footer-logo-container {
  display: none !important;
}

/* Show footer logo only when partner has enabled it AND JavaScript confirms image exists */
.footer-logo-container.show {
  display: block !important;
}

/* Adjust main content to account for sticky footer when footer is visible */
body:has(.footer-logo-container.show) #main-content {
  padding-bottom: 60px;
}

@media only screen and (max-width: 767px) {
  .footer-logo-container {
    padding: 10px 0;
  }
  
  .powered-by-text {
    font-size: 12px;
  }
  
  .footer-logo-image {
    height: 28px;
    max-width: 100px;
  }
  
  .footer-logo {
    gap: 6px;
  }
  
  body:has(.footer-logo-container.show) #main-content {
    padding-bottom: 50px;
  }
}