/* styles.css */

body {
  font-family: 'Arial', sans-serif;
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.15;
  color: var(--dl-color-gray-black);
  background-color: var(--dl-color-gray-white);
}

/* Generic Input Container Styles */
.input-container {
  position: relative;
  margin-bottom: 0%;
  margin-top: 1%;
}

.input-container input,
.input-container select,
.input-container textarea {
  width: 90%;
  padding: 8px;
  border: 1px solid #ccc; /* Add border for visibility */
  border-radius: 7px;
  background-color: #f0f0f0;
  font-size: 14px;  /* User input font size */
  box-sizing: border-box;
  margin-top: 3px; /* Add space above input */
  margin-bottom: 5px; /* Add space above input */
  margin-left: 10%;
}

/* Floating Label Styles */
.input-container .floating-label {  /* Target the class for floating labels */
  position: absolute;
  top: 50%;
  left: 13%;   /* Positions the text left/right inside the input fields */
  transform: translateY(-62.5%); /* Positions the text up/down inside the input fields */
  pointer-events: none;
 
  color: #333;  /* Label text color */
  font-weight: lighter; /* Label font weight */
  font-size: 14px; /* Label font size */
}

.input-container input:focus + .floating-label,
.input-container input:valid + .floating-label,
.input-container select:focus + .floating-label,
.input-container textarea:focus + .floating-label,
.input-container textarea:valid + .floating-label {
  top: 0; /* Move the label above the input when focused or valid */
  left: 13%; 
  font-size: 11px; /* Shrink the label size */
  color: black;
  transition: top 0.2s ease-out, font-size 0.2s ease-out, color 0.2s ease-out;
  transform: translateY(-80%); /* Original transform from base style */
}


/* Clearfix for column layout */
.input-container::after {
  content: "";
  display: table;
  clear: both;
}

/* Column Layout Styles */
.column {
  display: inline-block;
  width: 40%; /* Adjust column width */
  box-sizing: border-box;
  vertical-align: middle;
  margin-bottom: 10px; /* Add some spacing between columns */
  margin-left: 6%; /* Add a left margin */
}

/* Non-Floating Label Styles for Columns */
.column label {
  position: absolute;  /* Changes all input label locations */
  display: block;
  margin-bottom: 5px;  /* Change spacing of inputs incl text, input, & extra fields */
  color: #333; /* Label text color */
  font-weight: bold; /* Label font weight */
  font-size: 14px; /* Label font size -- current only email, request, android*/
}


/* Requested Time Pulldown Styles */
.dropdown-container .pickupLabel {
    position: static;
    justify-content: space-between;
    width: 50%;
    display: inline-block;
    margin-right: 5%; /* Adjust the space to your preference */
    font-weight: bold;
    font-size: 15px; /* Label font size */
    vertical-align: middle;
    margin-left: 17%; /* Add a left margin */
    margin-top: 7%;
}

.dropdown-container .pickupBar {
    position: static;
    display: inline-block;
    width: 50%; /* does nothing now use below */
    margin-top: 7%;
    margin-left: 16%;
}

#pickupDate { 
  width: 200%;   /* width of drop down menu */
    padding: 8px;
  border: 1px solid #ccc; /* Add border for visibility */
  border-radius: 7px;
  background-color: #f0f0f0;
  font-size: 14px;  /* User input font size */
  box-sizing: border-box;
}


/* Phone Type General */
.phone-type-container {
  display: flex;
  justify-content: space-between;
  width: 90%; /* Adjust the width if needed */
  margin-top: 1%; /* Add spacing for better layout */
  margin-right: 0%;
  margin-left: 7%;
  font-size: 14px;  
}

/* Phone Type Label */
.phone-type-container label {
    display: inline-block;
    position: static;
   /* width: 40%;*/
    margin-left: 2%;
    margin-right: 0%; /* Adjust the space to your preference */
    font-weight: bold;
    font-size: 15px; /* Phone Type font size */
} 

.phone-type-container .column {
    width:30%;
}

/* Phone Type Radios */
.phone-type-container input[type="radio"] {
  margin-left: 35%; /* Adjust spacing between label and radio high moves radio left */
  cursor: pointer; /* Add cursor pointer for better interaction */
  margin-top: 1%; /* push radios down relative to android label */
  width: 12px; /* Adjust width of radio */
  height: 12px; /* Adjust height of radio */
    color: black; /* Set text color to black */
}

/* Phone Type Radio Label */
.phone-type-container .phoneChoice label {
    position: static;
    margin-top: 3%; /* push android label down relative to radio */
    width: 30%;
    color: black; /* Set text color to black */
    margin-left: 10%; /* Adjust spacing between label & radio, higher closer */
    font-size: 12px;  /* radio button label font size */
   /* line-height: 1.5; /* Increase line height slightly */
}

#orderDetails {
  padding: 8px;
  border: 1px solid #ccc; /* Add border for visibility */
  border-radius: 7px;
  background-color: #f0f0f0;
  font-size: 14px;  /* User input font size */
  box-sizing: border-box;
    margin-top: 2%;
    margin-left: 10%;
    width: 90%;
}




/* Additional Styles for Overall Popup Layout */
#orderPopup {
    display: none;
    position: fixed;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background-color: #ddd;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    z-index: 1;
    padding: 10px; /* Padding inside the popup */
}

#popupContent {
   /* padding: 30px;*/
}

#popupHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px; /* Add spacing below the header */
}

#popupHeader button {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 8px;
}

#popupTitle {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    padding-right: 36px;
    margin-top: 2%;
    margin-bottom: 4%; /* Add spacing below the title */
}

#popupTable {
    display: grid;
    grid-template-columns: 50% 20% 29%;
    grid-gap: 4px;
    margin-left: 2%; /* Indent the table */
    margin-bottom: 20px;
    margin-right: 2%;
    margin-top: 4%;
    background-color: #ACBEED;
    padding: 15px;
    border-radius: 6px;
    }

#popupInput {
      display: grid;
      grid-template-columns: 50% 50%;
      grid-gap: 0px;
      margin-left: 6%; /* Indent the table */
      margin-bottom: 5px;
      margin-right: 6%;
      margin-top: 0;
      background-color: #ACBEED; 
      padding: 0px;
      border-radius: 0px;
    }

    .column-heading {
      font-weight: bold;
      text-align: center; /* Center-align column headings */
      color: white;
    }

    .product-cell,
    .quantity-cell,
    .price-cell {
      padding: 10px;
      border-radius: 5px;
      background-color: white;
      text-align: center;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .quantity-cell select {
      width: 5em; /* Wider quantity pulldown */
      padding: 5px;
      font-size: 16px;
    }

    #popupTable input {
      width: 100%;
      padding: 10px;
      font-size: 16px;
      border: 1px solid #ddd;
      border-radius: 5px;
    }

    #popupSubmit {
      background-color: grey;
      margin-top:3%;
      color: #000;
      padding: 10px 20px;
      border: none;
      cursor: not-allowed;
      border-radius: 5px; /* Rounded button */
    }

    #popupSubmit.active {
      background-color: #FD744F;
      color: #fff;
      cursor: pointer;
    }

