@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&display=swap');
body {
    font-family: 'Albert Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #FFF;
    color: #333;
}
h1 {
    text-align: left;
    color: #000;
    margin-top: 20px;
    font-weight: 500;
    padding-bottom: 25px;
}
h2 {
    text-align: center;
    color: #000;
    font-weight: 400;
}
p {
    text-align: center;
    font-size: 1rem;
}
.breadcrumb {
    display: flex;
    justify-content: flex-start;
    padding-bottom: 60px;
}
.breadcrumb .step {
    font-size: 1rem;
    font-weight: normal;
    color: #999;
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-left: 30px;
}
.breadcrumb .step:first-child {
    margin-left: 0;
}
.breadcrumb .step.active .circle {
    background-color: #0024e3;
    color: white;
}
.breadcrumb .circle {
    display: inline-block;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #ccc;
    color: white;
    font-size: 1rem;
    text-align: center;
    line-height: 25px;
    margin-right: 10px;
}
.breadcrumb .separator {
    font-size: 1rem;
    font-weight: normal;
    align-self: center;
    color: #0024e3;
}
.breadcrumb .step.active {
    color: black;
}

.splitter-builder {
    display: none;
    background-color: #fff;
    border-radius: 10px;
}
.error-message{
    display: none;
    text-align: center;
    color: red;
    width: 100%;
    font-size: 0.9em;
    font-weight: bold;
    margin: 10px 0;
}
.form-step {
    display: none;
    width: 100%;
    transition: all 0.3s ease;
}
.form-step.active {
    display: block;
}

/* 3D Model*/
     
    #viewer-step1,
    #viewer-step2 {
      /* width: 100%; */
      height: 500px;
      overflow: hidden;
      border-radius: 8px;
      cursor: grab;
      user-select: none;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    #viewer-step1:active {
      cursor: grabbing;
    }

    #viewer-step2:active {
      cursor: grabbing;
    }

    #viewer-step1 img,
    #viewer-step2 img {
      width: 600px;
      height: auto;
      display: block;
      user-select: none;
      pointer-events: none;
    }
/* 3D Model ends */

.rotate-icon{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    margin-left: auto;
    padding-right: 50px;
    width: 20%;
    position: absolute;
    right: 0;
    top: 400px;
}

.rotate-icon img,
.rotate-icon p{
    margin-left: auto;
    margin-right: auto;
    color: #0C0C0C80;
}

/* Amperage */
.amperage-section{
    padding: 20px 50px;
}

.amperage-description{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.amperage-description h2{
    margin-bottom: 0;
    font-size: 36px;
}

.amperage-description p{
    color: #0C0C0C80;
    opacity: 70%;
    font-size: 20px;
    text-align: left;
}

.slider-container {
    width: 100%;
    margin: 40px auto;
    position: relative;
}

input[type=range] {
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 26px !important;
    width: 26px !important;
    background: #FFF !important;
    border: solid 5px #0024E3 !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5) !important;
    margin-top: -10px;
}

/* 
input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 500px;
    width: 20px;
    background: #FFF;
    border: solid 4px;
    border-color: #000;
    border-radius: 50%;
    cursor: pointer;
    margin-top: -5px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
} */


/* Slider */
input[type=range]::-webkit-slider-runnable-track {
    height: 8px;
    background: linear-gradient(0.25turn, #58A0FF, #0024E3);
    border: none;
    border-radius: 5px;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
/* 
input[type=range]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    background: #FFF;
    border-radius: 50%;
    cursor: pointer;
    border: solid 3px #0024E3;
} */

input[type=range]::-moz-range-track {
    height: 4px;
    background: #ccc;
    border-radius: 2px;
}

.tick-labels {
    display: flex;
    justify-content: space-between;
    position: absolute;
    width: 100%;
    top: 20px;
    font-size: 12px;
    pointer-events: none;
    margin-top: 10px;
}

.tick-labels div {
    margin-right: 20px;
    text-align: center;
    width: 1px;
    transform: translateX(-50%);
    white-space: nowrap;
}

.product-main-section{
    padding: 0 150px;
    background: linear-gradient(to bottom, #D9D9D933, #73737380, #D9D9D933);
}

.product-attributes{
    display: flex;
    justify-content: space-between;
    gap: 70px;
    padding: 20px 190px;
}

/* Outer */
.outer{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
}

.outer h2{
    font-size: 40px;
}

#nema button {
  width: 120px;
  font-size: 16px;
  padding: 20px;
  margin: 5px;
  border: 1px solid #000;
  background-color: #FFF;
  cursor: pointer;
}

#nema button.active {
  background-color: #DEEDFF;
  color: #0024E3;
  border-color: #0024E3;
}

#product-type {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

#product-type label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
}

#product-type img {
    width: 80px;
    height: auto;
    background-color: #FFF;
    border: solid 1.5px #000;
    margin-bottom: 10px;
    padding: 0 30px;
}

#product-type input {
    margin-top: 5px;
    padding-bottom: 40px;
}
#product-type > h3 {
    flex-basis: 100%;
    margin-bottom: 10px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
}
/* 
#dimensions-input {
    display: flex;
    gap: 10px;
    padding-bottom: 60px;
    flex-wrap: wrap;
}

#dimensions-input input {
    display: block;
    margin: 0 auto 0 0;
    padding: 20px 10px;
    font-size: 1rem;
    border: 1px solid #000;
    width: 160px;
    text-align: center;
}
 */

#dimensions-input {
    display: flex;
    flex-wrap: wrap; 
    gap: 1rem;       
}

.dimension-column{
    display: flex;
    flex-direction: column;
}


#dimensions-input input {
    display: block;
    margin: 0 auto 0 0;
    padding: 20px 10px;
    font-size: 1rem;
    border: 1px solid #000;
    width: 160px;
    text-align: center;
}

/* Inner */
.inner{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 50%;
}

.inner h2{
    font-size: 40px;
}

#voltage-options button {
  font-size: 16px;
  padding: 20px;
  margin: 5px;
  border: 1px solid #000;
  background-color: #FFF;
  cursor: pointer;
}

#voltage-options button.active {
  background-color: #DEEDFF;
  color: #0024E3;
  border-color: #0024E3;
}

.option-item button{
  font-size: 16px;
  padding: 10px 20px;
  margin: 5px;
  border: 1px solid #000;
  background-color: #FFF;
  cursor: pointer;   
}

.option-item button.active{
  background-color: #DEEDFF;
  color: #0024E3;
  border-color: #0024E3;
}

.bars-material {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.AL {
  background-color: #5C5C5C; 
}

.Cu {
  background-color: #D89374; 
}

#busbar-options-section button{
    font-size: 16px;
    padding: 20px 30px;
    border: 1px solid #000;
    background-color: #FFF;
    cursor: pointer; 
}

#busbar-options-section button.active{
    background-color: #DEEDFF;
    color: #0024E3;
    border-color: #0024E3;
}

.paint-material {
  display: inline-block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin: 8px;
  vertical-align: middle;
}

#paint-material-section button{
    margin: 30px 8px 0 0;
}

.smooth-gray {
  background-color: #5C5C5C; 
}

.stainless-steel {
  background-color: #BEBEBE; 
}

.lugs-section{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 60px 190px;
    margin: 0 100px;
    gap: 50px;
    background-color: #0000000D;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.05);
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 50px;
    padding: 10px 40px 80px 40px;
}
.navigation button {
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 0;
    transition: background-color 0.3s ease;
    width: 350px;
    text-align: center;
}
.navigation button.back {
    background-color: white;
    color: black;
    border: 1px solid black;
    border-radius: 0px;
}
.navigation button.back:hover {
    background-color:  black;
    color: white;
    border: 1px solid black;
    border-radius: 0;
}
.navigation button.next {
    background-color: #0024E3;
}
.navigation button.next:hover {
    background-color: #003d80;
}
.navigation button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
}
#result-message {
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    margin-top: 20px;
    padding-bottom: 70px
}
.option-container {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 50px;
    gap: 10px;
}
.option-container label {
    font-size: 1rem;
    font-weight: normal;
    margin: 10px;
    cursor: pointer;
}
.option-image {
    width: 150px;
    height: auto;
    border-radius: 0px;
    margin-bottom: 10px;
}
#custom-voltage {
    margin-left: 10px;
    width: 150px;
}
input[type="radio"] {
    margin-right: 10px;
}
label input[type="radio"] {
    margin-right: 10px;
    transform: scale(1.9);
}
label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 10px 0;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.summary-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  box-sizing: border-box;
}

.product-summary-section{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    background: linear-gradient(to bottom, #D9D9D933, #73737380, #D9D9D933);
    width: 100%;
    margin: 0 40px;
}

.product-summary{
    width: 34%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px;
    z-index: 1;
    margin: 40px 0;
    background-color: #FFF;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.summary-img-section{
    margin: 20px;
}

.summary-img{
    width: 500px;
    rotate: 5deg;
}

.summary-1,
.summary-2{
    padding: 15px;
    border-bottom: solid 1px #000;
}

.summary-3{
    padding: 15px;
}

.summary-1 div,
.summary-2 div,
.summary-3 div{
  margin-bottom: 10px;   
}

.summary-1 .label,
.summary-2 .label,
.summary-3 .label{
  display: inline-block;
  width: 200px; 
  font-weight: bold;
}

.summary-1 span,
.summary-2 span,
.summary-3 span{
  margin-left: 30px; 
}

.summary-btn{
    margin: 10px auto 0 auto;
}

.edit {
  width: 120px;
  font-size: 16px;
  padding: 20px;
  margin: 5px;
  border: 1px solid #000;
  background-color: #FFF;
  cursor: pointer;
}

.customer-details-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  box-sizing: border-box;
}

.result-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000;
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}
.result-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 20px;
}
.result-images {
    display: flex;
    gap: 15px;
}
.result-images img {
    width: 150px;
    height: auto;
    border-radius: 5px;
}
.hidden {
    display: none;
}

#wires-section{
        flex-direction: column;
        align-items: center;
}

#lugs-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#lugs-options .option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#lugs-options .option-item img {
    width: 100px;
    height: auto;
    border-radius: 5px;
    margin-bottom: 5px;
}
.nema-input {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}
.styled-dropdown {
    width: 350px;
    padding: 10px;
    font-size: 1.1rem;
    border: 1px solid #0024e3;
}
.customer-details-flex {
  display: flex;
  flex-direction: row;
  gap: 100px;
  justify-content: center;
  width: 100%;
}
.customer-section,
.company-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
    width: 100%;
    padding-bottom: 15px;
}
.quantity-field {
    width: 15%;
    margin: 0 auto;
    padding-right: 0;
}
.form-field:first-child {
    padding-right: 50px;
}
.form-field:nth-child(3) {
    padding-right: 50px;
}
.form-field:nth-child(5) {
    padding-right: 50px;
}
.form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}
.form-field input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #0024E3;
    background-color: white;
}
.labelsv {
    padding-bottom: 40px;
    font-weight: 400;
    font-size: 24px;
}
.customer {
    align-items: center;
    padding-top: 40px;
    padding-bottom: 25px;
    font-weight: 400;
    font-size: 24px;
}
#lugs-number-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
}
#lugs-number-section input[type="number"] {
    width: 200px;
    padding: 10px;
    font-size: 1rem;
    text-align: center;
    border: 1px solid #0024E3;
    background-color: white;
    margin-top: 5px;
}
input[type="radio" i] {
    background-color: initial;
    cursor: pointer;
    appearance: auto;
    box-sizing: border-box;
    margin: 3px 3px 0px 5px;
    padding: initial;
    border: initial;
    accent-color: #0024e3;
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    background-color: #fff;
    border-radius: 10px;
    padding: 20px 100px;
    margin: 50px;
}

.modal-content-text{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-logo {
    width: 150px;
    height: 150px;
}
.modal-content h2 {
    margin-bottom: 0;
    color: #333;
    font-size: 40px;
    text-align: start !important;
}
.modal-description{
    padding: 20px;
}
ul {
  list-style: none;
}

ul li:before {
  content: '✓';
  color: #0024E3;
  padding-right: 10px;
}
.modal-buttons {
    display: flex;
    flex-direction: row;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}
.modal-option {
    display: flex;
    gap: 20px;
    align-items: center;
}
.modal-button {
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 10px;
}

#standard-proceed.modal-button{
    background-color: #0024E3;
    color: #FFF;
    border: solid 3px #0024E3;
}

#custom-proceed.modal-button{
    display: flex;
    align-items: center;
    background-color: #FFF;
    color: #000;
    border: solid 1px #000;
    position: relative;
}
#custom-proceed.modal-button img{
    padding-right: 10px;
}

.tiptext{
  visibility: hidden;
  width: 400px;
  background-color: #DFDFDF;
  color: #000;
  font-size: 12px;
  text-align: center;
  padding: 10px;
  margin: 5px;
  position: absolute;
  z-index: 1;
  bottom: 100%;
  left: 50%;
  margin-left: -60px;
  border-radius: 5px;
}

#custom-proceed.modal-button:hover .tiptext{
     visibility: visible;
}

.help-icon {
  position: relative; 
  display: inline-block;
  cursor: help;
  font-weight: bold;
  color: #000;
  padding: 5px;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  border: 2px solid #000;
}

.help-tiptext {
  visibility: hidden;
  width: 300px;
  background-color: #DFDFDF;
  color: #000;
  font-size: 12px;
  text-align: center;
  padding: 10px;
  position: absolute;
  z-index: 10;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.help-icon:hover .help-tiptext {
  visibility: visible;
  opacity: 1;
}

textarea{
  border: none;
  border-bottom: 2px solid #000; 
  outline: none; 
  background-color: transparent;
  resize: none; 
  font-family: 'Albert Sans', sans-serif;
  font-size: 16px;
  line-height: 20px;
}

.modal-content-img{
    rotate: 10deg;
}
.modal-button:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);;
}
.option-details {
    list-style-type: disc;
    padding-left: 20px;
    color: #555;
    text-align: left;
}
.option-details li {
    margin-bottom: 8px;
    font-size: 14px;
}

body.modal-open {
    overflow: hidden;
}

#lug-details-section {
    display: block;
    width: fit-content;
    margin: 0 auto;
    margin-top: 20px;
    text-align: center;
}
#lug-details-section .form-field {
    width: auto !important;
    margin: 0 auto !important;
    text-align: center !important;
}
#lug-details-section .form-field input {
    width: 300px !important;
    display: block !important;
    margin: 0 auto !important;
    text-align: center;
}
#lug-details-section .form-field:nth-child(3) {
    padding-right: 0;
}

#lug-details-section .form-field:nth-child(5) {
    padding-right: 0;
}

#busbar-options-section {
    display: block;
    width: fit-content;
    margin: 0;
}
.popup-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px 40px;
    border: 2px solid #0024e3;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    text-align: center;
    font-family: 'Albert Sans', sans-serif;
    border-radius: 10px;
}
.popup-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #0024e3;
}
.popup-text {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}
.popup-countdown {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}
.countdown-number {
    color: #e60000;
}

 @media (max-width: 1280px) {
    .product-summary{
        margin: 20px;
        width: auto;
    }

    .summary-img{
        width: 400px;
    }

    .customer-details-section{
        padding: 40px 60px;
    }

 }

 @media (max-width: 768px) {

    #dimensions-input{
        flex-wrap: wrap;
    }

     #dimensions-input{
        flex-wrap: wrap;
    }

 }

 @media (max-width: 480px) {

    body{
        width: fit-content;
        max-width: 480px;
        overflow-x: hidden;
    }

    h2{
        margin: 0;
        padding-bottom: 30px;
    }

    .landing-page{
        width: fit-content;
    }

    .modal-content{
        flex-direction: column-reverse;
        width: fit-content;
        align-items: center;
        padding: 30px;
        overflow: hidden;
        margin: 20px;
        gap: 10px;
    }

    .modal-content h2{
        padding: 0 40px;
    }

    .modal-description{
        padding: 20px 40px;
    }

    .modal-buttons{
        margin-left: auto;
        margin-right: auto;
    }

    .modal-option{
        flex-wrap: wrap;
    }

    .modal-button{
        width: 100%;
    }

    .tiptext{
        width: auto;
    }

    #custom-proceed.modal-button{
        justify-content: center;
    }


    .product-main-section{
        padding: 0 20px;
    }

    #viewer-step1 img,
    #viewer-step2 img{
        width: auto;
        max-width: 400px;
    }

    .rotate-icon{
        top: 450px;
        padding-right: 60px;
    }

    .rotate-icon img{
        width: 35px;
    }

    .rotate-icon p{
        font-size: 12px;
    }
    
    .product-attributes{
        padding: 20px 40px;
        flex-direction: column;
        gap: 20px;
    }

    .amperage-section {
        padding: 20px;
    }

    .amperage-description p{
        font-size: 16px;
        margin: 0;
    }

    .slider::-webkit-slider-thumb{
        margin-top: -6px;
        height: 16px !important;
        width: 16px !important; 
    }

    input[type=range]::-webkit-slider-runnable-track{
        height: 5px;
    }

    .tick-labels {
        font-size: 9px;
    }

    #product-type img{
        padding: 0 10px;
    }

    .outer,
    .inner{
        width: 100%;
    }

    #nema button{
        width: 160px;
        margin: 0 16px 20px 0;
    }

    .option-container{
        gap: 60px;
    }

    #dimensions-input{
        flex-wrap: wrap;
    }

    #dimensions-input input{
        width: 100%;
        padding: 20px 30px;
        text-align: justify;
    }

    .lugs-section{
        margin: 0;
        padding: 40px;
    }

    .labelsv{
        padding-bottom: 30px;
    }

    #voltage-options.option-container,
    #paint-material-section.option-container{
        gap: 10px;
    }

    #voltage-options button{
        width: 100%;
    }

    #paint-material-section button{
        margin: 0 0 16px 0;
        width: 100%;
    }

    #busbar-options-section{
        margin-bottom: 30px;
        width: 100%;
    }

    #busbar-options-section button{
        width: 50%;
    }

    .lugs-section{
        flex-wrap: wrap;
        align-items: flex-start;
    }

    #lugs-options{
        margin-left: 10px;
        margin-right: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 0;
    }

    .lugs-section .labelsv{
        width: 30%;
        margin: 2px auto 0 10px;
    }

    #lugs-options label{
        margin: 10px 20px 10px 0;
    }

    #bus-bar-lugs-note{
        width: 100% !important;
    }

    label input[type="radio"]{
        margin: 0 10px 0 0;
    }

    .custom-lugs{
        margin: 0 !important;
    }

    .quantity-field{
        width: 100%;
        margin: 0 10px;
    }

     .quantity-field input{
        width: 40%;
     }

    textarea{
        width: 100% !important;
        max-width: 400px
    }

    .help-tiptext{
        width: auto;
    }

    .product-summary-section{
        flex-direction: column-reverse;
        width: auto;
    }

    .customer-details-flex{
        flex-direction: column;
    }

    .summary-img{
        width: auto;
        max-width: 400px;
    }

    .product-summary{
        width: auto;
        margin: 30px;
    }

    .customer-details-section{
        width: 100%;
        max-width: 400px;
    }

    .customer-details-flex{
        gap: 0;
    }

    .customer-section, 
    .company-section{
        width: auto;
        padding: 30px;
    }

    .customer{
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .navigation{
        margin-top: 20px;
    }

 }
