@media (min-width: 781px) {
  .uploadArea {
      width: 50%;
      margin-left: 20px;
  }
  .uploadArea * {
      box-sizing: border-box;
  }
  #inputTitle {
      display: block;
      width: 100%;
      height: 40px;
      padding: 4px;
      font-size: 14px;
      border-radius: 10px;
      font-family: "Maven pro", "Nunito", sans-serif;
  }
  #inputDescription {
      display: block;
      width: 100%;
      font-size: 15px;
      font-family: "Maven pro", "Nunito", sans-serif;
      resize: none;
      padding: 6px;
      border-radius: 10px;
  }
  label[for="inputName"], 
  label[for="inputPrice"] {
      display: inline-block;
      width: 80px; /* Fixed width for desktop alignment */
      vertical-align: middle;
  }
  label[for="inputPrice"], 
  #inputPrice {
      margin-top: 15px;
      margin-bottom: 20px;
  }
label[for="inputDescription"] {
    display: block; /* Or inline-block */
    margin-bottom: 10px;
    font-weight: bold;
}
  #inputPrice, #inputName {
      display: inline-block !important; /* Changed from block */
      width: 270px !important; /* Adjusted to fit next to label */
      height: 40px;
      padding: 4px;
      font-size: 14px;
      border-radius: 10px;
      font-family: "Maven pro", "Nunito", sans-serif;
      vertical-align: middle;
      margin-left: -4px; /* Cancels whitespace to prevent jumping to next line */
  }


  #submitBtn {
    background-color: #02343F;
    color: #F0EDCC;
    font-family: "Nunito", "Trebuchet MS", sans-serif;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 18px;
    width: 180px;
    border-radius: 6px;
    border: none;
    margin-top: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    /* subtle 3D depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease-in-out;
    position: relative;
  }

  /* hover = lift and brighten */
  #submitBtn:hover {
    background-color: #03505f;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
  }

  /* active = press down */
  #submitBtn:active {
    background-color: #01272e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
  }
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  /* Region fieldset */
  #regionFieldset {
    border: none;
    margin: 10px 0;
  }

  /* Scrollable region list */
  #regionList,
  .region-list {
    display: block;
    max-height: 220px;
    overflow-y: auto;
    padding: 8px 10px;
    background-color: #f3f1de;
    border: 2px solid #02343F;
    border-radius: 6px;
    font-family: "Maven pro", "Trebuchet MS", sans-serif;
  }

  /* Each checkbox row */
  .region-list label {
    display: block;
    padding: 6px 4px;
    cursor: pointer;
    font-size: 14px;
    color: #02343F;
    border-radius: 4px;
    transition: background 0.2s ease;
  }

  /* Hover effect */
  .region-list label:hover {
    background-color: #e4ebc7;
  }

  /* Actual checkbox input */
  .region-list input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px;
    cursor: pointer;
  }

  /* Highlight checked items */
  .region-list input[type="checkbox"]:checked + span,
  .region-list input[type="checkbox"]:checked ~ span {
    font-weight: bold;
    color: #003366;
  }

  /* Smooth scroll */
  .region-list {
    scrollbar-width: thin;
    scrollbar-color: #02343F #e0e0e0;
  }

  /* Custom WebKit scrollbars */
  .region-list::-webkit-scrollbar {
    width: 8px;
  }
  .region-list::-webkit-scrollbar-thumb {
    background-color: #02343F;
    border-radius: 10px;
  }
  .region-list::-webkit-scrollbar-track {
    background: #e0e0e0;
  }


  /*phone input area*/
  .phoneRow {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  .phoneRow label {
    min-width: 80px;
  }
  .phone-group {
    display: flex;
    gap: 8px;
  }
  .phone-group select, .phone-group input {
    padding: 6px;
    font-size: 14px;
    font-family: "Manrope";
  }

  /*image selection section of the upload form*/
    #imageFieldset {
      border: 2px solid #ddd;
      border-radius: 10px;
      padding: 15px 20px;
      background: #fafafa;
    }

    #imageLegend {
      font-weight: bold;
      color: #333;
      font-size: 18px;
    }

    #imageLabel {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      color: #444;
    }

    #inputImages {
      display: none;
    }

    #uploadBtn {
      display: inline-block;
      background-color: #4a90e2;
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.2s;
    }

    #uploadBtn:hover {
      background-color: #357ab8;
    }

    #selectedFilesText {
      margin-top: 10px;
      font-size: 13px;
      color: #666;
    }

    #previewContainer img {
      height: 80px;
      margin: 5px;
      border-radius: 6px;
      border: 1px solid #ccc;
      object-fit: cover;
    }



    /*questions fieldset*/
      #questionSet {
      border: 2px solid #ccc;
      border-radius: 10px;
      padding: 15px 20px;
      margin: 15px 0;
      background-color: #fafafa;
    }
    #questionSet legend {
      font-weight: bold;
      font-size: 18px;
      padding: 0 8px;
    }
    #questionSet .question {
      margin-bottom: 15px;
    }
    #questionSet label {
      margin-right: 10px;
      line-height: 1.6;
    }
    #questionSet input[type="radio"] {
      margin-right: 4px;
    }

    /*TITLES FIELDSET*/
  #serviceFieldset {
    border: none;
    margin: 10px 0;
  }
  #serviceSelect option.selected-custom {
    background-color: #cce0ff; /* light gray-blue highlight */
  }
  #serviceSelect {
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    font-family: "Maven Pro", "Trebuchet MS", sans-serif;
    color: #02343F;
    background-color: #f3f1de;
    border: 2px solid #02343F;
    border-radius: 6px;
    appearance: none;           /* remove default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
  }
  #serviceSelect:hover {
    border-color: #03505f;
    box-shadow: 0 0 6px rgba(3, 80, 95, 0.3);
  }
  #serviceSelect:focus {
    outline: none;
    border-color: #046b82;
    box-shadow: 0 0 8px rgba(2, 52, 63, 0.4);
  }


}


















@media (max-width: 780px) {
  .uploadArea {
    width: 95%;
    margin: auto;
  }
  .uploadArea * {
      box-sizing: border-box;
  }
  #inputTitle {
      display: block;
      width: 100%;
      height: 40px;
      padding: 4px;
      font-size: 14px;
      border-radius: 10px;
      font-family: "Maven pro", "Nunito", sans-serif;
  }
  #inputDescription {
      display: block;
      width: 100%;
      font-size: 14px;
      font-family: "Maven pro", "Nunito", sans-serif;
      resize: none;
      padding: 6px;
      border-radius: 10px;
  }

  label[for="inputName"], 
  label[for="inputPrice"] {
      display: inline-block;
      min-width: 80px; /* Reduced width to give input more room */
      vertical-align: middle;
  }
  /* Adds the vertical spacing specifically to the price row */
  label[for="inputPrice"], 
  #inputPrice {
      margin-top: 15px;
      margin-bottom: 15px;
  }
label[for="inputDescription"] {
    display: block; /* Or inline-block */
    margin-bottom: 10px;
    font-weight: bold;
}

  #inputName, #inputPrice {
      display: inline-block !important;
      /* Changed from 130px to 122px to reduce the gap to 2px */
      width: calc(100% - 110px) !important;
      height: 40px;
      padding: 4px;
      font-size: 14px;
      border-radius: 10px;
      font-family: "Maven pro", "Nunito", sans-serif;
      vertical-align: middle;
      box-sizing: border-box;
  }
  .uploadForm br {
      display: none;
  }
  #submitBtn {
    background-color: #02343F;
    color: #F0EDCC;
    font-family: "Nunito", "Trebuchet MS", sans-serif;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 18px;
    width: 180px;
    border-radius: 6px;
    border: none;
    margin-top: 20px;
    margin-bottom: 20px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;

    /* subtle 3D depth */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease-in-out;
    position: relative;
  }

  /* hover = lift and brighten */
  #submitBtn:hover {
    background-color: #03505f;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
  }

  /* active = press down */
  #submitBtn:active {
    background-color: #01272e;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
  }
  button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  /* Region fieldset */
  #regionFieldset {
    border: none;
  }

  /* Scrollable region list */
  #regionList,
  .region-list {
    display: block;
    max-height: 220px;
    overflow-y: auto;
    background-color: #f3f1de;
    border: 2px solid #02343F;
    border-radius: 6px;
    font-family: "Maven pro", "Trebuchet MS", sans-serif;
  }

  /* Each checkbox row */
  .region-list label {
    display: block;
    padding: 6px 4px;
    cursor: pointer;
    font-size: 14px;
    color: #02343F;
    border-radius: 4px;
    transition: background 0.2s ease;
  }

  /* Hover effect */
  .region-list label:hover {
    background-color: #e4ebc7;
  }

  /* Actual checkbox input */
  .region-list input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
  }

  /* Highlight checked items */
  .region-list input[type="checkbox"]:checked + span,
  .region-list input[type="checkbox"]:checked ~ span {
    font-weight: bold;
    color: #003366;
  }

  /* Smooth scroll */
  .region-list {
    scrollbar-width: thin;
    scrollbar-color: #02343F #e0e0e0;
  }
  #serviceFieldset, #regionFieldset {
      margin-left: 0;
      padding-left: 0;
  }
  #serviceSelect option {
    padding: 7px 0;
  }
  /* Custom WebKit scrollbars */
  .region-list::-webkit-scrollbar {
    width: 8px;
  }
  .region-list::-webkit-scrollbar-thumb {
    background-color: #02343F;
    border-radius: 10px;
  }
  .region-list::-webkit-scrollbar-track {
    background: #e0e0e0;
  }


  /*phone input area*/
  .phoneRow {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  .phoneRow label {
    min-width: 85px;
  }
  .phone-group {
    display: flex;
    gap: 10px;
  }
  .phone-group select, .phone-group input {
    padding: 5px;
    height: 36px;
    font-size: 13px;
    font-family: "Manrope";
  }

  /*image selection section of the upload form*/
    #imageFieldset {
      margin-top: 20px;
      border: 2px solid #ddd;
      border-radius: 10px;
      background: #fafafa;
    }

    #imageLegend {
      font-weight: bold;
      color: #333;
      font-size: 18px;
    }
    #imageLabel {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      color: #444;
    }
    #inputImages {
      display: none;
    }

    #uploadBtn {
      display: inline-block;
      background-color: #4a90e2;
      color: #fff;
      padding: 8px 14px;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      transition: background 0.2s;
    }

    #selectedFilesText {
      margin-top: 8px;
      font-size: 13px;
      color: #666;
    }

    #previewContainer img {
      height: 80px;
      margin: 5px;
      border-radius: 6px;
      border: 1px solid #ccc;
      object-fit: cover;
    }

    /*questions fieldset*/
    #questionSet {
      border: 2px solid #ccc;
      border-radius: 10px;
      padding: 15px 20px;
      margin: 15px 0;
      background-color: #fafafa;
    }
    #questionSet legend {
      font-weight: bold;
      font-size: 18px;
      padding: 0 8px;
    }
    #questionSet .question {
      margin-bottom: 15px;
    }
    #questionSet label {
      line-height: 1.6;
    }
    #questionSet input[type="radio"] {
      
    }

    /*TITLES FIELDSET*/
  #serviceFieldset {
    border: none;
    margin-bottom: 30px;
    
  }

  #serviceSelect option.selected-custom {
    background-color: #cce0ff; /* light gray-blue highlight */
  }
#serviceSelect {
    height: 200px;
    width: 100%;
    padding: 8px 10px;
    font-size: 14px;
    font-family: "Maven Pro", "Trebuchet MS", sans-serif;
    color: #02343F;
    background-color: #f3f1de;
    border: 2px solid #02343F;
    border-radius: 6px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: none; /* Arrow removed */
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    scrollbar-width: thin;
    scrollbar-color: #02343F #e0e0e0;
    overflow-y: auto;
  }

  /* Custom scrollbar for Chrome/Safari */
  #serviceSelect::-webkit-scrollbar {
    width: 16px;
  }
  #serviceSelect::-webkit-scrollbar-thumb {
    background-color: #02343F;
    border-radius: 10px;
  }
  #serviceSelect::-webkit-scrollbar-track {
    background: #e0e0e0;
  }

  #serviceSelect:focus {
    outline: none;
    border-color: #046b82;
    box-shadow: 0 0 8px rgba(2, 52, 63, 0.4);
  }
}