:root {
  --primary: #001689;
  --secondary: #7f53ac;
  --background: #f8f9fa;
  --text: #2d3436;
  --error: #ff7675;
  --success: #55efc4;
}
html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
html, body {
  background: var(--background);
  color: var(--text);
  line-height: 1.5;
  font-family: Montserrat, sans-serif;
}
.main__card {
  min-height: 90vh;
}
.container {
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
.main__card h1 {
  text-align: left;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  font-weight: 600;
}
.main__header, .sub__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.small-btn {
  padding: 4px 12px;
  border: 1px solid #0063cc4d;
    color: #005f8c;
  border-radius: .25rem;
  background-color: #f0f8ff;
  font-size: .875rem;
  font-weight: 500;
}
.small-btn:hover {
    color: #fff;
    background-color: #001689;
    border-color: #001689;
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: #eee;
  margin-bottom: 1.5rem;
  border-radius: 0px;
  overflow: hidden;
}
.progress {
  width: 0%;
  height: 100%;
    background-color: #00a7e1;
  /*background: linear-gradient(to right, #00E3E4, #00B1FF);*/
  transition: width 0.3s ease;
    border-radius: 0;
}
.file__upload__box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  column-gap: .75rem;
}

.file-upload-wrapper {
  height: auto;
}

.file-upload-wrapper input[type="file"] {
    /*border: 1px dashed #0063cc80;*/
    border-radius: .25rem;
    color: #333;
    cursor: pointer;
    width: -webkit-fill-available;
    border: 1px solid #ddd;
    font-size: .875rem;
}
.file-upload-wrapper input[type="file"]::-webkit-file-upload-button {
    border: none;
    border-right: 1px solid #0063cc4d;
    background-color: #f0f8ff;
    color: #005f8c;
    border-top-left-radius: .25rem;
    border-bottom-left-radius: .25rem;
    padding: 4px 12px;
    cursor: pointer;
    font-size: .875rem;
    font-weight: 500;
}

.file-upload-wrapper2 input[type="file"] {
    /*border: 1px dashed #0063cc80;*/
    border-radius: 8px;
    color: #333;
    cursor: pointer;
    width: -webkit-fill-available;
    border: 1px solid #ddd;
    font-size: .875rem;
}
.file-upload-wrapper2 input[type="file"]::-webkit-file-upload-button {
    border: none;
    border-right: 1px solid #0063cc4d;
    background-color: #f0f8ff;
    color: #005f8c;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    padding: .8rem;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
}

/*.file-upload-wrapper:after {
  content: attr(data-text);
  font-size: 18px;
  position: absolute;
  top: 0;
  left: 0;
  background: #fff;
  padding: 10px 15px;
  display: block;
  width: calc(100% - 40px);
  pointer-events: none;
  z-index: 20;
  height: 40px;
  line-height: 40px;
  color: #999;
  border-radius: 5px 10px 10px 5px;
  font-weight: 300;
}
.file-upload-wrapper:before {
  content: "Upload";
  position: absolute;
  top: 0;
  right: 0;
  display: inline-block;
  height: 60px;
  background: #4daf7c;
  color: #fff;
  font-weight: 700;
  z-index: 25;
  font-size: 16px;
  line-height: 60px;
  padding: 0 15px;
  text-transform: uppercase;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
}
.file-upload-wrapper:hover:before {
  background: #3d8c63;
}
.file-upload-wrapper input {
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99;
  height: 40px;
  margin: 0;
  padding: 0;
  display: block;
  cursor: pointer;
  width: 100%;
}*/



.file-upload {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: .25rem .5rem;
  margin-top: 0rem;
  border: 1px dashed #0063cc80;
  border-radius: 0.25rem;
  transition: background-color 0.25s ease-out;
  font-size: .8125rem;
  font-weight: 500;
}
.file-upload:hover {
  background-color: #f0f8ff;
}
.file-upload .file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: none;
  cursor: pointer;
}
.file-upload2 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0.8rem;
  margin-top: 0rem;
  border: 1px dashed #0063cc80;
  border-radius: 8px;
  transition: background-color 0.25s ease-out;
  font-size: 1rem;
  font-weight: normal;
    background-color: #FFFFFF;
}
.file-upload2:hover {
  background-color: #f0f8ff;
}
.file-upload2 .file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: none;
  cursor: pointer;
}

.file-upload3 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0.8rem;
  margin-top: 0rem;
  border: 1px dashed #0063cc80;
  border-radius: 8px;
  transition: background-color 0.25s ease-out;
  font-size: 1rem;
  font-weight: normal;
    height: auto;
}
.form-big{
    height: 10rem;
}
.file-upload3:hover {
  background-color: #f0f8ff;
}
.file-upload3 .file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  outline: none;
  cursor: pointer;
}
.card-subtitle {
  margin-top: 0;
    color: #005f8c
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.tcstds_toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(50px, 1fr));
}
.form-section {
  display: none;
  animation: fadeIn 0.5s ease;
}
.form-section.active {
  display: block;
}
.section-title {
  color: var(--primary);
  margin: 0 0 .5rem;
  padding-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}
.main__card .form-group {
  margin-bottom: 1.5rem;
}
.required_mark {
  color: red;
}
.edit {
  color: blue;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 1rem;
}
.field_header {
  display: flex;
  justify-content: space-between;
}
.info_icon {
  opacity: 0.15;
  margin-right: .5rem;
  transition: 0.2s ease;
  cursor: pointer;
  position: relative;
  display: block;
}
.info_icon img,
.edit img{
	max-width: 16px;
	height: auto;
}
.info__content {
  opacity: 0;
  visibility: hidden;
  display: none;
  position: absolute;
  right: calc(100% + 12px);
  top: calc(50%);
  transform: translateY(-50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.87);
  padding: 10px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
  width: 160px;
  border-radius: 4px;
  white-space: inherit;
  max-width: 250px;
  font-size: 14px;
}
/* this is the pointer */
.info__content:before {
  position: absolute;
  z-index: -1;
  content: "";
  right: -10px;
  top: calc(50% - 10px);
  border-style: solid;
  border-width: 10px 10px 10px 0;
  border-color: transparent rgba(0, 0, 0, 0.87) transparent transparent;
        rotate: 180deg;
    
}
.info__content.bottom {
  top: calc(-70%);
}
.info__content.bottom:before {
  top: calc(85% - 10px);
}
/* this triggers display */
.info_icon:hover .info__content {
  z-index: 10;
  opacity: 1;
  visibility: visible;
  display: block;
}
/* TEST DIFFERENT SIZES */
.tiny {
  height: 7px;
  width: 75px;
}
.info_icon:hover {
  opacity: 1;
}
.main__card label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #001689
}
.main__card input[type="text"],
.main__card input[type="email"],
.main__card input[type="tel"],
.main__card input[type="date"],
.main__card textarea,
.main__card select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.main__card input:focus, .main__card textarea:focus, .main__card select:focus {
  outline: none;
  border-color: var(--primary);
}
.main__card input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: #A0A0A0;
}
.main__card input::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: #A0A0A0;
  opacity: 0.5; /* Firefox */
}
.main__card input:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: #A0A0A0;
}
.main__card input::-ms-input-placeholder { /* Microsoft Edge */
  color: #A0A0A0;
}
.main__card input::-moz-placeholder { /* Firefox 19+ */
  color: #A0A0A0;
}
.main__card input:-moz-placeholder { /* Firefox 18- */
  color: #A0A0A0;
}
.main__card input[type="text"]:disabled,
.main__card textarea:disabled,
.main__card select:disabled {
  background-color: #eee;
  cursor: not-allowed;
}
.buyerType {
  display: flex;
  align-items: baseline;
  column-gap: .7rem;
}
.companyName {
  font-size: 1rem;
  font-weight: 600;
  color: #001689;
}
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /*gap: 1rem;*/
}
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}
.sub-cards {
  width: 100%;
  margin-bottom: 1.5rem;
  display: grid;
  grid-gap: 1rem;
}
.addressCard {
  background-color: #FCFCFC;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #ebebeb;
  margin-bottom: 1rem;
}
.addressBox {
  display: grid;
  gap: 1rem;
}
.grid-auto-fill {
  grid-template-columns: repeat(4, minmax(100px, 1fr));
}
.item-one {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.item-two {
  grid-column: 3 / 4;
}
.item-three {
  grid-column: 4 / 5;
}
.item-four {
  grid-column: 3 / 4;
}
.item-five {
  grid-column: 4 / 5;
}
.grid-auto-fit {
  grid-template-columns: repeat(2, minmax(100px, 1fr));
  grid-template-rows: auto auto;
}
.grid-cards {
  background-color: #FCFCFC;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #ebebeb;
}
.grid-cards .checkbox-group label{
  margin: 0.25rem 0;
  font-weight: normal
}
.left_card {
  grid-row: 1/-1;
}
.flex-sub-cards {
  display: flex;
  column-gap: 1rem;
  flex-direction: column;
}
.flex-cards {
  width: 100%;
}
.textFeild {
  display: flex;
  column-gap: 1rem;
}

/*=============================*/
/*=====REPRESENTATIVE PAGE=====*/
/*=============================*/
.contactCard{
  background-color: #FCFCFC;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #ebebeb;
    margin-bottom: 1rem;
}
.sub-title{
    font-size: 1.25rem;
    font-weight: normal;
    color: #001689;
}
.description{
    font-size: 14px;
}
.inner__card{
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    column-gap: 1rem;
    grid-template-rows: auto;
}
.inner_one{
    grid-column: 1 / 3;
}
.inner_two{
    grid-column: 3 / 5;
}
.inner_four{
    grid-column: 2 / 3;
}
.inner_five{
    grid-column: 3 / 4;
}
.inner_six{
    grid-column: 4 / 5;
}
.inner_seven{
    grid-column: 1 / 3;
}
.contactCard .same_as_general {
    background-color: aliceblue;
    margin-right: 0;
    font-size: 12px;
    padding: .25rem .5rem;
    border: 1px solid #0063cc4d;
    border-radius: .25rem;
}

.contactCard .inner_seven .form-check-label{
  margin: 0.25rem 0;
  font-weight: 500;
  font-size: 12px;
}

.btn-addMore{
    background-color: #001689;
    color: #fff;
    border: none;
    outline: none;
    padding: .7rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 8px;
}
.btn-addMore:hover{
    background-color: #001272;
    color: #fff;
    text-decoration: none;
}
.saveAddBtn{
	color: #005f8c !important;
    border: 1px solid #0063cc4d !important;
    background-color: #f0f8ff !important;
    font-weight: 500 !important;
    margin-top: 1rem !important;
}


/*.contactCard .inner_seven .form-check-inline{
    align-items: baseline;
}*/
/*=============================*/

button {
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.3s ease;
}
button:hover {
  transform: translateY(-2px);
}
.btn-prev {
  background: #eee;
  color: var(--text);
}
.btn-prev:focus{
    outline: none !important;
}
.btn-next {
  background: var(--primary);
  color: white;
}

.btn-submit {
  background: #001689;
  color: #FFFFFF;
    outline: none;
    border: none;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/*==================================*/

@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  .container {
    padding: 1rem;
  }
  .checkbox-group {
    grid-template-columns: 1fr;
  }
    .main__card h1{
        font-size: 1.25rem;
    }
    .section-title {
        color: var(--primary);
        margin: 0 0 .5rem;
        padding-bottom: 0.5rem;
        font-size: 1.1rem;
}
    .main__header, .sub__header{
        flex-direction: column
    }
    .file__upload__box{
        margin-bottom: 1rem;
    }
    .file-upload{
        font-size: .75rem;
        padding: .25rem;
    }
    .progress-bar{
        margin-top: 1rem;
    }
    .grid-auto-fill {
        grid-template-columns: 1fr;
    }
    .item-one {
      grid-column: 1 / -1;
    }
    .item-two {
      grid-column: 1 / -1;
    }
    .item-three {
      grid-column: 1 / -1;
    }
    .item-four {
      grid-column: 1 / -1;
    }
    .item-five {
      grid-column: 1 / -1;
    }
    .grid-auto-fit {
        grid-template-columns: 1fr;
    }
    .inner__card {
        display: grid;
        grid-template-columns: minmax(100px, 1fr);
        column-gap: 1rem;
       grid-template-rows: auto;
    }
    .inner_one{
        grid-column: 1 / -1;
    }
    .inner_two{
        grid-column: 1 / -1;
    }
    .inner_four{
        grid-column: 1 / -1;
    }
    .inner_five{
        grid-column: 1 / -1;
    }
    .inner_six{
        grid-column: 1 / -1;
    }
    .inner_seven{
        grid-column: 1 / -1;
    }
    .inner_eight{
        grid-column: 1 / -1;
    }
    .inner_nine{
        grid-column: 1 / -1;
    }
    .d-inline-flex{
        flex-direction: column;
    }
    .tcstds_toggle {
        display: grid;
        grid-template-columns: repeat(1, minmax(200px, 1fr));
    }
}