:root {
    --brand-primary: #3a2572;
    --brand-secondary: #a381b7;
    --brand-dark: #1b0d3e;
    --brand-light: #f5f7fb;
    --brand-hover: #5a3e9e;
}
.form-width-container {
  max-width: 992px;
  width: 100%;
  margin: 0 auto;
  padding-left: 35px!important;
  padding-right: 35px!important;
}
.relative{
    position: relative;
}
.hidden{
    display: none;
}
.rounded{
    border-radius: 0.5rem;
    border: 1px solid rgb(229 231 235);
}
.gap-1{
    gap: 1.5rem;
}
.justify-between {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.bg-brand-light {
    background-color: var(--brand-light);
}
.w-full{
    width: 100%;
}
.text-left,
.text-left h1,
.text-left h2,
.text-left h3,
.text-left h4,
.text-left h5,
.text-left h6,
.text-left p,
.text-left a {
  text-align: left!important;
}
.text-right,
.text-right h1,
.text-right h2,
.text-right h3,
.text-right h4,
.text-right h5,
.text-right h6,
.text-right p,
.text-right a {
  text-align: right!important;
}
.btn-form-primary{
    background-color: var(--brand-primary);
    color: var(--white);
    border: 2px solid var(--brand-primary);
    box-shadow: 0 4px 6px rgba(58, 37, 114, 0.2);
    transition: all 0.3s ease;
    font-size: 18px;
    line-height: normal;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    padding: 15px 20px 15px 20px;

    &:hover,
    &:focus {
        background-color: var(--brand-hover);
        border-color: var(--brand-hover);
        color: var(--white);
        transform: translateY(-1px);
    }
}
.btn-form-outline{
    background-color: var(--white);
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
    transition: all 0.3s ease;
    font-size: 18px;
    line-height: normal;
    font-weight: 500;
    text-align: center;
    letter-spacing: 2px;
    padding: 15px 20px 15px 20px;

    &:hover,
    &:focus {
        background-color: var(--brand-primary);
        border-color: var(--brand-primary);
        color: var(--white);
    }
}
.consumer-proposal-link{
    margin-top: 2rem;
    border-top: 1px solid rgb(229 231 235);
    padding-top: 1.25rem;
}
.consumer-proposal-link a span{
    transition: all 0.3s ease;
}
.consumer-proposal-link a:hover span,
.consumer-proposal-link a:focus span{
    transform: translateX(5px)
}
/*--------------------------------------------------------------
# Inputs
--------------------------------------------------------------*/ 
#intakeForm label,
.input-group label {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    display: block;
    color: var(--dark-purple);
}
.input-group input,
.custom-input{
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 18px;
    line-height: 20px;
    padding: 12px 16px;
    background-color: #fff;
    height: auto;
    position: relative;
    color: var(--purple);

    &:focus {
        outline: none;
        border: 1px solid var(--brand-primary);
        box-shadow: 0 0 0 3px rgba(58, 37, 114, 0.1);
    }
}
.input-absolute {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10px;
    z-index: 1;
    opacity: .8;
}

/*--------------------------------------------------------------
# Progess Bar
--------------------------------------------------------------*/        
.progress-container {
    width: 100%;
    height: 9px; 
    background-color: #e2e8f0;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background-color: var(--brand-secondary);
    width: 0%;
    transition: width 0.5s ease-in-out;
}
/*--------------------------------------------------------------
# Steps
--------------------------------------------------------------*/  
.quiz-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}
.quiz-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


.quiz-step .step-progress-container{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}
.step-progress-container-item .item-icon{
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.step-progress-container-item .item-icon > div {
    border: 10px solid #fff;
    border-radius: 50%;
    z-index: 1;
}
.step-progress-container-item .item-icon span{
    font-size: 16px;
    font-weight: 900;
    line-height: normal;
    display: block;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 2px solid rgb(156 163 175);
    position: relative;
    z-index: 1;
    background: #fff;
    color: rgb(156 163 175);
}
.step-progress-container-item .item-icon::after{
    content: '';
    width: 100%;
    height: 2px;
    background-color: rgb(156 163 175);
    position: absolute;
    top: calc(50% - 1px);
    left: 0;
    right: 0;
    z-index: 0;
}
.step-progress-container-item .item-label{
    font-weight: 700;
    font-size: clamp(12px, 2vw, 16px);
    line-height: normal;
    text-transform: uppercase;
    color: rgb(156 163 175);
}
.step-progress-container-item.step-done{
    & .item-icon span{
        border-color: #16a34a;
        color: #16a34a;
    }
    & .item-label{
        color: var(--brand-primary);
    }
}
.step-progress-container-item.step-active{
    & .item-icon span{
        border-color: var(--brand-primary);
        background-color: var(--brand-primary);
        color: var(--white);
    }
    & .item-label{
        color: var(--brand-primary);
    }
}
/*--------------------------------------------------------------
# Checkbox Card Styling
--------------------------------------------------------------*/ 
.checkbox-card-group {
    display: grid;
    /*grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));*/
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 1rem;
}
.checkbox-card-input {
    display: none;
}
.checkbox-card-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    background: white;
    height: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    color: var(--purple);
    font-size: 16px;
    font-weight: normal;
}
.checkbox-card-label:hover {
    border-color: var(--brand-secondary);
    transform: translateY(-2px);
}
.checkbox-card-input:checked + .checkbox-card-label {
    border-color: var(--brand-primary);
    background-color: #f3f0ff;
    color: var(--brand-primary);
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(58, 37, 114, 0.15);
}
.checkbox-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
/*--------------------------------------------------------------
# Standard Radio/Checkbox Styling
--------------------------------------------------------------*/ 
.choice-wrapper {
    display: flex;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: center;
    width: 100%;
}
.choice-wrapper:hover {
    border-color: var(--brand-secondary);
}
.choice-wrapper input {
    width: 18px;
    height: 18px;
    margin-right: 12px;
    accent-color: var(--brand-primary);
}
/* Error state for choice wrappers */
.choice-wrapper.input-error {
    border-color: #ef4444;
    background-color: #fef2f2;
}
#chkConsent{
    height: 1.25rem;
    width: 1.25rem;
    accent-color: #3a2572;
    margin-right: .5rem;
}
@media (min-width: 576px) {
    .choice-wrapper {
        max-width: calc(50% - .5rem);
    }
}
/*--------------------------------------------------------------
# Input grid
--------------------------------------------------------------*/ 
.d-grid-2{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
#householdMembersContainer .grid-group:not(:first-child){
    margin-top: 1.25rem;
    border-top: 1px solid rgb(229 231 235);
    padding-top: 1.25rem;
}
#householdMembersContainer .text-grey{
    color: rgb(156 163 175);
    font-weight: 400;
}
@media (max-width: 768px) {
    .d-grid-2{
        grid-template-columns: 1fr;
    }
}
/*--------------------------------------------------------------
# Errors
--------------------------------------------------------------*/  
.text-red {
    color: rgb(239 68 68);
}
.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2!important;
}
/*--------------------------------------------------------------
# V27 Success Step Progress Indicator
--------------------------------------------------------------*/
.step-progress-container-v27 {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0 1rem;
}

.step-progress-container-v27::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.25rem;
    width: 100%;
    height: 2px;
    background-color: rgb(229 231 235);
    z-index: 0;
}

.step-progress-item-v27 {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    width: 4rem;
}

.step-circle-v27 {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 2px solid rgb(209 213 219);
    color: rgb(156 163 175);
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 0 0 4px #f8fafc;
    position: relative;
}

.step-label-v27 {
    margin-top: 0.75rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-align: center;
    color: rgb(156 163 175);
}

.step-progress-item-v27.step-done .step-circle-v27 {
    border-color: #16a34a;
    color: #16a34a;
    background-color: #fff;
}

.step-progress-item-v27.step-done .step-label-v27 {
    color: var(--brand-primary);
}

.step-progress-item-v27.step-active .step-circle-v27 {
    border-color: var(--brand-primary);
    background-color: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 6px rgba(58, 37, 114, 0.2), 0 0 0 4px #f8fafc;
}

.step-progress-item-v27.step-active .step-label-v27 {
    color: var(--brand-primary);
}

@media (min-width: 768px) {
    .step-progress-container-v27 {
        padding: 0 2rem;
    }

    .step-progress-container-v27::before {
        top: 1.5rem;
    }

    .step-progress-item-v27 {
        width: 6rem;
    }

    .step-circle-v27 {
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
        box-shadow: 0 0 0 8px #f8fafc;
    }

    .step-progress-item-v27.step-active .step-circle-v27 {
        box-shadow: 0 4px 6px rgba(58, 37, 114, 0.2), 0 0 0 8px #f8fafc;
    }

    .step-label-v27 {
        font-size: 0.875rem;
        margin-top: 1rem;
    }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.confidentiality-note {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-style: italic;
}
/*--------------------------------------------------------------
# Media - MAX
@media only screen and (min-width: 769px) and (max-width: 992px) {}
--------------------------------------------------------------*/
@media only screen and (max-width: 992px) {
    .checkbox-card-group{
        grid-template-columns: repeat(2, 1fr);
    }
}