/* FORM CONTAINER - Better Spacing & Alignment */
#car-value-section {
    max-width: 650px;
    margin: 40px auto;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center everything */
    font-family: 'Arial', sans-serif; /* Ensure sans-serif font */
}

#closest-comp {
    width: 100%;
    max-width: 650px; /* Adjust this to make sure it aligns */
    box-sizing: border-box;
}

label[for="closest-comp"] {
    display: block;
    margin-bottom: 8px; /* Adjust spacing as needed */
    font-weight: 600; /* Keep it visually strong */
}

/* FORM INPUT FIELDS */
.form-group {
    text-align: left;
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: 0.3s ease-in-out;
    font-family: 'Arial', sans-serif; /* Consistent font */
}

.form-group input:focus {
    border-color: #f43230;
    box-shadow: 0 0 8px rgba(255, 0, 153, 0.5);
}

/* CONDITION GRADING SECTION */
.grading-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

/* GRADING ITEM (CONDITION BLOCK) */
.grading-item {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    font-family: 'Arial', sans-serif;
}

/* GRADING OPTIONS (BUTTONS) */
.grading-options {
    display: flex;
    justify-content: space-between; /* Ensures equal spacing */
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* GRADING BUTTON STYLE */
.grading-options input {
    display: none; /* Hide default radio input */
}

.grading-options label {
    display: inline-block;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease-in-out;
    min-width: 140px; /* Ensures uniform button sizes */
    font-family: 'Arial', sans-serif;
}

/* DEFAULT GRADING BUTTONS */
.grading-options label {
    background: #e6e6e6;
    color: #333;
    border: 1px solid transparent;
}

/* ACTIVE GRADING BUTTON (SELECTED) */
.grading-options input:checked + label {
    background: #f43230;
    color: white;
    border: 1px solid #3f3f3f;
    box-shadow: 0 0 10px rgba(105, 105, 105, 1);
}

/* BUTTON ICON STYLES */
.grading-options label::before {
    content: " ";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
}

/* SPECIFIC BUTTON COLORS */
#title-clean:checked + label, 
#carfax-low:checked + label,
#mileage-low:checked + label,
#paint-original:checked + label,
#ownership-low:checked + label,
#service-complete:checked + label,
#color-desirable:checked + label,
#equipment-full:checked + label,
#mods-none:checked + label {
    background: #2e6f40;
    color: white;
}

#title-minor:checked + label,
#carfax-multiple:checked + label,
#mileage-moderate:checked + label,
#paint-wear:checked + label,
#ownership-moderate:checked + label,
#service-partial:checked + label,
#color-neutral:checked + label,
#equipment-moderate:checked + label,
#mods-tasteful:checked + label {
    background: #ffdf00;
    color: black;
}

#title-major:checked + label,
#carfax-accidents:checked + label,
#mileage-high:checked + label,
#paint-repainted:checked + label,
#ownership-high:checked + label,
#service-poor:checked + label,
#color-unpopular:checked + label,
#equipment-limited:checked + label,
#mods-poor:checked + label {
    background: #d30000;
    color: white;
}

/* SUBMIT BUTTON */
#car-estimate-btn {
    display: block;
    width: 95%;
    margin-top: 20px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(to right, #f43230, #f76260);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s ease-in-out;
    font-family: 'Arial', sans-serif;
}

#car-estimate-btn:hover {
    background: linear-gradient(to right, #f76260, #f43230);
}

#car-estimate-btn {
    margin-bottom: 20px; /* Adjust the spacing as needed */
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    #car-value-section {
        max-width: 95%;
    }
    
    .grading-options {
        flex-direction: column;
        gap: 10px;
    }

    .grading-options label {
        width: 100%;
        text-align: center;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    .grading-options {
        display: flex;
        flex-wrap: wrap;
        justify-content: center; /* Ensures buttons are centered */
        gap: 8px; /* Adds spacing between buttons */
    }

    .grading-options label {
        width: 100%; /* Makes each button fit properly in the container */
        max-width: 250px; /* Prevents buttons from stretching too much */
        text-align: center;
    }

    .grading-container {
        padding: 10px; /* Ensures inner spacing is even */
    }

    .grading-item {
        margin-bottom: 10px; /* Adds more spacing between grading sections */
    }

    .grading-options input[type="radio"] {
        display: none; /* Hides default radio buttons */
    }

    .grading-options label {
        padding: 12px 15px;
        font-size: 16px;
        border-radius: 8px;
    }

    /* Fix for buttons extending beyond the screen */
    .grading-options label {
        width: calc(100% - 20px); /* Ensures proper spacing */
        max-width: 220px;
    }

    /* Ensures no elements touch the screen edge */
    .container {
        padding: 15px;
    }
}
/* Optional: Intro text block above calculator */
.intro-text-box {
  max-width: 720px;
  margin: 0 auto 2rem auto;
  text-align: center;
  padding: 1.5rem;
  color: #222;
  font-size: 1rem;
  line-height: 1.6;
  box-sizing: border-box;
}

/* Calculator container */
.growth-predictor {
  max-width: 960px;
  margin: 2rem auto;
  padding: 2rem 3rem;
  background: #fff;
  border-radius: 12px;
  font-family: 'Segoe UI', Roboto, sans-serif;
  color: #222;
  line-height: 1.6;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Inner group centering */
.growth-predictor .input-group,
.growth-predictor .output-group {
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Form field blocks */
.growth-predictor .field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.growth-predictor .field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}

/* Inputs */
.growth-predictor input[type="number"],
.growth-predictor input[type="range"] {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.growth-predictor input:focus {
  border-color: #f43230;
  outline: none;
}

/* Sliders */
.growth-predictor .slider-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.growth-predictor .slider-group span {
  min-width: 50px;
  text-align: right;
  font-weight: 500;
  color: #333;
}

/* Button */
.growth-predictor button {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: linear-gradient(90deg, #ff0099, #ff4d88);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.2s ease;
  box-shadow: none; /* no shadow */
}

.growth-predictor button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Results block */
.growth-predictor .output-group {
  background: #f2f2f5;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: left;
  margin-top: 2rem;
}

.growth-predictor .output-group p {
  font-size: 1.05rem;
  margin-bottom: 1rem;
  color: #222;
}

.growth-predictor .output-group span {
  font-weight: bold;
  color: #1a1a1a;
}

/* Responsive scaling */
@media screen and (max-width: 1024px) {
  .growth-predictor {
    padding: 2rem;
  }

  .growth-predictor .input-group,
  .growth-predictor .output-group {
    max-width: 100%;
  }
}

@media screen and (max-width: 600px) {
  .growth-predictor {
    padding: 1.5rem 1rem;
  }

  .growth-predictor .output-group p {
    font-size: 1rem;
  }
}
.business-type-options {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.business-type-options label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.growth-predictor .field label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0.4rem; /* Add space under the label */
}

.growth-predictor .field input,
.growth-predictor .field select {
  margin-bottom: 1.2rem; /* Add space under each field */
}
#shopCosts {
  transition: all 0.3s ease;
}
.section-label {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 2rem 0 1rem 0;
  color: #222;
  text-align: left;
}

.results-divider {
  border: none;
  border-top: 2px solid #eee;
  margin: 2rem auto 2rem auto;
  width: 100%;
  max-width: 720px;
}

/* === Elite Result Card & Gauge (non-destructive additions) === */
.result-card {
  margin: 24px auto 0;
  max-width: 720px;
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  padding: 22px;
  text-align: left;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

.result-head {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.range-block h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
  color: #333;
}

.range-block .range-values {
  font-size: 1.4rem;
  font-weight: 800;
}

.confidence-gauge {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.conf-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  background: #f2f2f5;
  color: #222;
}
.conf-high  { background:#e8f7ef; color:#175c36; }
.conf-med   { background:#fff8e6; color:#7a5a00; }
.conf-low   { background:#ffefef; color:#7a001a; }

.gauge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: conic-gradient(#f43230 var(--pct, 0%), #e8e8ec 0);
  display: grid;
  place-items: center;
}
.gauge span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #222;
}

.result-body {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}
@media (max-width: 720px){
  .result-body { grid-template-columns: 1fr; }
}

.kf-list, .flag-list { margin: 0; padding-left: 18px; }
.kf-list li { margin: 4px 0; }
.flag-list li { margin: 4px 0; color: #7a001a; font-weight: 600; }

.result-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-cta p { margin: 0; color: #333; }
.btn-pro {
  padding: 10px 14px;
  background: linear-gradient(90deg, #f43230, #f76260);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
}
.btn-pro:hover { opacity:.92; transform: translateY(-1px); }
.intro-text-box,
.intro-text-box h2 {
  font-family: 'Comfortaa', cursive;
  letter-spacing: 0.4px;
  color: #111; /* tweak if you want a darker or lighter tone */
}

.intro-text-box h2 {
  font-weight: 700;
  font-size: 1.8rem;
}

.intro-text-box p {
  font-weight: 400;
  font-size: 1.05rem;
  color: #333;
}