/* base */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  max-width: 430px;
  margin: auto;
  background-color: #f9f9f9;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 430px;
  background-color: #f4f4f4;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 72px;
  height: 42px;
  margin-right: 5px;
}

.title {
  font-weight: bold;
  font-size: 18px;
  color: #555;
}

main {
  padding-top: 60px;
}

.message-top{
    padding-left: 20px;
    padding-right: 20px;
}
/* spacing between each law section increased */
.law-section + .law-section {
  margin-top: 100px;
}


/* rest of your styles unchanged */
.law-title {
  font-weight: bold;
  margin: 60px 0;
  color: #555;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

input[type="range"] {
  appearance: none;
  width: 90%;
  max-width: 350px;
  height: 6px;
  background: #87cfd3;
  border-radius: 5px;
  margin: 20px 0 8px;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: orange;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 350px;
  font-size: 12px;
  margin-top: 5px;
}



/* Output Bar */
.output-bar {
  margin: 20px 30px;
  padding: 20px;
  border: 2px dotted #333;
  border-radius: 10px;
}

.message-for-result {
  font-size: 13px;
  color: #525252;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin-bottom: 10px;
}

.feedback-result {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.people-output {
  margin-top: 20px;
  font-weight: bold;
  color: #555;
}

/* Slider Styles */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 90%;
  max-width: 350px;
  height: 6px;
  background: #c2c2c2;
  border-radius: 5px;
  margin: 20px 0 8px;
  pointer-events: none; /* Disable interaction on the bar */
}

input[type="range"].range {
  background: #87cfd3;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: orange;
  cursor: pointer;
  pointer-events: auto; /* Enable interaction on the handle */
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: orange;
  cursor: pointer;
  pointer-events: auto; /* Enable interaction on the handle */
}

/* Slider Labels */
.slider-labels {
  display: flex;
  justify-content: space-between;
  width: 90%;
  max-width: 350px;
  font-size: 12px;
  margin-top: 5px;
}

/* All Feedback Bars Container */
.all-feedback-bars {
  margin: 20px 30px;
  padding: 15px;
  border: 2px groove #e8fafc;
}

/* Individual Law Section */
.law-section {
  text-align: center;
  margin-bottom: 20px;
}

.law-title {
  font-weight: bold;
  margin-bottom: 10px;
  color: #555;
}

/* User Details Form */
.user-details {
  padding: 20px 15px;
  text-align: center;
}

.user-details-message {
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
}

.input-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.name-input,
.email-input,
select {
  width: 90%;
  max-width: 380px;
  padding: 12px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.country-box-label,
.gen-box-label {
  display: block;
  font-size: 14px;
  color: #555;
  margin: 8px 0 4px;
  text-align: left;
  width: 90%;
  max-width: 380px;
}

/* Save Button */
.save-btn {
  display: block;
  margin: 40px auto;
  padding: 10px 20px;
  background-color: #e5f1f4;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  color: #0072ff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.save-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  filter: grayscale(30%);
}

/* Thank You Message */
#thankYouMessage {
  display: none;
  margin-top: 10px;
  color: #005591;
  font-weight: bold;
  text-align: center;
}

.feedback-confirmation {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.end-gap{
  margin-bottom: 150px;
}
