/* === MOBILE RESPONSIVENESS === */
@media (max-width: 768px) {
  body {
    padding: 16px;
    margin: 0;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: hidden;
  }

  form#quoteForm {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  form#quoteForm label {
    width: 100%;
    flex: 1 1 100%;
  }

  .checkbox-row,
  .checkbox-row-horizontal {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
  }

  #pieceGroupsContainer {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
  }

  .piece-group {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    flex-direction: column !important;
    display: flex !important;
    gap: 12px;
    border-radius: 6px;
    background-color: #045380;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .title-checkbox-container {
    flex-direction: column !important;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .inputs-checkboxes-container {
    width: 100%;
  }

  .piece-group .input-row {
    flex-direction: column !important;
    gap: 12px;
    width: 100%;
  }

  .piece-group .input-row > label {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .piece-group .input-row > label input[type="number"],
  .piece-group .input-row > label input[type="text"] {
    max-width: 100%;
  }

  button.remove-piece,
  button#addPieceGroup,
  form#quoteForm button[type="submit"] {
    height: auto !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
    line-height: 1.2 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex: none !important;
    align-self: stretch !important;
    margin-left: 0 !important;
    display: block !important;
  }

  /* === CHECKBOX STYLING FOR VISIBLE TICKS === */
  .checkbox-label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
  }

  .checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid white;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
    position: relative;
  }

  .checkbox-label input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 10px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    pointer-events: none;
  }
}
