.survey-container{
    width: min(40rem, 100%);
}

button#gform_submit_button_2 {
    background-color: var(--primary-color);
    margin-bottom: 1rem;
    padding: 1.2rem;
    border-radius: 60px;
    width: 100%;
}

/* ==========================================================================
   1. CUSTOM SQUARE TICKBOXES (Checkboxes & Standard Radios only)
   ========================================================================== */

/* Choice item alignment */
:is(.gfield_checkbox, .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice {
    display: flex !important;
    align-items: center;
    position: relative;
    margin-bottom: 0.75rem !important;
    cursor: pointer;
}

/* Hide native inputs */
:is(.gfield_checkbox, .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

/* Label text spacing for the box */
:is(.gfield_checkbox:not(.gf-scale-rating), .gfield:not(.gf-scale-rating) .gfield_radio:not(.gf-scale-rating), .gfield_radio:not(.gf-scale-rating)) .gchoice label {
    display: inline-flex !important;
    align-items: center;
    position: relative;
    padding-left: 32px !important;
    margin: 0 !important;
    max-width: none !important;
    font-size: 1rem;
    line-height: 1.4;
    color: #1e293b;
    cursor: pointer;
    user-select: none;
}

/* Custom Square Box */
:is(.gfield_checkbox:not(.gf-scale-rating), .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    box-sizing: border-box;
}

/* Custom Checkmark (SVG Tick) */
:is(.gfield_checkbox:not(.gf-scale-rating), .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice label::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 12px;
    height: 12px;
    background-color: #ffffff;
    -webkit-mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6L5 9L10 3' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
    mask: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 6L5 9L10 3' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center center;
    -webkit-mask-size: contain;
    mask-size: contain;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover State */
:is(.gfield_checkbox, .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice:hover label::before {
    border-color: var(--primary-color, #0f172a);
}

/* Checked State */
:is(.gfield_checkbox, .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice input:checked + label::before {
    background-color: var(--primary-color, #0f172a);
    border-color: var(--primary-color, #0f172a);
}

:is(.gfield_checkbox, .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice input:checked + label::after {
    transform: translateY(-50%) scale(1);
}

/* Focus State */
:is(.gfield_checkbox, .gfield:not(.gf-scale-rating) .gfield_radio, .gfield_radio:not(.gf-scale-rating)) .gchoice input:focus-visible + label::before {
    outline: 2px solid var(--primary-color, #0f172a);
    outline-offset: 2px;
}

/* ==========================================================================
   2. SCALE RATING STRIP RESET & OVERRIDES
   ========================================================================== */

.gf-scale-rating .gfield_radio {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gf-scale-rating .gchoice {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

form#gform_2 .gf-scale-rating .gchoice label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0.75rem !important;
    width: 100%;
    border: 1px solid #e2e8f0;
    border-radius: 42px;
    background-color: #ffffff;
    color: #1e293b;
    font-weight: 600;
    text-align: center;
    margin: 0!important;
}

div#gform_confirmation_message_2 {
    text-align: left;
    font-size: 2rem;
    color: #303030;
    font-family: 'primana-bold';
}

/* Explicitly remove the tickbox pseudo-elements from scale rating */
.gf-scale-rating .gchoice label::before,
.gf-scale-rating .gchoice label::after {
    content: none !important;
    display: none !important;
}

.gf-scale-rating .gchoice input[type="radio"]:checked + label {
    background-color: var(--primary-color, #0f172a) !important;
    border-color: var(--primary-color, #0f172a) !important;
    color: #ffffff !important;
}

form#gform_2 .gf-scale-rating .gchoice label:hover {
    border-color: var(--primary-color, #0f172a);
    background-color: #f8fafc;
}

/* 8. Mobile responsiveness (wraps to 5 columns on narrow screens) */
@media (max-width: 600px) {
    .gf-scale-rating .gfield_radio {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}