.jj-vv-representatives {
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.jj-vv-representatives h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.jj-vv-representative {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.jj-vv-representative h4 {
    margin: 0 0 8px 0;
    color: #cd1817;
    font-size: 16px;
    font-weight: 600;
}

.jj-vv-representative p {
    margin: 5px 0;
    font-size: 14px;
}

.jj-vv-contact-button {
    display: inline-block;
    margin: 10px 10px 10px 0;
    padding: 10px 20px;
    background: #cd1817;
    color: #fff !important;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s;
}

.jj-vv-contact-button:hover {
    background: #005177;
    color: #fff !important;
}

.jj-vv-contact-button.secondary {
    background: #333;
}

.jj-vv-contact-button.secondary:hover {
    background: #444;
}

.jj-vv-error-message {
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 3px;
    color: #856404;
}

.jj-vv-loading {
    text-align: center;
    padding: 20px;
}

.jj-vv-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #cd1817;
    border-radius: 50%;
    animation: jj-vv-spin 1s linear infinite;
}

@keyframes jj-vv-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form results container */
.jj-vv-form-results {
    margin-top: 0;
    display: inline-block;
    vertical-align: top;
    width: 100%;
    margin-left: 2%;
}

/* Make form inline-block when results are shown */
.gform_wrapper.jj-vv-has-results {
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

/* Edit information button */
.jj-vv-edit-info-button {
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.jj-vv-edit-info-button:hover {
    background: #444;
}

/* Ensure the form submission button is styled when changed */
.gform_button[value="Find Legislators"],
.gform_button[value="Update Legislators"], input#gform_submit_button_13 {
    background: #cd1817!important;
    color: #fff;
}

.gform_button[value="Finding Legislators..."] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Update Representatives button */
.jj-vv-update-reps-button {
    margin-bottom: 20px;
    padding: 8px 16px;
    background: #cd1817;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.3s;
}

.jj-vv-update-reps-button:hover {
    background: #005177;
}

/* Auto-loading message */
.jj-vv-auto-loading {
    margin: 20px 0;
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 3px;
    text-align: center;
    color: #1976d2;
    font-weight: 500;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .jj-vv-form-results,
    .gform_wrapper.jj-vv-has-results {
        display: block;
        width: 100%;
        margin-left: 0;
    }
    
    .jj-vv-form-results {
        margin-top: 30px;
    }
}
@media only screen and (min-width:769px) {
.voter-right-col > .vc_column-inner > div > .gform_wrapper {
    display: flex;
    gap: 8px;
}
}

.ginput_container_consent {
    display: flex;
    gap: 4px;
}