:root {
    --primary: #00266a;
    --completed: #5cba5c;
    --text: #333;
    --gap: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #00266a !important;
    font-weight: 700;
}

.step-indicator {
    margin-bottom: 40px !important;
}

.col1 {
    grid-column: 1;
}

.col2 {
    grid-column: 2;
}

.col3 {
    grid-column: 3;
}

.step-error {
    color: red;
    font-size: 13px;
    display: block;
}

/* Breadcrumb / Step Indicator */
.step-indicator {
    counter-reset: step;
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0 0 var(--gap);
}

.step-indicator li {
    flex: 1;
    text-align: center;
    position: relative;
    color: #b1b3b7;
}

.step-indicator {
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 40px;
    width: calc(100% - (100% / 7));
    height: 1px;
    background: #f2f2f3;
    transform: translateY(-50%);
    z-index: -1;
    transition: all 0.5s ease;
}

.step-indicator li.completed::after {
    content: '';
    position: absolute;
    top: 40%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #65a1d8;
    transition: all 0.5s ease;
    z-index: -1;
}

.step-indicator li::before {
    counter-increment: step;
    content: attr(data-step);
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    /*border: 1px solid #ccc;*/
    background-color: #fff;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

.step-indicator li.completed {
    color: #65a1d8;
}

/*.step-indicator li.completed::before {
    border-color: #65a1d8;
    background: #65a1d8;
    color: #fff !important;
    content: '\2714';
    transition: all 0.5s ease;
}*/

/*.step-indicator li.current::before {
    content: counter(step);
    border-color: #65a1d8;
    background: #65a1d8;
    color: #fff;
    /*content: '\2714';
    transition: all 0.5s ease;
}*/
.step-indicator li::before {
    counter-increment: step;
    content: attr(data-step);
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    background-color: #fff;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
}

/* Completed = checkmark */
.step-indicator li.completed::before {
    content: '✓';
    background: #65a1d8;
    color: #fff !important;
    border-color: #65a1d8;
    font-weight: bold;
    font-family: sans-serif;
    font-size: 1.2rem;
}

/* Current = highlighted number */
.step-indicator li.current::before {
    /*content: counter(step);*/
    background: #65a1d8;
    color: #fff;
    box-shadow: 0 0 0 6px rgba(208, 227, 244, 0.9);
}

.step-indicator li.current::after {
    content: '';
    background: #65a1d8;
    transition: all 0.5s ease;
    width: 50%;
    position: absolute;
    top: 40%;
    /*height: 1px;
    left: 0;
    z-index: -1;
    transition: all 0.5s ease;
    transition-delay: 0.5s;*/
}

/*.step-indicator li.current::before {
    counter-increment: step;
    content: counter(step);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s ease;
    box-shadow: 0px 0px 0px 6px rgba(208, 227, 244, 0.9);
}*/

.step-indicator li.current {
    font-weight: bold;
    color: #00266a;
    transition: all 0.5s ease;
}

/* Form-step panels */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

/* Industry radios grid */
.radio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: var(--gap);
}

@media (min-width: 600px) {
    .radio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.radio-grid-row {
    grid-template-columns: repeat(1fr);
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-option .other-text {
    margin-left: 0.5rem;
    flex: 1;
}

/* Navigation buttons */
.form-navigation {
    gap: 0.5rem;
    margin-top: var(--gap);
    margin: 15px 0;
}

.form-navigation button {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 6px;
    margin: 0 3px;
    position: relative;
}

.form-navigation .btn-next,
.form-navigation .btn-next:hover,
.form-navigation .btn-next:focus {
    border: 1px solid #4474bc !important;
    background: #4474bc !important;
    color: #fff !important;
    padding-right: 35px;
}

.form-navigation .btn-next::after {
    content: '\279C';
    position: absolute;
    right: 10px;
    font-size: 1.2rem;
}

.form-navigation .btn-back,
.form-navigation .btn-back:hover,
.form-navigation .btn-back:focus {
    background: transparent !important;
    color: #4474bc !important;
    border: 1px solid #4474bc !important;
    padding-left: 35px;
}

.form-navigation .btn-back::after {
    transform: rotate(180deg);
    content: '\279C';
    position: absolute;
    left: 10px;
    font-size: 1.2rem;
}

.form-navigation .btn-skip,
.form-navigation .btn-skip:hover,
.form-navigation .btn-skip:focus {
    border: 1px dashed #4474bc !important;
    background: transparent !important;
    color: #4474bc !important;
}



.checkbox-grid .checkbox-option {
    display: block;
}

.buttons {
    display: flex;
    justify-content: flex-end;
}

.msg {
    margin: 10px 0;
}

.two-col-grid {
    display: grid;
    gap: 2rem;
}

.contact-form .form-row {
    display: grid;
    gap: 20px;
}

@media(min-width: 768px) {
    .two-col-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr 1fr;
    }

}

@media(max-width:767px) {
    .two-col-grid {
        grid-template-columns: 1fr;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media(min-width: 992px) {
    .checkbox-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 10px;
        /* Optional: space between columns */
        padding: 0;
    }


}

/* Container */
.pref-toggle {
    display: flex;
    margin-top: 0.5rem;
}

.pref-toggle div:first-child label {
    border-radius: 6px 0 0 6px;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.pref-toggle div:last-child label {
    border-radius: 0 6px 6px 0;
    border-left: 1px solid rgba(0, 0, 0, 0.2);
}

/* Hide the native radio inputs */
.pref-toggle input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Base button style (pill shape) */
.pref-toggle label {
    flex: 1;
    padding: 0.5rem 1rem;
    text-align: center;
    /*border: 2px solid #ccc;
    border-radius: 999px;*/
    /* pill shape */
    background: #e0e0e0;
    /* unchecked grey */
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Hover state */
.pref-toggle label:hover {
    background: #d5d5d5;
    border-color: #bbb;
}

/* Focus outline when keyboard‐navigating */
/* .pref-toggle input[type="radio"]:focus+label {
    box-shadow: 0 0 0 3px rgba(0, 85, 165, 0.4);
} */

/* Checked state: light-blue background & border */
.pref-toggle input[type="radio"]:checked+label {
    background: #65a1d8;
    /* light-blue */
    color: #fff;
    /* darker text for contrast */
}

ul.list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul.list li {
    /*background-color: lightblue;*/
    padding: 3px;
    margin: 3px;
}

ul.list li>label {
    display: flex;
    align-items: center;
}

ul.list li>label>input {
    margin-right: 5px;
}


/* Base reset for form controls */
.fancy-input {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-family: sans-serif;
    font-size: 1rem;
    color: #333;
}

.fancy-input input[type="checkbox"],
.fancy-input input[type="radio"] {
    /* hide the native control, but keep it accessible */
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Common box for checkbox & radio */
.fancy-input .box {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    margin-right: 0.5rem;
    box-sizing: border-box;
}

/* Radio circles are round */
.fancy-input.radio .box {
    border-radius: 50%;
}

/* Hover state */
.fancy-input:hover .box {
    border-color: #4474bc;
}

/* Checkbox checked state */
.fancy-input.checkbox input:checked+.box {
    background-color: #4474bc;
    border-color: #4474bc;
}

.fancy-input.checkbox input:checked+.box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: opacity 0.2s ease;
}

/* Radio checked state */
.fancy-input.radio input:checked+.box {
    background-color: #fff;
    border-color: #4474bc;
}

.fancy-input.radio input:checked+.box::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background-color: #4474bc;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.2s ease;
}

/* Unchecked radio dot is scaled down */
.fancy-input.radio .box::after {
    transform: translate(-50%, -50%) scale(0);
}


.fancy-input input[type="text"] {
    border: 1px solid #555 !important;
    padding: 5px 15px;
    border-radius: 4px;
}

.fancy-input input[type="text"]:disabled {
    /* light gray background */
    background-color: #f7f7f7 !important;
    /* grayed‐out text color */
    color: #999 !important;
    /* subtle border */
    border: 1px solid #ccc !important;
    /* show the “not‐allowed” cursor */
    padding: 5px 15px;
    border-radius: 4px;
    /* optional: soften the appearance */
}

/* Optional: change placeholder color too */
.fancy-input input[type="text"]:disabled::placeholder {
    color: #ccc !important;
}

.form-steps,
.user-count-form,
.org-target-form {

    padding: 10px 0;
}

.form-group,
.radio-group,
.org-target-form {
    margin-bottom: 15px;
}

/*.form-step[data-step="4"]>div:not(first-child) {
    border-top: 1px solid #ccc;
}*/

.form-navigation {
    border-top: 2px solid #ccc;
    padding-top: 20px;
}