.checkbox-block {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.car-element {
    width: 60px;
    height: 60px;
    position: absolute;
    font-weight: 600;
    font-size: 13.4085px;
    line-height: 151.2%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1.11737px solid #0062BC;
    color: #000000;
    cursor: pointer;
}
.car-element:hover { background-color: #ddd; }

.car-element.selected {
    background-color: #28a745;
    color: white;
    border-color: #218838;
}

#car-svg {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* -------------#Positions ---------------*/
.car-element.rff { top: 0; left: 40px; }
.car-element.hood { left: 25px; }
.car-element.lff { left: 40px; bottom: 0; }
.car-element.rfd { top: 0; left: 40%; }
.car-element.lfd { bottom: 0; left: 40%; }
.car-element.rrd { top:0; left: 60%; }
.car-element.rrail { left:55%; top: 20%; }
.car-element.roof { left:50% }
.car-element.lrail { left:55%; bottom: 20%; }
.car-element.lrd { bottom:0; left: 60%; }
.car-element.rq { top: 0; right: 40px; }
.car-element.trunk { right:25px; }
.car-element.lq { right: 40px; bottom: 0; }

div#carElementsSchema {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 0 auto;
    height: 350px;
    max-width: 860px;
    width: 100%;
}

#carSelectionWrapper {
    display: flex;
    gap: 20px;
    align-items: center;
}

#ElementsRange.hidden { display: none; }

#ElementsRange {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 350px;
}

.selected-item {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #0062BC;
    border-radius: 8px;
    padding: 10px;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    margin-bottom: 5px;
}

.selected-label {
    font-weight: bold;
    color: #242424;
}

button.remove-selection {
    padding: 0;
    background-color: unset;
    box-shadow: unset;
    min-height: unset;
    font-size: 16px;
}
button.remove-selection:hover {
    color: red !important;
    background-color: unset;
    box-shadow: unset;
}

.slider-container {
    display: flex;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.input-range {
    flex: 0 0 85%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    background: #0062BC;
    border-radius: 5px;
    outline: none;
    margin-right: 10px;
}

.input-num {
    flex: 0 0 15%;
    text-align: center;
    font-weight: 600;
    font-size: 15px !important;
    color: #EEEEEE !important;
    background: var(--wd-primary-color) !important;
    border-radius: 5px !important;
    height: unset !important;
    padding: 0 !important;
    max-width: 40px!important;
    border-color: unset !important;
    border: 0 !important;
}

.numbers {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    width: 85%;
    margin-top: 5px;
    color: #242424;
    margin-bottom: 10px;
}
.numbers span {
    flex: 1;
    text-align: center;
    min-width: 10px;
}
.numbers span:nth-child(2n) { visibility:hidden; }

#sendEnquiryWrapper {
    text-align: center;
    margin-top: 20px;
    width: 100%;
}

#sendEnquiryButton {
    background: #0062BC;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}
#sendEnquiryButton:hover { background: #004a8f; }

/* ==========================================
   MODAL: prevent background scroll + fix iOS
   ========================================== */

/* Body scroll lock class (JS adds/removes this) */
body.cds-modal-open {
    position: fixed;
    width: 100%;
    overflow: hidden;
    touch-action: none;
}

/* Modal overlay */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);

    /* center properly on mobile */
    align-items: center;
    justify-content: center;

    /* allow internal scroll only */
    overflow: hidden;
}

/* Modal content should scroll, not the page */
.modal-content {
    background: white;
    padding: 20px;
    width: min(800px, 92vw);
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Close button */
.close-enquiry {
    cursor: pointer;
    margin-left: auto;
    margin-top: -15px;
    font-size: 34px;
    font-weight: 300;
    color: var(--wd-primary-color);
}

.hidden { display: none; }

div#enquiryModal h2 {
    text-align: center;
    font-size: 32px;
    padding-bottom: 30px;
}

#enquiryForm {
    display: flex;
    flex-direction: column;
}

#enquiryForm input {
    width: 100%;
    margin-top: 10px;
    height: 50px;
    border-radius: 10px;
    color: #333;
    border: 1px solid #dfe3e7;
    box-shadow: 0px 5px 20px 0px rgb(0 0 0 / 10%);
    background: #fff;
    padding: 0 15px;
    font-size: 16px; /* iOS: avoid zoom + misalignment issues */
    margin-bottom: 20px;

    /* iOS fix */
    -webkit-appearance: none;
    appearance: none;
}

#enquiryForm button {
    background: #0062BC;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 150px;
    font-size: 16px;
    font-weight: 600;
    height: 46px;
}

#enquiryForm button:hover { background: #004a8f; }

#prevStep {
    background: #d9534f;
    margin-right: 10px;
}

#enquiryForm input[type="file"] {
    width:unset;
    box-shadow: unset;
    height: unset;
    padding: unset;
    border:unset;
    border-radius:unset;
    font-size: 14px;
}

#enquiryForm button#prevStep {
    background: #242424;
    width: 150px;
}

#enquiryForm [type=submit] { width: 150px; }

.row.latest-buttons {
    justify-content: center;
    margin-top: 25px;
}

.error-message { color: red; }

/* ===== Submit loading feedback (minimal) ===== */
#enquiryForm .step-2 button[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

#enquiryForm .step-2 button[type="submit"][disabled]{
  opacity: 0.7;
  cursor: not-allowed;
}

#enquiryForm .step-2 button[type="submit"] .btn-spinner{
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: eztechSpin 0.8s linear infinite;
}

@keyframes eztechSpin {
  to { transform: rotate(360deg); }
}
/* Highlight invalid fields */
#enquiryForm input.cds-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220,53,69,0.2) !important;
}
/* ===== Prevent background scrolling when modal is open ===== */
body.cds-modal-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* ===== iPhone / mobile input focus alignment fix ===== */
.modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-content {
  margin: 8vh auto; /* less jumpy than 15% on mobile */
}

