body {
  margin: 0;
  padding: 0;
  background: #F8F8F8!important;
}

.div-model {
  background: #F8F8F8;
}

model-viewer {
  margin-top: 64px;
  width: 100%;
  max-width: 1180px;
  height: 450px;
  background-color: #ffffff;
  border-radius: 32px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.bg-gray {
  background: #F8F8F8;
}

#form-configurator {
  display: none;
  padding: 40px 0;
}

h1 {
  text-align: left;
  padding-left: 10px;
}

h3 {
  color: #000E21;
  text-align: center;
  font-family: Poppins;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: 115%;
}

p {
  color: rgba(0, 14, 33, 0.75);
  text-align: center;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 115%;
}

.item {
  height: 49.6px;
  width: 49.6px;
  padding: 0;
  border: none;
  border-radius: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  font-size: 16px;
  cursor: pointer;
  display: none;
  border: solid 5px #F8F8F8;
  transition: border-color 0.5s ease;
}

.item-name {
  margin-bottom: 10px;
}

.item:hover {
  border: 5px solid #FF9100;
}

.item.active {
  display: block;
  border: 5px solid #FF9100;
}

.item.live {
  border: 5px solid #FF9100;
}

/* Stitching buttons - use local paths */
#diamond {
  background-image: url('../images/configurator/diamond_small.webp');
}

#checkered {
  background-image: url('../images/configurator/checkered_small.webp');
}

#cross {
  background-image: url('../images/configurator/cross_small.webp');
}

#plain {
  background-image: url('../images/configurator/plain_small.webp');
}

.button-with-image:hover {
  opacity: 0.8;
}

.row-option {
  gap: 20px;
  margin-bottom: 18px;
  position: relative;
  flex-wrap: wrap;
}

.custom-option-div {
  width: 160px;
  border-radius: 32px;
  background: #FFF;
  box-shadow: 0px 0px 48px 0px rgba(0, 0, 0, 0.10);
  display: flex;
  padding: 15px;
  gap: 4px;
  flex-shrink: 0;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out;
  cursor: pointer;
}

.custom-option-div:hover {
  box-shadow: 0px 0px 60px 0px rgba(0, 0, 0, 0.15);
}

.custom-option-div.expanded {
  margin: 0 auto;
  max-width: 1180px;
  width: 100%;
  opacity: 1;
}

.custom-option-div.expanded .item {
  display: block;
  width: 60px;
  height: 60px;
  border-color: #F8F8F8;
}

.custom-option-div.expanded .item.active,
.custom-option-div.expanded .item.live {
  border-color: #FF9100;
}

.custom-option-div.expanded .changeModelButton {
  width: 60px;
  height: 60px;
}

#back {
  cursor: pointer;
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0, 14, 33, 0.50);
  text-align: left;
  z-index: 2;
  justify-content: flex-start;
  width: 100%;
  max-width: 1180px;
  padding: 20px;
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  display: none;
}

#back:hover {
  color: rgba(0, 14, 33, 0.75);
}

.progress-bar {
  display: block;
  width: 33%;
  height: 10%;
  max-height: 2%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 25px;
  box-shadow: 0px 3px 10px 3px rgba(0, 0, 0, 0.5), 0px 0px 5px 1px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.9);
  background-color: rgba(0, 0, 0, 0.5);
}

.progress-bar.hide {
  visibility: hidden;
  transition: visibility 0.3s;
}

.update-bar {
  background-color: rgba(255, 255, 255, 0.9);
  width: 0%;
  height: 100%;
  border-radius: 25px;
  float: left;
  transition: width 0.3s;
}

#ar-button {
  background-image: url('../images/configurator/ar_icon.png');
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-position: 12px 50%;
  background-color: #fff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  bottom: 16px;
  padding: 0px 16px 0px 40px;
  font-family: Roboto Regular, Helvetica Neue, sans-serif;
  font-size: 14px;
  color: #4285f4;
  height: 36px;
  line-height: 36px;
  border-radius: 18px;
  border: 1px solid #DADCE0;
  cursor: pointer;
}

#ar-button:active {
  background-color: #E8EAED;
}

#ar-button:focus {
  outline: none;
}

#ar-button:focus-visible {
  outline: 1px solid #4285f4;
}

@keyframes circle {
  from { transform: translateX(-50%) rotate(0deg) translateX(50px) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(360deg) translateX(50px) rotate(-360deg); }
}

@keyframes elongate {
  from { transform: translateX(100px); }
  to   { transform: translateX(-100px); }
}

model-viewer > #ar-prompt {
  position: absolute;
  left: 50%;
  bottom: 60px;
  animation: elongate 2s infinite ease-in-out alternate;
  display: none;
}

model-viewer[ar-status="session-started"] > #ar-prompt {
  display: block;
}

model-viewer > #ar-prompt > img {
  animation: circle 4s linear infinite;
}

/* Form Styles */
.alg-left h2, .alg-left p {
  text-align: left;
}

.alg-left {
  margin-bottom: 32px;
}

.radio, .radio2 {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.radio span.wpcf7-list-item, .radio2 span.wpcf7-list-item {
  margin: 0px;
}

.radio span.wpcf7-list-item label, .radio2 span.wpcf7-list-item label {
  background: #FFF;
  color: rgba(0, 14, 33, 0.75);
  padding: 10px 20px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
  text-align: center;
  display: inline-block;
}

.radio2 span.wpcf7-list-item label {
  padding: 10px 50px;
}

.radio span.wpcf7-list-item label:hover, .radio2 span.wpcf7-list-item label:hover {
  background: linear-gradient(120deg, #FF9100 0%, #FFA733 100%);
  color: white;
}

.file {
  font-size: 14px!important;
}

.selected label {
  background: linear-gradient(120deg, #FF9100 0%, #FFA733 100%)!important;
  box-shadow: 0px 0px 16px 0px rgba(255, 167, 51, 0.10)!important;
  color: white!important;
}

.radio span.wpcf7-list-item input[type="radio"], .radio2 span.wpcf7-list-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  z-index: -1;
}

.row-15-bottm .row {
  margin-bottom: 15px;
}

.wpcf7-form input[type="file"] {
  display: none;
}

.wpcf7-form label.my-custom-file-upload {
  display: flex;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 20px;
  cursor: pointer;
  text-align: center;
  margin: 10px 0;
  border: none;
  color: rgba(0, 14, 33, 0.25);
  gap: 16px;
  padding: 10px;
  width: 100%;
  justify-content: center;
}

.wpcf7-form label.my-custom-file-upload:hover {
  background-color: #f0f0f0;
}

.form-lable {
  color: rgba(0, 14, 33, 0.75);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  margin-bottom: 10px;
}

.form-col-2 {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Form inputs */
.config-form .form-control {
  border-radius: 32px;
  padding: 15px 20px;
  border: 1px solid #E5E5E5;
  font-family: 'Poppins', sans-serif;
}

.config-form .form-control:focus {
  border-color: #FF9100;
  box-shadow: 0 0 0 0.2rem rgba(255, 145, 0, 0.25);
}

.config-form textarea.form-control {
  border-radius: 20px;
}

.config-form .form-label {
  font-weight: 600;
  color: rgba(0, 14, 33, 0.75);
}

/* Finalize button style */
.btn-gradientAnime {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 15px 30px;
  border-radius: 32px;
  background: linear-gradient(120deg, #FF9100 0%, #FFA733 100%);
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  overflow: hidden;
}

.btn-gradientAnime:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 145, 0, 0.4);
  color: white;
}

.btn-gradientAnime-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #FFA733 0%, #FF9100 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-gradientAnime:hover .btn-gradientAnime-inner {
  opacity: 1;
}

.text-btn-gradientAnime {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Submit button */
.btn-orange {
  background: linear-gradient(120deg, #FF9100 0%, #FFA733 100%);
  color: white;
  border: none;
  border-radius: 32px;
  padding: 15px 40px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 145, 0, 0.4);
}

/* Margins */
.m-t-48 {
  margin-top: 48px;
}

.m-t-64 {
  margin-top: 64px;
}

.m-b-48 {
  margin-bottom: 48px;
}

/* Responsive */
@media (max-width: 992px) {
  model-viewer {
    height: 350px;
  }
  
  .custom-option-div {
    width: 140px;
  }
}

@media (max-width: 768px) {
  model-viewer {
    height: 300px;
    margin-top: 30px;
  }
  
  .row-option {
    overflow-x: auto;
    padding: 20px;
    justify-content: start!important;
    flex-wrap: nowrap;
  }
  
  .items {
    flex-wrap: wrap;
  }
  
  .custom-option-div {
    width: 120px;
    flex-shrink: 0;
  }
  
  .custom-option-div.expanded {
    left: 0px;
    width: calc(100% - 40px);
  }
  
  #back {
    width: auto;
  }
  
  .radio span.wpcf7-list-item {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  h3 {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .custom-option-div {
    width: 100px;
  }
  
  .item {
    width: 40px;
    height: 40px;
  }
}
