@media screen and (max-width: 900px) {
  #result {
    font-size: 0.7 em;
    max-width: 100%;
    font-weight: 200;
    background-color: #fff;
    border: 1px solid #444;
    color: #000000;
    line-height: 1em;
    box-shadow: #0d0138 0px 1px 7px;
    font-family: "Helvetica", sans-serif;
    border-radius: 9px;
    padding-left: 5px;
  }
}
details,
summary,
legend,
fieldset,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
ul,
li {
  font-family: "Helvetica", sans-serif;
  color: #000000;
}

body {
  max-width: 720px;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid #000000;
  background-color: #556576;
  font-family: "Helvetica", sans-serif;
  color: #000000;
  box-shadow: #0d0138 0px 5px 7px;
}

/* Apply styles to the form */
.quoteForm {
  background-color: #adbbca;
  max-width: 99%;
  margin: 0 auto;
  padding: 7px;
  font-family: "Helvetica", sans-serif;
  color: #000000;
  border: 1px solid #6d6199;
  box-shadow: #3b3454 0px 2px 2px;
  border-radius: 9px;
}

/* Center and style images */
.img {
  display: block;
  margin: 0 auto;
  max-width: 95%;
  transition: transform 0.3s ease-in-out;
  box-shadow: #592d48 0px 9px 7px;
  border-radius: 9px;
}
.img:hover {
  transform: scale(1.08);
  box-shadow: #0d0138 0px 18px 7px;
  border-radius: 9px;
}
.logo {
  display: block;
  margin: 0 auto;
  max-width: 95%;
  transition: none;
  box-shadow: none;
}
.logo:hover {
  transform: scale(1.08);
}

#kQuote {
  color: chocolate;
  font-size: 3em;
  text-shadow: maroon 3px 3px 3px;
}
.kQuote {
  color: chocolate;
  font-size: 2em;
  text-shadow: maroon 3px 0px 3px;
}
#quoteIntro {
  background-color: #adbbca;
  max-width: 99%;
  margin: 0 auto;
  padding: 7px;
  font-family: "Helvetica", sans-serif;
  color: #000000;
  border: 1px solid #6d6199;
  box-shadow: #3b3454 0px 2px 2px;
  border-radius: 9px;
}
/* Style fieldsets */
fieldset {
  border: 2px solid #1c3a4f;
  background-color: #adbbca;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: #024666 0px 2px 7px;
  border-radius: 9px;
}
/* CSS for modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
}
.modal-content:hover {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  text-align: center;
  transition: transform 3s ease-in-out;
  box-shadow: #0b2d6c 0px 12px 7px;
} /* Base styling */

/* Fieldset styling */
fieldset {
  border: 2px solid #dcdcdc;
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
  transition: all 0.3s;
}

fieldset:hover {
  border-color: #5d547f;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

#result > fieldset {
  margin-top: 0;
  padding-top: 0;
}
/* Legend styling */
legend {
  font-size: 1.25em;
  font-weight: 600;
  color: #333;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Label styling */
label {
  display: block;
  margin: 15px 0 5px;
  font-size: 0.9em;
  font-weight: 600;
  color: #333;
}

/* Input elements styling */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
select,
textarea {
  width: 90%;
  padding: 10px;
  margin: 5px auto;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  font-size: 1em;
  color: #333;
  background: #f9f9f9;
}

/* Checkbox styling */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* Button styling */
button,
.btn {
  padding: 9px 9px;
  background-color: rgb(40, 66, 95);
  color: #fff;
  border: 1px solid #3f5369;
  border-radius: 4px;
  font-size: 1.25em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: block;
  margin-top: 20px;
  margin: auto;
  max-width: 95%;
  box-shadow: #ffffff 0px 5px 7px;
}
button,
.btn:hover {
  background-color: rgb(140, 185, 214);
  color: #231515;
  box-shadow: #000000 4px 5px 7px;
}
.btn:active {
  background-color: rgba(3, 110, 24, 0.524);
  color: #ffffff;
  box-shadow: #000000 4px 5px 7px;
}
/* Table data styling */
.dataItems > table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

thead,
tr,
td {
  border: 1px solid #dcdcdc;
  padding: 10px;
}

/* Result styling */
#result {
  font-size: 0.7 em;
  max-width: 100%;
  font-weight: 200;
  background-color: #fff;
  border: 1px solid #444;
  color: #000000;
  line-height: 1.2em;
  box-shadow: #0d0138 0px 1px 7px;
  font-family: "Helvetica", sans-serif;
  border-radius: 9px;
  padding-left: 5px;
}

/* Style total cost */
#totalCost {
  font-weight: bold;
  color: #3b0062;
  text-align: justify;
}
.itemizedList {
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.81em;
  font-family: Helvetica, Arial, sans-serif;
  width: 99%;
  line-height: 0.5em;
  box-shadow: 5 5 5 px rgba(0, 0, 0, 0.15);
}
.itemizedList thead tr {
  background-color: #89b7d6;
  color: #ffffff;
  text-align: left;
}
.itemizedList th,
.itemizedList td {
  padding: 2px 2px;
}
.itemizedList tbody tr {
  border-bottom: 1px solid #6d6b6b;
}

.itemizedList tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.itemizedList tbody tr:last-of-type {
  border-bottom: 1px solid #0d0913;
}
.itemizedList tbody tr.active-row {
  font-weight: bold;
  color: #00110d;
}
.itemizedEmail {
  border-collapse: collapse;
  margin: 0 auto;
  font-size: 0.81em;
  font-family: Helvetica, Arial, sans-serif;
  width: 99%;
  box-shadow: 5 5 5 px rgba(0, 0, 0, 0.15);
}
.itemizedEmail thead tr {
  background-color: #89b7d6;
  color: #ffffff;
  text-align: left;
}
.itemizedEmail th,
.itemizedEmail td {
  padding: 2px 2px;
}
.itemizedEmail tbody tr {
  border-bottom: 1px solid #6d6b6b;
}

.itemizedEmail tbody tr:nth-of-type(even) {
  background-color: #f3f3f3;
}

.itemizedEmail tbody tr:last-of-type {
  border-bottom: 1px solid #0d0913;
}
.itemizedEmail tbody tr.active-row {
  font-weight: bold;
  color: #00110d;
}

.costs {
  font-weight: bold;
  color: #5b2501;
  vertical-align: text-bottom;
}

/* Style group rate section */
#groupRateSection {
  display: none;
}

.outputTable {
  width: 90%;
  margin: 10px auto;
  border-collapse: collapse;
  background-color: #ffffff;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
}

.outputTable > th,
td {
  padding: 3px 5px;
  border-bottom: 1px solid #ddd;
}

.outputTable > th {
  background-color: #2c3e50;
  color: white;
}

.outputTable > tr:hover {
  background-color: #f5f5f5;
}
/* Customized Totals */
.custom-details {
  position: relative;
}

.details-summary {
  position: absolute;
  bottom: 0;
  cursor: pointer;
  background-color: #f9f9f9;
  padding: 8px;
  width: 100%;
  text-align: center;
  border-top: 1px solid #ccc;
}

.details-content {
  padding-bottom: 10em; /* Adjust this value based on the height of the summary element */
}
.footer {
  background-color: transparent;
  margin-top: 25px;
  color: #333333; /* Dark text color */
  padding: 20px;
  text-align: center;
  font-size: 12px;
  z-index: -10;
}

.footer a {
  color: #007bff; /* Define a link color, you can change this as needed */
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline; /* Add underline on hover for links */
}
#setsList {
  list-style: none;
  padding: 0;
  line-height: 1.2em;
}
#setsList li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.removeSetButton {
  margin-left: 20px;
}
