/* Base Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

/* Header */
header {
  margin: 0 auto;
  padding: 20px 15px;
  border-bottom: 1px solid #ddd;
  background-color: #ffffff;
}

header img {
  max-width: 150px;
  height: 100px;
  width: 100%;
  object-fit: contain;
}

/* Footer */
footer {
  border-top: 1px solid #e0e0e0;
  color: #141778;
  padding: 20px;
  text-align: center;
  font-size: 15px;
}

.footer-logo {
  max-width: 120px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 30px;
}

footer .container .row {
  display: flex;
  gap: 20px;
}

footer .container .row .detail {
  display: flex;
  flex-direction: column;
  max-width: calc((100% - 20px) /3);
  flex: 0 0 calc((100% - 20px) / 3);
}

footer .container .row .detail p {
  font-size: 1rem;
  line-height: 32px;
  text-align: justify;
  padding-right: 30px;
  color: #000;
}

footer .container .row .detail ul {
  column-count: 2;
}

footer .container .row .detail ul.mtop25 {
  column-count: 1;
}

footer .container .row .detail ul li {
  text-align: left;
  margin: 0px;
  padding: 0px;
  list-style: none;
  font-size: 1rem;
  line-height: 35px;
  color: #000;
  text-decoration: none;
}

footer .container .row .detail ul li .row {
  display: flex;
}

footer .container .row .detail ul li .row .col-sm-6 {
  max-width: 45%;
  flex: 0 0 45%;
  list-style: none;
  font-size: 1rem;
  line-height: 35px;
  color: #000;
}

footer .container .row .detail ul li a {
  font-size: 1rem;
  line-height: 40px;
  color: #000;
  text-decoration: none;
}

footer .container .row .detail h3 {
  font-size: 28px;
  font-weight: bold;
  color: #000;
  margin-bottom: 30px;
}

li {
  list-style: none;
}

/* Container */
.container {
  display: flex;
  width: 100%;
}

/* Sidebar */
.sidebar {
  padding: 20px 0;
  width: 30%;
  border-right: 1px solid #ddd;
  background-color: #f7f9fc;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 10px;
  font-weight: 600;
  padding: 12px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #333;
}

.sidebar li.active {
  color: #141778;
  border-left: 4px solid #141778;
  background-color: #e6edff;
}

.sidebar .step-indicator.active span.number {
  box-shadow: 0 0 0 1px #141778;
  background: #141778;
}

.sidebar li.completed span.number {
  transition-duration: 300ms;
  transition-property: all;
  background: green;
  box-shadow: 0 0 0 1px green;
}

.sidebar li.completed {
  color: green;
  border-left: none;
}

.sidebar li span.number {
  border: 2px solid #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  background: gray;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Right Panel */
.right {
  padding: 40px 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.right .title {
  text-align: center;
  color: #141778;
  margin-bottom: 30px;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
}

/* Progress Bar */
.progressbar {
  position: relative;
  width: 100%;
  height: 5px;
  margin-bottom: 20px;
  background: #e6e6e6;
}

.progressbar::after {
  content: '';
  display: block;
  height: 5px;
  border-radius: 10px;
  width: var(--progress, 25%);
  background: #141778;
  transition: width 0.3s ease;
}

/* Form Container */
.form-container {
  padding: 50px 20px;
  width: 100%;
}

.form-container form {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Steps */
.step {
  display: none;
  animation: fade 0.4s ease-in-out;
  width: 50%;
  max-width: 50%;
}

.step.active {
  display: block;
}

.step h2 {
  margin-bottom: 10px;
  color: #141778;
  font-weight: 700;
  font-size: 30px;
}

.step p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #666;
}

/* 
.step:has(table) {
    flex: 0 0 90%;
    max-width: 90%;
}

.step table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    border-collapse: collapse;
    border: 1px solid #ccc;
    scrollbar-width: thin; 
    scrollbar-color: #bbb #f0f0f0;
    min-width: 600px;
}

.step table tr td {
    vertical-align: top;
}
.step table tr td input{
    font-size: 16px;
    padding: 10px 15px;
    border-radius: 10px;
}
.step table tr td input:has(+ input){
    margin-bottom: 10px;
}
.step table tr td button{
    background: #141778;
    color: #fff;
    padding: 4px;
    border-radius: 5px;
    border: 1px solid #141778;
}
.step table tr th, 
.step table tr td {
    border: 1px solid #ccc; 
    padding: 8px 12px;
    text-align: left;
} */

/* Input / Select — Do Not Modify as per Request */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  font-size: 16px;
}

input,
select {
  width: 100%;
  border: 1px solid #ccc;
  font-size: 20px;
  padding: 20px;
  border-radius: 20px;
  background: #f4f4f4;
  color: #111;
  transition: border-color 0.3s;
}

input:focus,
select:focus {
  border-color: #007bff;
  outline: none;
}

select {
  padding: 20px 34px 20px 20px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('./asstes/drop-down-arrow.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 24px;
  cursor: pointer;
}

/* Buttons */
.btns {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.btns button {
  border-radius: 30px;
  display: inline-block;
  padding: 12px 30px;
  text-align: center;
  font-size: 1rem;
  line-height: 22px;
  font-weight: bold;
  background-color: #141778;
  border: 1px solid #141778;
  color: #fff;
  cursor: pointer;
  transition: all 0.4s;
}

.btns button:hover {
  background-color: #fff;
  color: #141778;
  border: 1px solid #141778;
}



.input-group-prepend {
  position: relative;
}

.input-group-prepend .input-group-text {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 20px;
}

.input-group-prepend input {
  padding-left: 35px;
}

/* Animation */
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* css for the upload document */
.document-wrp {
  display: flex;
  flex-direction: column;
}

/* .multi-address-section .box, */
.document-wrp .box {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.document-wrp .box:only-child,
.document-wrp .box:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.document-wrp .box .fields .docs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.document-wrp .box .fields .docs {
  margin-bottom: 20px;
  position: relative;
}

/* .multi-address-section .box input,
.multi-address-section .box select, */
.document-wrp .box .fields .docs .file-input {
  position: relative;
  width: 100%;
  height: 100%;
  font-size: 16px;
  padding: 10px 15px 10px 50px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #f4f4f4;
  color: #111;
  transition: border-color 0.3s;
  z-index: 2;
}

/* .multi-address-section .box input,
.multi-address-section .box select {
  padding-left: 15px !important;
} */

.document-wrp .box .fields .docs .file-input::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: url("./asstes/upload-icon.svg");
  width: 24px;
  height: 24px;
  z-index: 2;
  display: block;
}

.document-wrp .box .fields .docs .file-input.has-file {
  padding: 10px 15px;
}

.document-wrp .box .fields .docs .file-input.has-file::before {
  display: none;
}

.document-wrp .box .fields .docs .file-name {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 50px);
}

.document-wrp .box .fields .docs .file-input .file-uploader {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  top: 0;
  left: 0;
  z-index: 3;
}

.document-wrp .box .fields .docs:last-child,
.document-wrp .box .fields .docs:only-child {
  margin-bottom: 0;
}

.document-wrp .box .fields .docs input {
  font-size: 16px;
  padding: 10px 15px;
  border-radius: 10px;
}

.document-wrp .box .title {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.multi-address-section .action {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

.multi-address-section .action.remove button {
  background: #d73e2e;
  border-color: #d73e2e;
}

.multi-address-section .action.remove {
  justify-content: flex-start;
}

.multi-address-section .action.remove:last-child {
  margin-bottom: 10px;
}

.document-wrp .box .title .action {
  display: flex;
}

.multi-address-section .action button,
.document-wrp .box .title .action button {
  background: #141778;
  color: #fff;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid #141778;
}


.multi-address-section .address-block .btn.btn-link.btnRemoveDoc,
.document-wrp .box .fields .docs .btn.btn-link.btnRemoveDoc {
  padding: 2px 5px 5px;
  width: 30px;
  font-size: 18px;
  font-weight: 600;
  color: white;
  border: none;
  background: #141778;
  border-radius: 50%;
  float: right;
  left: auto;
  margin-left: auto;
  position: absolute;
  top: 0;
  right: -40px;
}

.multi-address-section .address-block .btn.btn-link.btnRemoveDoc {
  top: 26px;
}

.document-wrp .box .title h6 {
  margin-bottom: 0;
  font-size: 18px;
  text-align: left;
}



/* thankyou page css */
.step .thankyou-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
}

.step.thankyou-wrp {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.step .thankyou-text {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #141778;
  margin-bottom: 0;
}

.step .thankyou-icon img,
.step .thankyou-icon svg {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .container {
    flex-direction: column;
  }

  footer .container .row .detail p {
    padding-right: 10px;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ddd;
  }

  .sidebar ul {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .sidebar li {
    flex: 1 1 45%;
    justify-content: flex-start;
    padding: 10px 5px;
    font-size: 15px;
  }

  .right {
    width: 100%;
    padding: 30px 15px;
  }

  .step {
    width: 80%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {

  /* sidebar */

  .sidebar {
    padding: 0;
    scroll-behavior: smooth;

  }

  .sidebar ul {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow: auto;
    justify-content: space-around;
    scroll-behavior: smooth;

  }

  .sidebar ul li {
    transition-duration: 300ms;
    transition-property: all;
    scroll-behavior: smooth;
    flex: 0 0 auto;

  }

  .sidebar ul li span.number {
    background: gray;
  }

  .sidebar li.active {
    transition-duration: 300ms;
    transition-property: all;
    color: #141778;
    border-left: none;
    border-bottom: 3px solid #141778;
    background-color: #e6edff;
  }

  .sidebar li.active span.number {
    background: #141778;
  }

  .sidebar li.completed span.number {
    transition-duration: 300ms;
    transition-property: all;
    background: green;
    box-shadow: 0 0 0 1px green;
  }

  .sidebar li.completed {
    color: green;
    border-left: none;
  }

  .sidebar ul li {
    padding: 10px 15px;
    margin-bottom: 0;
  }

  .sidebar ul li .name {
    white-space: nowrap;
  }

  /* thankyou page css */
  .step .thankyou-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
  }

  .step.thankyou-wrp {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .step .thankyou-text {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #141778;
    margin-bottom: 0;
  }

  .step:has(.document-wrp) {
    flex: 0 0 90%;
    max-width: 90%;
  }

  .document-wrp .box .fields .docs .btn.btn-link.btnRemoveDoc {
    padding: 1px 3px 3px;
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: white;
    border: none;
    background: #141778;
    border-radius: 50%;
    float: right;
    left: auto;
    margin-left: auto;
    position: absolute;
    top: 0;
    right: -30px;
  }

  .document-wrp .box .title .action button {
    background: #141778;
    color: #fff;
    padding: 4px 6px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #141778;
  }

  .document-wrp .box .title h6 {
    margin-bottom: 0;
    font-size: 14px;
    text-align: left;
  }

  footer .container .row {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  footer .container .row .detail p {
    padding-right: 0;
  }

  footer .container .row .detail {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    flex: 0 0 100%;
  }

  footer .container .row .detail h3 {
    text-align: left;
  }

  .right {
    padding: 20px 10px;
  }

  .step {
    width: 100%;
    max-width: 100%;
  }

  .step h2 {
    font-size: 24px;
  }

  .step p {
    font-size: 15px;
  }

  label {
    font-size: 16px;
  }

  input,
  select {
    font-size: 16px;
    padding: 14px;
    border-radius: 14px;
  }

  select {
    padding: 14px 28px 14px 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('./asstes/drop-down-arrow.svg');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    cursor: pointer;
    height: 52px;
  }

  .btns {
    gap: 10px;
  }

  .btns button {
    font-size: 0.95rem;
    padding: 8px 20px;
  }

  .form-container {
    padding: 15px 10px;
  }

  .right .title {
    font-size: 26px;
    line-height: 1.3;
    margin-bottom: 20px;
  }

  footer {
    font-size: 14px;
  }

  .input-group-prepend .input-group-text {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 18px;
  }

  .input-group-prepend input {
    padding-left: 26px;
  }
}

@media (max-width: 480px) {

  header {
    margin: 0 auto;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    background-color: #ffffff;
  }

  header img {
    max-width: 100px;
    height: 100px;
    width: 100%;
    object-fit: contain;
  }

  .step h2 {
    font-size: 20px;
  }

  .step p {
    font-size: 14px;
  }

  label {
    font-size: 14px;
  }

  .right .title {
    font-size: 22px;
  }

  .btns button {
    font-size: 0.9rem;
  }
}



/* css for the error msg */
.step .error {
  font-size: 16px !important;
  margin-bottom: 30px !important;
  margin-top: 5px !important;
  color: red !important;
  font-weight: 400 !important;
  margin-bottom: 0 !important;
}

/* error page */
.error-page {
  padding: 30px 15px;
  width: 100%;
  text-align: center;
}

@media (min-width:480px) {
  .error-page {
    padding: 40px 15px;
  }
}

@media (min-width:768px) {
  .error-page {
    padding: 50px 15px;
  }
}

@media (min-width:1024px) {
  .error-page {
    padding: 80px 15px;
  }
}

.error-page .error-img {
  aspect-ratio: 1.333;
  width: 100%;
  height: auto;
  max-width: 600px;
  margin-bottom: 20px;
  object-fit: cover;
}

.error-page .title {
  font-size: 38px;
  line-height: 1.2;
  font-style: normal;
  font-weight: bold;
  color: #141778;
  margin-bottom: 20px;
}

@media (min-width:768px) {

  .error-page .title,
  .error-page .error-page {
    margin-bottom: 30px;
  }

  .error-page .error-img {
    width: auto;
  }
}

.error-page .error-btn {
  border-radius: 30px;
  display: inline-block;
  padding: 13px 30px;
  text-align: center;
  font-size: 16px;
  text-decoration: none;
  font-weight: bold;
  background: #141778 !important;
  color: white;
}

.multi-address-section {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.form-group.box {
  width: 100%;
  margin-bottom: 0;
}

.has-full-width {
  width: 100%;
}

.address-repeate .address-block {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid lightgray;
  width: 100%;
}

.address-repeate .address-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  .address-repeate .address-block .box {
    width: calc((100% - 20px) / 2);
  }

  .form-group.box {
    width: calc((100% - 20px) / 2);
    margin-bottom: 0;
  }

  .address-repeate .address-block {
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .multi-address-section {
    gap: 20px;
  }
}