/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.d-f-r {
    display: flex;
    flex-direction: row;
}

.d-f-c {
    display: flex;
    flex-direction: column;
}

.d-inline {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.d-none {
    display: none;
}

.m-w-100 {
    max-width: 100%;
}

/* ==========================================================================
   VEHICLE UPLOAD FORM - MAIN CONTAINER
   ========================================================================== */

#vehicle-upload-form.design3 {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
}

/* ==========================================================================
   FORM STRUCTURE - ROWS & COLUMNS
   ========================================================================== */

#vehicle-upload-form.design3 .step-row {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: 15px;
    align-items: center;
}

#vehicle-upload-form.design3 .step-row.button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#vehicle-upload-form.design3 .step-col h5 {
    font-weight: 300;
    text-transform: none;
}

/* ==========================================================================
   CSS GRID LAYOUT SYSTEM
   ========================================================================== */

/* Grid container styles */
#vehicle-upload-form.design3 .form-grid-1,
#vehicle-upload-form.design3 .form-grid-2,
#vehicle-upload-form.design3 .form-grid-3,
#vehicle-upload-form.design3 .form-grid-4 {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Grid column layouts */
#vehicle-upload-form.design3 .form-grid-1 {
    grid-template-columns: 1fr;
}

#vehicle-upload-form.design3 .form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

#vehicle-upload-form.design3 .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

#vehicle-upload-form.design3 .form-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Form field wrapper within grid */
#vehicle-upload-form.design3 .form-grid-1 .form-field-wrapper,
#vehicle-upload-form.design3 .form-grid-2 .form-field-wrapper,
#vehicle-upload-form.design3 .form-grid-3 .form-field-wrapper,
#vehicle-upload-form.design3 .form-grid-4 .form-field-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-navigation.upload-row {
    display: flex;
    gap: 10px;
}

.form-navigation.button-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-top: 20px;
}

#vehicle-upload-form.design3 button.back-step, #vehicle-upload-form.design3 button.submit-form {
    width: 23% !important;
    padding: 15px !important;
    border: 0 !important;
    border-radius: 5px !important;
}

#vehicle-upload-form.design3 button.back-step {
    background-color: #ffffff00 !important;
    color: #000000 !important;
}

#vehicle-upload-form.design3 button.submit-form:hover { 
    background-color: #28ce96 !important;
    color: #000000 !important;
}

/* Responsive breakpoints */
@media (max-width: 768px) {
    #vehicle-upload-form.design3 .form-grid-2,
    #vehicle-upload-form.design3 .form-grid-3,
    #vehicle-upload-form.design3 .form-grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Stack radio and checkbox on tablet */
    #vehicle-upload-form.design3 .form-radio-checkbox-container {
        flex-direction: column;
        gap: 15px;
    }

    #vehicle-upload-form.design3 .form-navigation.upload-row {
        flex-direction: column;
    }
}

/* ==========================================================================
   FORM HEADER
   ========================================================================== */

#vehicle-upload-form.design3 .form-head {
    border-bottom: 1px solid #e9e9e9;
    line-height: 0;
    margin-bottom: 19px;
}

#vehicle-upload-form.design3 .paragraf {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
}

/* ==========================================================================
   FORM INPUTS & CONTROLS
   ========================================================================== */

#vehicle-upload-form.design3 select,
#vehicle-upload-form.design3 input[type="text"],
#vehicle-upload-form.design3 input[type="number"],
#vehicle-upload-form.design3 input[type="email"],
#vehicle-upload-form.design3 input[type="tel"] {
    flex: 1;
    appearance: none;
    min-height: 50px;
}

#vehicle-upload-form.design3 select:focus-visible {
    border: none;
}

/* Radio and Checkbox Groups */
#vehicle-upload-form.design3 .form-radio-checkbox-container {
    display: flex;
    gap: 20px;
    width: 100%;
}

#vehicle-upload-form.design3 .form-radio-checkbox-container .idradio,
#vehicle-upload-form.design3 .form-radio-checkbox-container .idcheckbox {
    flex: 1;
}

/* Optional Fields */
#vehicle-upload-form.design3 .optional-fields-btn {
    padding: 5px;
    padding-top: 0px;
    /*text-align: center;*/
    margin-bottom: 20px;
    margin-top: 5px;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.8rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

button.next-step {
    text-wrap: nowrap;
    max-width: 100%;
    width: 100%;
}

button.next-step svg {
    max-height: 45px;
}

#vehicle-upload-form.design3 button.next-step, 
button.submit-form, 
button.back-step {
    cursor: pointer;
    transition: background 0.3s ease;
    max-height: fit-content;
}

/* ==========================================================================
   IMAGE UPLOAD - DROPZONE
   ========================================================================== */

#vehicle-upload-form.design3 #vehicle-image-upload {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 0px;
    background: #f8fbfd;
    border-radius: 8px;
    border: 2px dashed #ccc;
    cursor: pointer;
    width: 100%;
    min-height: 85px;
    flex-wrap: wrap;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-preview.dz-image-preview {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 0px;
    min-height: 70px;
    display: flex;
    flex-direction: row;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-preview {
    position: relative;
    display: inline-block;
    vertical-align: top;
    margin: 16px;
    min-height: 70px;
    max-height: 70px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-remove {
    font-size: 22px;
    font-weight: 600;
    padding-left: 7px;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-preview .dz-image {
    border-radius: 3px;
    overflow: hidden;
    width: 70px;
    height: 70px;
    position: relative;
    display: block;
    z-index: 10;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-error-mark, 
#vehicle-image-upload .dz-success-mark {
    left: 38%;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-preview .dz-progress {
    left: 43%;
    width: 70px;
}

#vehicle-upload-form.design3 #vehicle-image-upload .dz-preview .dz-details {
    display: none;
}

#vehicle-upload-form.design3 .dropzone .dz-message .dz-button {
    font-size: 1rem;
    text-transform: unset;
    /*font-weight: 600;*/
}

/* ==========================================================================
   PRIVACY MODAL
   ========================================================================== */

.privacy-modal {
    font-weight: 300;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
}

.privacy-modal-content {
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin: 40vh auto;
    width: fit-content;
    max-width: 90%;
}

.privacy-modal-content h2 {
    font-size: 1.3rem;
}

.privacy-modal-content p {
    font-weight: 200;
}

.privacy-modal button {
    margin: 10px;
    padding: 10px 15px;
    cursor: pointer;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
}

#accept-privacy {
    background-color: #28d087;
    padding: 5px 17px;
    font-weight: 300;
    width: 100%;
    border: 1px solid #28d087;
}

#decline-privacy {
    background-color: rgb(255, 255, 255);
    border: 2px solid lightgray;
    color: gray;
    padding: 5px 17px;
    width: 100%;
    font-weight: 200;
}

.privacy-modal button:hover {
    background-color: #000000;
}

/* ==========================================================================
   CUSTOM FORM CONTROLS
   ========================================================================== */

/* Switch Toggle */
.idswitch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.idswitch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.idslider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.idslider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .idslider {
    background-color: #2196F3;
}

input:focus + .idslider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .idslider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.idslider.round {
    border-radius: 34px;
}

.idslider.round:before {
    border-radius: 50%;
}

/* Radio Button Styling */
.idradio {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.idradio label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
}

.idradio label input {
    margin-right: 8px;
}

.idradio label input:checked + span {
    color: #000000;
    font-weight: 500;
}

.idradio label input:checked + span:before {
    background-color: #ffffff;
}

.idradio span:first-child {
    margin-bottom: 5px;
}

/* ==========================================================================
   POWERED BY SECTION
   ========================================================================== */

.powered-by-container {
    width: 100%;
    text-align: right;
    padding-top: 10px;
    padding-right: 23px;
    color: black;
    font-size: 0.7rem;
    display: none;
}

.powered-by-container a {
    color: #f35e5e;
    font-weight: 500;
}

.powered-by-container a:hover {
    color: #00CC61;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media screen and (min-width: 768px) {
    /* Button Adjustments */
    button.next-step {
        text-wrap: auto;
        width: unset;
    }

    #vehicle-upload-form.design3 button.next-step, 
    button.submit-form, 
    button.back-step {
        min-height: 85px;
        min-width: 100px;
        max-height: 100%;
        width: 20%;
        padding: 15px;
        border-radius: 5px;
        border: none;
    }

    #vehicle-upload-form.design3 button.next-step:hover, 
    button.submit-form:hover, 
    button.back-step:hover {
        background-color: #f35e5e;
        color: white;
    }

    /* Radio and Checkbox Layout - Desktop */
    #vehicle-upload-form.design3 .form-radio-checkbox-container {
        flex-direction: row;
    }
    
    #vehicle-upload-form.design3 .form-radio-checkbox-container .idradio,
    #vehicle-upload-form.design3 .form-radio-checkbox-container .idcheckbox {
        flex: 1;
    }

    /* Optional Fields */
    #vehicle-upload-form.design3 .optional-fields-btn {
        padding-top: 0px;
        width: 100%;
    }

    /* Privacy Modal */
    .privacy-modal-content {
        max-width: 500px;
    }

    /* Powered By Section */
    .ankauf-page .powered-by-container {
        color: black;
        display: block;
    }

    .powered-by-container {
        color: white;
        display: block;
    }
}

.idswitch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .idswitch input { 
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .idslider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .idslider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .idslider {
    background-color: #2196F3;
  }
  
  input:focus + .idslider {
    box-shadow: 0 0 1px #2196F3;
  }
  
  input:checked + .idslider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .idslider.round {
    border-radius: 34px;
  }
  
  .idslider.round:before {
    border-radius: 50%;
  }

  .idradio {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
  }

  .idradio label {
    display: flex;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.375em;
    margin-top: 0;
    /* Accessible outline */
    /* Remove comment to use */
    /*
      &:focus-within {
          outline: .125em solid $primary-color;
      }
    */
  }
  .idradio label input {
    position: absolute;
    left: -9999px;
  }
  .idradio label input:checked + span {
    background-color: #ffffff;
  }
  .idradio label input:checked + span:before {
    box-shadow: inset 0 0 0 0.4375em #000000;
  }
  .idradio label span {
    display: flex;
    align-items: center;
    padding: 0.275em 0.75em 0.275em 0.275em;
    border-radius: 99em;
    transition: 0.25s ease;
  }
  .idradio label span:hover {
    background-color: #d6d6e5;
  }
  .idradio label span:before {
    display: flex;
    flex-shrink: 0;
    content: "";
    background-color: #fff;
    width: 1.3em;
    height: 1.3em;
    border-radius: 50%;
    margin-right: 0.375em;
    transition: 0.25s ease;
    box-shadow: inset 0 0 0 0.125em #000000;
  }


  .checkbox-wrapper-1 *,
  .checkbox-wrapper-1 ::after,
  .checkbox-wrapper-1 ::before {
    box-sizing: border-box;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted {
    margin: 0;
    width: 0;
    height: 0;
    display: inline;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted + label:before {
    content: "";
    display: inline-block;
    vertical-align: top;
    height: 1.15em;
    width: 1.15em;
    margin-right: 0.6em;
    color: rgba(0, 0, 0, 0.275);
    border: solid 0.06em;
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em inset, 0 0 0 0.07em transparent inset;
    border-radius: 0.2em;
    background: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="white" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>') no-repeat center, white;
    background-size: 0;
    will-change: color, border, background, background-size, box-shadow;
    transform: translate3d(0, 0, 0);
    transition: color 0.1s, border 0.1s, background 0.15s, box-shadow 0.1s;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted:enabled + label:active:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset;
    background-color: #f0f0f0;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:checked + label:before {
    background-color: #000000;
    background-size: 0.75em;
    color: rgba(0, 0, 0, 0.075);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted:checked:enabled + label:active:before {
    background-color: #000000;
    color: rgba(0, 0, 0, 0.275);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:focus + label:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(255, 65, 75, 0.2), 0 0 0 5px rgba(255, 65, 75, 0.0);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:focus:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted:focus + label:active:before {
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(0, 0, 0, 0.1) inset, 0 0 0 3.3px rgba(255, 65, 75, 0.2), 0 0 0 5px rgba(255, 65, 75, 0.0);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted:disabled + label:before {
    opacity: 0.5;
  }

  .checkbox-wrapper-1 [type=checkbox].substituted.dark + label:before {
    color: rgba(255, 255, 255, 0.275);
    background-color: #222;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xml:space="preserve" fill="rgba(34, 34, 34, 0.999)" viewBox="0 0 9 9"><rect x="0" y="4.3" transform="matrix(-0.707 -0.7072 0.7072 -0.707 0.5891 10.4702)" width="4.3" height="1.6" /><rect x="2.2" y="2.9" transform="matrix(-0.7071 0.7071 -0.7071 -0.7071 12.1877 2.9833)" width="6.1" height="1.7" /></svg>');
  }
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:enabled + label:active:before {
    background-color: #444;
    box-shadow: 0 0 0.04em, 0 0.06em 0.16em -0.03em transparent inset, 0 0 0 0.07em rgba(255, 255, 255, 0.1) inset;
  }
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:checked + label:before {
    background-color: #a97035;
    color: rgba(255, 255, 255, 0.075);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled:active + label:before,
  .checkbox-wrapper-1 [type=checkbox].substituted.dark:checked:enabled + label:active:before {
    background-color: #c68035;
    color: rgba(0, 0, 0, 0.275);
  }
  .checkbox-wrapper-1 [type=checkbox].substituted + label {
    -webkit-user-select: none;
    user-select: none;
  }

  .idcheckbox {
    display: flex;
    gap: 10px;
    flex-direction: column;
    margin-top: 10px;
  }