:root {
    --dark:rgba(36, 49, 55, 1);
    --light:rgba(255,255,255,1);
    --highlight: rgba(254, 54, 1, 1);
    --secondary: rgba(255, 140, 25, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    background-color: var(--dark);
    color:var(--light);
    font-size:18px;
    /* background-image:url('/wp-content/uploads/2025/09/steering-wheel.svg'); */
    background-repeat: no-repeat;
    background-position: bottom right -100px;
    background-size:36%;

}
h1,h2,h3,h4,h5 {
    margin:0;
    font-weight:600;
}

a {
    color:var(--light);
}

.font-xl {
    font-size:2rem;
}
.font-lg {
    font-size:1.3rem;
}

.font-sm {
    font-size:0.9rem;
}
.font-bold {
    font-weight: bold;
}

.font-semibold {
    font-weight:600
}
.btn {
    border:1px solid var(--light);
    background-color:rgba(255,255,255,0.1);
    border-radius:5px;
    padding:12px 25px;
    color:white;
    font-size:1rem;
    display:block;
    cursor: pointer;
    width:132px;
}

.btn-submit {
    background-color:var(--highlight);
    border-color:var(--highlight);
    font-weight: 600;
    margin-top:20px;
    width:145px;
    cursor: pointer;
}

.btn-wide {
    width:auto;
}

.btn:hover {
    background-color:var(--highlight);
    border-color: var(--highlight);
}

.hidden {display: none;}

.flex {
    display:flex;
    flex-direction: column;
    gap:20px;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden; /* prevents full page scroll */
  display: flex;
  flex-direction: column;
}

#step-container {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

/* Actual step content */
.step-content {
  width: 80vw;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  
}

/* Override vertical centering when scrolling is needed */
#step-container.scroll-mode {
  align-items: flex-start; 
}

#step-container.scroll-mode .step-content {
  padding-top: 20px; /* Optional spacing from top */
}

.progress-bar-container {
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #FE3601 0%, #FF8C19 50%);
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    overflow: hidden;
    position: fixed;
}
.progress-bar-fill {
    height: 100%;
    width: 90%; /* Set via JS - starts high and gets smaller */
    background-color: var(--dark);
    position: absolute;
    right: 0;
    transition: width 0.3s ease;
}


.checkbox-label span {
    background:rgba(255,255,255,0.1);
    padding:15px;
    border-radius:5px;
    display:inline-block;
    cursor:pointer;
}

input:checked + span {
    background:var(--secondary);
}
.checkbox {
    display:none;
}

.challenges-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 50px;
  margin-bottom:20px;
}

@media (max-width: 600px) {
  .challenges-list {
    grid-template-columns: 1fr;
  }
}


/**************************************** 
RESULTS PAGE
****************************************/

.suggested-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 50px;
  margin-bottom:20px;
}

@media (max-width: 600px) {
  .suggested-products {
    grid-template-columns: 1fr;
  }
}

.product-card {
    padding:24px;
    background-color: rgba(255,255,255,0.1);
        text-decoration: none;

}

.product-card:hover {
    background-color:var(--highlight);
}

.product-card a {
    text-decoration: none;
}

/**************************************** 
INPUT STYLING
****************************************/

.input-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.input-label {
    font-size: 1.3rem;
    font-weight: 500;
    min-width: 200px;
    flex-shrink: 0;
}

.number-input {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid white;
    border-radius: 5px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    text-align: center;
    width: 120px;
    outline: none;
}

.number-input:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--highlight);
}

/* Style number input arrows/spinners */
.number-input::-webkit-outer-spin-button,
.number-input::-webkit-inner-spin-button {
    opacity: 1;
    height: 22px;
    width: 22px;
    margin: 0;
    cursor: pointer;
    background: var(--highlight);
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.3);
}

.number-input::-webkit-inner-spin-button:hover,
.number-input::-webkit-outer-spin-button:hover {
    background: rgba(254, 54, 1, 0.8);
    border-color: rgba(255,255,255,0.5);
}

/* For Firefox - restore number input appearance */
.number-input[type=number] {
    -moz-appearance: number-input;
    appearance: auto;
}

.text-input {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid white;
    border-radius: 5px;
    padding: 12px 20px;
    color: white;
    font-size: 1rem;
    width: 50%;
    outline: none;
}

.text-input:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--highlight);
}

.form-error-message {
    color: white;
    font-size: 0.9rem;
    align-self: center;
}

.input-error {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 1px #ff4444;
}

/**************************************** 
NAVIGATION ARROWS
****************************************/

.close-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    /* background: rgba(255, 255, 255, 0.1); */
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 100;
    text-decoration: none;
    color: #ffffff;
    font-size: 2.4rem;
    font-weight: 100;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-arrows {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.nav-arrow {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 1;
}

.nav-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-arrow:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-arrow svg {
    width: 24px;
    height: 24px;
    fill: #ffffff;
}

.nav-arrow.prev svg {
    transform: scaleX(-1);
}

/**************************************** 
MARKETING CHECKBOX
****************************************/

.marketing-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    min-width: 20px;
    background-color: rgba(255,255,255,0.1);
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    outline: none;
}

.marketing-checkbox:hover {
    background-color: rgba(255,255,255,0.2);
    border-color: var(--highlight);
}

.marketing-checkbox:checked {
    background-color: var(--highlight);
    border-color: var(--highlight);
}

.marketing-checkbox:checked::after {
    content: '';
    position: absolute;
    left: 11px;
    top: 2px;
    width: 15px;
    height: 25px;
    border: solid white;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}

.marketing p {
    margin-top:0;
}