body {
    font-family: 'Roboto', sans-serif;
    background-color: #121212; 
    background: #0F2027;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to top, #2C5364, #203A43, #0F2027);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to top, #2C5364, #203A43, #0F2027); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    min-height: 100vh;
    padding-top: 20px; 
    padding-bottom: 40px;
        background-image: url('../images/bg-site.jpg');
    background-size: cover;
    background-position: 80% top;
}


.grid {
  display: inline-flex;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  grid-gap: 20px;
  align-items: stretch;
}

.grid > article {
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px 0px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.grid > article img {
  max-width: 100%;
}

.grid > article i {
  font-size: 33px;
  line-height: 70px;
  height: 80px;
  width: 80px;
  border: 6px solid white;
  border-radius: 50%;
  background-color: #222;
  text-align: center;
  color: white;
  margin-top: -36px;
}

.grid .text {
  padding: 16px 20px 30px;
}
.grid .text h3 {
    font-size: 1.4rem!important;
}
.grid .btn {
  margin-top: 20px;
}


.button-group {
    display:flexbox!important;
    justify-content:baseline!important;
}
.button-group .btn {
    float: right;
}
.next-btn {
    margin-top: 0!important;
}
#progress-bar-label {
    display: block;
    position: absolute;
    width: 760px;
    text-transform: uppercase;
    opacity: .5;
    color: burlywood!important;
    margin-top: -2px;
}
.popover-header {
    color: #212121!important;
}
.center {
    text-align: center !important;
}
.step-title {
    text-align: center;
}
.progress-container {
    display: none;
}
.mb-2 {
    margin-bottom: 2.5rem !important;
}
.form-check-input {
    border: 1px solid #777;
    width: 1.2em;
    height:  1.2em;
}
.adv-img {
    width: 44%;
    margin: 0 auto;
    display: block;
}
#racquetSearchInput {
    margin-bottom: 0;
}
.text-light { 
    color: #777!important;
}
.form-control::placeholder {
    color: #bbbbbb;
}
.welcome-high {
    padding: 1rem;
    border: 3px solid #dce044;
    background-color: rgba(233, 197, 6, 0.54);
    border-radius: 12px;
    color: #555;
    width: 75%;
    margin: 0 auto 20px auto;
}
.wizard-step h2, .wizard-step h3 {
    color: #212121;
    font-weight: 400;
    margin-top: 16px;
}
.welcome-high p {
    margin-bottom: 0!important;
    font-weight: 400!important;
}
.wizard-container {
    background-color: rgba(255, 255, 255, 0.82); 
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 880px; /* Increased max-width for results page */
    margin: auto 40px;
    color: #212121;
}

.wizard-step {
    display: none; 
    animation: fadeIn 0.5s;
}

.wizard-step.active {
    display: block; 
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

h2, h3, h4 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 1.5rem;
}
h3.text-center.mb-1 { margin-bottom: 0.25rem !important; } 
p.text-center.text-muted.mb-4.subtitle { margin-bottom: 1.5rem !important; font-size: 0.9rem; }


.form-label {
    color: #777777; 
}

.form-control, .form-select {
    background-color: #fff;
    color: #111;
    border: 1px solid #555555;
    margin-bottom: 1rem; 
}
.form-control:disabled, .form-control:disabled::placeholder, .form-select:disabled,  {
    background-color: #333333!important ;
    color: #555!important ;
    border: 1px solid #555555;
}
.form-control::placeholder  {
    background-color: #fff!important ;
    color: #999!important ;
}
#racquetSearchResults { 
    border: 1px solid #555555;
    border-top: none; 
}
.list-group-item-dark { 
    background-color: #fff;
    border-color: #eee;
    color: #222;
}
.list-group-item-dark:hover {
    background-color: #0a58ca; /* Updated primary color */
    color: #ffffff; /* White text on blue hover */
}


.form-control:focus, .form-select:focus {
    background-color: #fff;
    color: #222;
    border-color: #ededed; /* Updated primary color */
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25); /* Focus ring with new primary color */
}

/* Primary Button Update */
.btn-primary {
    background-color: #0b5ed7; 
    border-color: #0b5ed7;
    /* width: 100%; */ /* Remove width 100% to allow inline-block like behavior if needed */
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 0; /* Keep or adjust as needed per context */
}
.wizard-step > .button-group > .btn-primary,
.wizard-step > .btn-primary { /* Ensure full width for step navigation buttons */
    width: 100%;
    box-shadow: 5px 5px 10px #777;
}


.btn-primary:hover {
    background-color: #0b5ed7; /* Darker shade of Bootstrap blue */
    border-color: #0a58ca;
}

.btn-secondary {
    background-color: #666;
    border-color: #666;
    /* width: 48%; */ /* Remove width to allow natural width or control with col classes */
    padding: 0.75rem;
    font-size: 1rem;
    max-height: 50px;
    margin-right: 24px;
}
.wizard-step > .button-group > .btn-secondary { /* Ensure specific width for step navigation buttons */
    width: 48%;
}


.btn-secondary:hover {
    background-color: #444444;
    border-color: #444444;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
}
.wizard-step > .button-group { 
    margin-top: 2rem;
}


.progress {
    margin-bottom: 2rem;
    background-color: #333333; 
}

.progress-bar {
    background-color: #fdd90d; /* Updated primary color */
}

.option-button {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #ededed;
    border: 1px solid #555555;
    color: #111;
    text-align: left;
    border-radius: .5rem;
    cursor: pointer;
}

.option-button.selected {
    background-color: #ffffff; /* Updated primary color */
    border: 4px solid #0a58ca;
    color: #111; /* White text on blue selected */
    font-weight: 600;
}


.option-button:hover {

    background-color: #444;
    border-color: #444;
    color: #fff;
    box-shadow: 0 10px 16px #999;
}

.option-button i {
    margin-right: 10px;
}

.option-radio { 
    display: none; 
}
.radio-option { 
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background-color: #ededed;
    border: 1px solid #555555;
    color: #111;
    text-align: left;
    border-radius: .5rem;
    cursor: pointer;
}
.radio-option i { 
    margin-right: 10px;
}
.option-radio:checked + .radio-option { 
    background-color: #ffffff; /* Updated primary color */
    border: 4px solid #0a58ca;
    color: #111; /* White text on blue selected */
    font-weight: 600;
}
.radio-option:hover { 
    background-color: #444444;
}

/* --- Results Page Specific Styles --- */
.results-header .results-logo {
    max-width: 200px; 
    margin-bottom: 0.5rem;
}
.results-header h2 {
    font-size:1.9rem;
    font-style: italic;
    color: #121212; /* Updated primary accent color */
    margin-bottom: 0.5rem;
}
.results-header .lead {
    font-size: 1rem;
    color: #ccc; 
}

.primary-results-panel {
    background-color: rgba(255,255,255, 0.8);
    /*border: 1px solid #ededed; */ /* Updated primary accent border */
    padding: 0.4rem;
    border-radius: 16px;
}
.primary-results-panel .results-label {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.25rem;
    letter-spacing: 0.05em;
}
.primary-results-panel .d-block {
    font-size: 0.8rem;
    color: #333;
}
.primary-results-panel .results-value {
    color: #212121; /* Updated primary accent for key values */
    font-weight: 500;
    margin-bottom: 0.25rem;
}
.primary-results-panel .h4 { /* Font size for primary values like Type, Tension, Gauge */
    font-size: 1.5rem; /* Adjusted from display-6 for better fit */
    font-weight: 500;
}
.primary-results-panel .tension-guidance {
    font-size: 0.8rem;
    color: #666;
}
.primary-results-panel .tension-guidance i {
    margin-right: 5px;
}
.text-power { color: #ffc107; } /* Bootstrap warning yellow for power */
.text-balanced { color: #17a2b8; } /* Bootstrap info cyan for balanced */
.text-control { color: #dc3545; } /* Bootstrap danger red for control */

.primary-string-image {
    max-height: 100%; /* Control size of string type image */
    object-fit: contain; /* Ensure image fits well */
    margin: auto; /* Center if needed */
}


.results-action-btn {
    font-size: 0.9rem;
    padding: 0.3rem 0.8rem;
}
.results-action-btn i {
    margin-right: 5px;
}


.educational-section .results-card, .advanced-tips-section .results-card {
    background-color: rgba(255,255,255, 0.99);
    padding: 0; 
    border-radius: 16px;
    margin-bottom: 15px;
    display: flex; 
    flex-direction: column;
    color: #121212;
    border: 1px solid #ccc;
    backdrop-filter: blur(10px);
}
.educational-section .results-card .card-img-top,
.advanced-tips-section .results-card .card-img-top {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    object-fit: cover;
    max-height: 180px; 
}
.educational-section .results-card .card-body,
.advanced-tips-section .results-card .card-body {
    padding: 1rem;
    flex-grow: 1; 
}

.educational-section .results-card h5,
.advanced-tips-section .results-card h5 {
    color: #212121; /* Updated primary accent */
    margin-bottom: 0.75rem;
}
.educational-section .results-card p,
.advanced-tips-section .results-card p {
    color: #313131;
    font-size: 0.85rem; 
    line-height: 1.5;
}

.results-cta-main { /* This will now use the primary blue color */
    background-color: #0b5ed7; 
    border-color: #0b5ed7;
    color: white;
    width: 100%;
    padding: 0.5rem;
}
.results-cta-main:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}
.results-cta-secondary { /* Keep Schedule button green as per prototype */
    background-color: #198754; /* Bootstrap success green */
    border-color: #198754;
    color: white;
    font-size: 1rem;
}
.results-cta-secondary:hover {
    background-color: #157347;
    border-color: #146c43;
}

.final-cta-panel .btn {
    min-width: 180px; /* Adjusted min-width */
    padding: 0.6rem 1rem;
    margin-left: 0.25rem; /* Add some spacing between buttons */
    margin-right: 0.25rem;
}
.final-cta-panel {
    border-top: 1px solid #444; /* Add separator */
}
.final-cta-panel .btn-outline-secondary {
    color: #ccc;
    border-color: #555;
}
.final-cta-panel .btn-outline-secondary:hover {
    background-color: #444;
    color: #fff;
}

#results {
    padding-top: 1rem; 
}
@media only screen and (max-width: 600px) {
  body {
    background-color: lightblue;
  }
    .grid {
        display: grid;
    }
    .welcome-high {
        width: 100%;
    }
    .results-logo {
        max-width: 60%!important;
    }
}
