/* Responsive design */
@media (max-width: 768px) {
  #user-landing {
    background: #fcf9f1;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
  }
  
  #user-landing::before {
    display: none;
  }
  
  .landing-left {
    display: none;
  }
  
  .landing-right {
    display: none;
  }
  
  .landing-form-container {
    padding: 10px;
    width: 95%;
    max-width: 95%;
    background: #ffffff;
    box-shadow: 
      0 20px 40px rgba(0, 0, 0, 0.1),
      0 8px 16px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    border-radius: 15px;
    box-sizing: border-box;
  }
    .landing-form-container h1{
      font-size: 24px;
    }
  .landing-welcome {
    font-size: 24px;
  }
  
  .landing-logo {
    width: 180px;
  }
  
  .landing-subtitle {
    color: #7f8c8d;
  }
  
  .landing-banner {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .button.qpod_sel {
    left: 20%;
  }

  .button.bosspod_sel {
    right: 20%;
  }

  .kitchenlayoutright {
    align-content: center;
  }
}

@media screen and (max-width: 767px) {
  .button.qpod_sel {
    left: 22%;
  }

  .button.bosspod_sel {
    right: 22%;
  }
}

@media screen and (max-width: 479px) {
  .button.qpod_sel {
    left: 10%;
  }

  .button.bosspod_sel {
    right: 10%;
  }

  .text-block.qpod_text, .text-block.boss_pod_text {
    font-size: 15px;
    left: -11%;
  }
}

@media(orientation: landscape) {
  #pictures-area img {
    height: 80%;
  }
}

@media(orientation: portrait) {
  #pictures-area img {
    width: 90%;
  }
}

@media (max-width: 640px) or (max-height: 640px) {

  #loading-wp{
    font-size: 16px;
    line-height: 22px;
    padding-top: 5px;
  }
  
  .loading-message {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 90%;
    padding: 0 15px;
  }
  
  /* Mobile styles for loading progress */
  .loading-progress-container {
    margin: 20px 0;
    width: 80%; /* Set to 80% of screen width for mobile portrait */
  }
  
  .loading-pod-wrapper {
    width: 80%; /* Changed from fixed 200px to 100% of container */
    height: auto; /* Changed from fixed 130px to auto height */
    max-width: 300px; /* Added max-width for larger screens */
    aspect-ratio: 3/2; /* Maintain aspect ratio (600x400 desktop ratio) */
    border: 2px solid #de1624; /* Moved border here for mobile */
    border-radius: 8px;
    padding: 15px;
  }
  
  .loading-percentage-text {
    font-size: 18px;
    top: 10px; /* Changed to match desktop positioning */
    left: 0px; /* Changed to match desktop positioning */
  }
  
  .loading-indicator {
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    padding: 6px 12px;
  }
  
  /* Hide desktop special note on mobile */
  .colorpaletteholder .special-note {
    display: none;
  }
  
  /* Show mobile special note on mobile */
  .special-note.mobile-only {
    display: block;
    font-size: 12px;
    padding: 6px 8px;
    margin: 3px 5px;
    animation: special-note-pulse 4s ease-in-out infinite;
    order: -1;
    position: relative;
    z-index: 5;
  }
  
  .left-palettes-holder {
    display: flex;
    flex-direction: column;
  }
  
  .special-note {
    order: -1;
  }
  
  .totalpricecontainer{
    flex-direction: row;
    justify-content: space-around;
  }
  .options-container.finalpricefieldholder{
    width: 55%;
  }
  .optionspalettebutton.name.totalpricefield{
    width: 50%;
  }
  .options-heading {
    height: 19px;
    font-size: 12px;
  }
  .options-container{
    border-bottom: none;
    padding: 2px;
  }
  .builder-header-right{
    font-size: 12px;
    line-height: 16px;
  }
  .wotpod-title .builder{
    font-size: 15px;
    margin-top: 0;
  }
  .pod-_details_container, .optionsbuttonsholder.bosspoditems, .qpod_options_button_holder{
    display: grid;
    padding-left: 10px;
    font-size: 11px;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    padding: 5px;
  }
  .pod-_details_container .inclusions, .optionspalettetextstyling{
    font-size: 11px;
  }
  .opod_option_heading{
    font-size: 11px;
    height: 16px;
    line-height: 14px;
  }
.red-button{
  padding: 5px;
}
#gen-free-quote.red-button{
        padding: 9px 25px;
        font-size: 18px;
}
.tabs-menu{
  margin-bottom: 3px;
  flex-direction: column;
  flex-wrap: wrap;
  height: 120px;
  width: 100%;
  min-width: 200px
}
  .color-label{
    flex-direction: row;
    justify-content: flex-start;
    height: 30px;
    padding: 4px;
    gap: 10px;
    background: #000;
  }
  .color-label-header{
    width: auto;
  }

  /* Hide door open/close toggle on mobile since it's controlled automatically via tabs */
  .door-open-close {
    display: none;
  }

  /* Hide desktop-only content on mobile */
  .desktop-only {
    display: none;
  }

  /* Show mobile-only content on mobile */
  .mobile-only {
    display: block;
  }

}

@media (max-height: 640px) and (orientation: landscape) {
  .builder-header-right {
    align-items: flex-start;
    width: 22vw;
    margin-top: 10px;
    margin-left: 4px;
}

}

@media (max-width: 640px) or (max-height: 640px) {

  #loading-wp{
    font-size: 16px;
    line-height: 22px;
  }
  
  .loading-message {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 90%;
    padding: 0 15px;
  }
  
  /* Mobile styles for loading progress */
  .loading-progress-container {
    margin: 20px 0;
  }
  
  .loading-pod-wrapper {
    width: 80%; /* Changed from fixed 200px to 100% of container */
    height: auto; /* Changed from fixed 130px to auto height */
    max-width: 300px; /* Added max-width for larger screens */
    aspect-ratio: 3/2; /* Maintain aspect ratio (600x400 desktop ratio) */
    border: 2px solid #de1624; /* Moved border here for mobile */
    border-radius: 8px;
    padding: 15px;
  }
  
  .loading-indicator {
    bottom: 20px;
    right: 20px;
    font-size: 14px;
    padding: 6px 12px;
  }
  
  /* Hide desktop special note on mobile */
  .colorpaletteholder .special-note {
    display: none;
  }
  
  /* Show mobile special note on mobile */
  .special-note.mobile-only {
    display: block;
    font-size: 12px;
    padding: 6px 8px;
    margin: 3px 5px;
    animation: special-note-pulse 4s ease-in-out infinite;
    order: -1;
    position: relative;
    z-index: 5;
  }
}

/* Mobile responsive styling */
@media (max-width: 640px) or (max-height: 640px) {
  .loading-name-section {
    margin-top: 30px; /* Slightly less margin for mobile */
  }
  
  .loading-name-label {
    font-size: 16px;
    margin-left: 1px; /* Smaller left margin for mobile */
  }
  
  .loading-name-input {
    padding: 10px 50px 10px 12px; /* Smaller padding for mobile */
    font-size: 14px;
  }
  
  .loading-arrow-button {
    padding: 6px 12px;
    font-size: 12px;
    min-width: 40px;
    height: 32px;
  }

  .desktop-hint {
    display: block;
    font-size: 16px;
    margin-top: 15px;
  }
}

/* Mobile responsive for top message */
@media (max-width: 640px) or (max-height: 640px) {
  .loading-message-bottom {
    font-size: 16px;
    line-height: 1.3;
    padding: 0;
    margin-bottom: 15px;
    max-width: 95%;
  }
}

@media (max-width: 640px), (max-height: 640px) {
  .drag-rotate-hint {
    font-size: 13px;
    margin-bottom: 4px;
  }
}

@media (max-width: 640px), (max-height: 640px) {
  .reset-view-button {
    font-size: 12px;
    padding: 6px 12px;
    margin-top: 4px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .dynamic-color-tiles {
    gap: 10px;
    padding: 8px;
  }
  
  .color-tiles-container {
    gap: 4px;
    padding: 6px;
  }
  
  .color-tile {
    width: 35px;
    height: 35px;
  }
  
  .color-category-heading {
    font-size: 12px;
    padding: 4px 8px;
  }
}

@media (max-width: 640px) or (max-height: 640px) {
    .v3d-container{
      z-index: 1;
    }
    .mobile-controller-box{
      background: #000;
      z-index: 2;
    }
    
    /* Mobile tabs responsive improvements */
    .mobile-tabs {
      height: 40px;
    }
    
    .mobile-tabs .tab-button {
      padding: 0;
      font-size: 13px;
      min-width: 90px;
    }
    
    .mobile-tabs .tab-button .step-number {
      font-size: 11px;
    }
    
    .mobile-tabs .tab-button .step-text {
      font-size: 12px;
    }
  }
  
  /* Extra small screens */
  @media (max-width: 480px) {
    .mobile-tabs .tab-button {
      padding: 0;
      font-size: 12px;
      min-width: 80px;
    }
    
    .mobile-tabs .tab-button .step-number {
      font-size: 10px;
      line-height: 12px;
    }
    
    .mobile-tabs .tab-button .step-text {
      font-size: 11px;
    }
  }

@media (max-width: 640px) and (orientation: portrait) {
    .v3d-container, .mobile-controller-box{
        width: 100dvw;
    }
    .v3d-container{
      height: 45dvh;
    }
    .mobile-controller-box{
      height: 60dvh;
    }
    .pods-includes.select-pod, .all-options{
      max-height: 70%;
    }
    .optionspalettebutton.name{
      width: 75%;
      font-size: 11px;
    }
    .optionspalettebutton.price{
      align-items: flex-start;
      width: 25%;
    }
    .optionspalettebutton.price .optionspalettetextstyling{
      font-size: 11px;
    }
    .special-link {
      position: absolute;
      right: 10px;
      top: 36%;
      z-index: 3;
      margin-bottom: 0;
  }
  .special-link a{
    font-size: 13px;
  }
}

@media (max-height: 640px) and (orientation: landscape) {
    .v3d-container, .mobile-controller-box{
        width: 50dvw;
        height: 100dvh;
    }
    .special-link {
      position: absolute;
      bottom: 10px;
      left: 10px;
      z-index: 3;
      margin-bottom: 0;
  }
  .special-link a{
    font-size: 13px;
  }
}
