:root{--va-primary:#1e40af;--va-primary-dark:#1e3a8a;--va-secondary:#dc2626;--va-text:#1f2937;--va-text-light:#6b7280;--va-bg:#ffffff;--va-bg-light:#f9fafb;--va-border:#e5e7eb;--va-shadow:0 4px 6px -1px rgb(0 0 0/0.1),0 2px 4px -2px rgb(0 0 0/0.1);--va-shadow-lg:0 10px 15px -3px rgb(0 0 0/0.1),0 4px 6px -4px rgb(0 0 0/0.1)}.va-trust-act-tool{max-width:900px;margin:2rem auto;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:var(--va-text)}.va-tool-section{background:var(--va-bg);border-radius:12px;padding:2rem;margin-bottom:2rem;box-shadow:var(--va-shadow)}.va-header{text-align:center;margin-bottom:2rem}.va-title{font-size:2rem;font-weight:700;color:var(--va-primary);margin:0 0 .75rem 0;line-height:1.2}.va-subtitle{font-size:1.125rem;color:var(--va-text-light);margin:0;line-height:1.6}.va-form{max-width:500px;margin:0 auto}.va-form-group{margin-bottom:1.5rem}.va-label{display:block;font-weight:600;margin-bottom:.5rem;color:var(--va-text);font-size:.95rem}.va-input{width:100%;padding:.875rem 1rem;font-size:1rem;border:2px solid var(--va-border);border-radius:8px;transition:all .2s;box-sizing:border-box}.va-input:focus{outline:0;border-color:var(--va-primary);box-shadow:0 0 0 3px rgba(30,64,175,.1)}.va-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.875rem 1.5rem;font-size:1rem;font-weight:600;border:none;border-radius:8px;cursor:pointer;transition:all .2s;text-decoration:none}.va-button-primary{width:100%;background:var(--va-primary);color:#fff}.va-button-primary:hover{background:var(--va-primary-dark);transform:translateY(-1px);box-shadow:var(--va-shadow-lg)}.va-button-secondary{background:var(--va-bg-light);color:var(--va-text);border:2px solid var(--va-border)}.va-button-secondary:hover{background:#fff;border-color:var(--va-primary);color:var(--va-primary)}.va-button-small{padding:.5rem 1rem;font-size:.875rem}.va-button-icon{width:20px;height:20px}.va-call-button{background:var(--va-secondary);color:#fff;padding:1rem 1.5rem;border-radius:8px;text-decoration:none;display:inline-flex;align-items:center;gap:.75rem;font-weight:600;font-size:1.125rem;transition:all .2s;box-shadow:var(--va-shadow)}.va-call-button:hover{background:#b91c1c;transform:translateY(-2px);box-shadow:var(--va-shadow-lg);color:#fff}.va-call-icon{width:24px;height:24px}.va-loading{text-align:center;padding:2rem}.va-spinner{width:40px;height:40px;margin:0 auto 1rem;border:4px solid var(--va-bg-light);border-top-color:var(--va-primary);border-radius:50%;animation:va-spin .8s linear infinite}@keyframes va-spin{to{transform:rotate(360deg)}}.va-loading p{color:var(--va-text-light);font-size:1rem}.va-error{background:#fef2f2;border:2px solid #fecaca;color:#991b1b;padding:1rem;border-radius:8px;margin-top:1rem}.va-results-section{animation:va-fade-in .4s ease-out}@keyframes va-fade-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.va-results-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:2rem;padding-bottom:1rem;border-bottom:2px solid var(--va-border)}.va-results-title{font-size:1.5rem;font-weight:700;color:var(--va-primary);margin:0}.va-legislators-list{display:flex;flex-direction:column;gap:1.5rem}.va-legislator-card{background:var(--va-bg-light);border:2px solid var(--va-border);border-radius:12px;padding:1.5rem;transition:all .2s}.va-legislator-card:hover{border-color:var(--va-primary);box-shadow:var(--va-shadow)}.va-legislator-header{display:flex;gap:1.25rem;margin-bottom:1.5rem}.va-legislator-image{width:80px;height:80px;border-radius:50%;object-fit:cover;border:3px solid #fff;box-shadow:var(--va-shadow)}.va-legislator-image-placeholder{width:80px;height:80px;border-radius:50%;background:var(--va-primary);display:flex;align-items:center;justify-content:center;font-size:2rem;font-weight:700;color:#fff;border:3px solid #fff;box-shadow:var(--va-shadow)}.va-legislator-info{flex:1;display:flex;flex-direction:column;justify-content:center}.va-legislator-name{font-size:1.375rem;font-weight:700;color:var(--va-text);margin:0 0 .25rem 0}.va-legislator-role{font-size:1rem;color:var(--va-text-light);margin:0 0 .25rem 0}.va-legislator-party{display:inline-block;padding:.25rem .75rem;font-size:.875rem;font-weight:600;border-radius:20px;background:var(--va-bg);color:var(--va-text);border:1px solid var(--va-border)}.va-call-script{background:#fffbeb;border:2px solid #fbbf24;border-radius:8px;padding:1.25rem;margin-bottom:1.5rem}.va-script-label{font-weight:700;color:#92400e;margin-bottom:.75rem;display:flex;align-items:center;gap:.5rem}.va-script-icon{width:20px;height:20px}.va-script-text{color:#78350f;line-height:1.7;font-size:1rem}.va-script-text strong{color:#92400e}.va-contact-info{display:flex;flex-direction:column;gap:1rem}.va-contact-item{display:flex;align-items:center;gap:.75rem;color:var(--va-text-light)}.va-contact-icon{width:20px;height:20px;color:var(--va-primary)}.va-contact-link{color:var(--va-primary);text-decoration:none;font-weight:600}.va-contact-link:hover{text-decoration:underline}.va-call-action{margin-top:1.5rem;padding-top:1.5rem;border-top:2px solid var(--va-border);text-align:center}@media (max-width:768px){.va-tool-section{padding:1.5rem}.va-title{font-size:1.5rem}.va-subtitle{font-size:1rem}.va-results-header{flex-direction:column;align-items:flex-start;gap:1rem}.va-legislator-header{flex-direction:column;align-items:center;text-align:center}.va-legislator-info{align-items:center}
    
    /* Mobile header improvements */
    .va-header {
        padding: 0 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .va-header h2 {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .va-header p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Mobile card improvements */
    .va-legislator-card {
        padding: 1.25rem;
    }
    
    .va-leg-name {
        font-size: 1.25rem;
    }
    
    .va-leg-title {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Mobile button adjustments */
    .va-call-button,
    .va-email-button {
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
    
    /* Mobile contact details */
    .va-contact-details {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0.75rem;
    }
    
    .va-phone-display,
    .va-email-display {
        font-size: 0.875rem;
    }
    
    /* Mobile script section */
    .va-script {
        margin-top: 1rem;
    }
    
    .va-script h4 {
        font-size: 1rem;
        padding: 0.75rem;
        background: #fef3c7;
        border-radius: 6px;
        margin-bottom: 0;
    }
    
    .va-script.collapsed h4 {
        margin-bottom: 0;
    }
    
    .va-print-script {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (max-width:480px){.va-trust-act-tool{margin:1rem}.va-tool-section{padding:1rem}.va-legislator-card{padding:1rem}
    
    /* Extra small mobile adjustments */
    .va-header h2 {
        font-size: 1.3rem;
    }
    
    .va-header p {
        font-size: 0.875rem;
    }
    
    .va-leg-photo {
        width: 70px;
        height: 70px;
    }
    
    .va-leg-name {
        font-size: 1.15rem;
    }
    
    .va-leg-title {
        font-size: 0.85rem;
    }
}

/* Success header */
.va-success-header {
    background: #f0fdf4;
    border-left: 4px solid #059669;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.va-success-header p {
    margin: 0;
    color: #166534;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Uniform legislator photo styling */
.va-leg-photo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: var(--va-bg-light);
    border: 3px solid #fff;
    box-shadow: var(--va-shadow);
}

.va-leg-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Copy to clipboard functionality */
.va-phone-display {
    cursor: pointer;
    transition: all 0.2s;
    user-select: all;
}

.va-phone-display:hover {
    color: var(--va-primary);
    transform: scale(1.05);
}

.va-phone-display.copied {
    color: #059669;
    font-weight: 600;
}

/* Print script button */
.va-print-script {
    background: var(--va-bg);
    border: 1px solid var(--va-border);
    color: var(--va-text);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.va-print-script:hover {
    background: var(--va-primary);
    color: #fff;
    border-color: var(--va-primary);
}

/* Collapsible script on mobile */
.va-script h4.collapsed {
    cursor: pointer;
    position: relative;
    padding-right: 2rem;
}

.va-script h4.collapsed:hover {
    color: var(--va-primary);
}

.va-script h4.collapsed::after {
    content: '▼';
    position: absolute;
    right: 0.75rem;
    transition: transform 0.2s;
}

.va-script h4.expanded::after {
    transform: rotate(180deg);
}

.toggle-indicator {
    font-size: 0.75rem;
    transition: transform 0.2s;
    position: absolute;
    right: 0.75rem;
}

/* Script content styling */
.va-script-content {
    padding: 1rem;
    line-height: 1.6;
}

.va-script-content p {
    margin: 0.75rem 0;
}

.va-script-content ul {
    margin: 0.75rem 0;
    padding-left: 1.5rem;
}

.va-script-content li {
    margin: 0.5rem 0;
}

/* Better mobile tap targets */
@media (max-width: 768px) {
    .va-call-button,
    .va-email-button {
        min-height: 48px;  /* iOS recommended tap target */
        width: 100%;
        justify-content: center;
    }
    
    .va-phone-display,
    .va-email-display {
        padding: 0.5rem;
        border-radius: 4px;
        transition: background 0.2s;
    }
    
    .va-phone-display:active,
    .va-email-display:active {
        background: var(--va-bg-light);
    }
}

/* Animation for card entrance */
.va-legislator-card {
    opacity: 1;
    transition: all 0.4s ease-out;
}

.va-legislator-card.hover {
    transform: translateY(-2px);
}

/* Contact section improvements for email + phone */
.va-contact-section {
    width: 100%;
}

.va-contact-buttons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.va-contact-details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: var(--va-text-light);
}

.va-contact-details p {
    margin: 0;
}

/* Call button - constrained width */
.va-call-button {
    background: var(--va-secondary);
    color: #fff;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: var(--va-shadow);
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.va-call-button:hover {
    background: #b91c1c;
    transform: translateY(-2px);
    box-shadow: var(--va-shadow-lg);
    color: #fff;
}

/* Email button - constrained width */
.va-email-button {
    background: #2563eb;
    color: #fff;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--va-shadow);
    flex: 1;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.va-email-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: var(--va-shadow-lg);
}

/* Modal styles */
.va-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.va-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    animation: va-modal-slide-in 0.3s ease-out;
}

@keyframes va-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.va-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 2px solid var(--va-border);
}

.va-modal-header h3 {
    margin: 0;
    color: var(--va-primary);
    font-size: 1.5rem;
}

.va-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--va-text-light);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.va-modal-close:hover {
    background: var(--va-bg-light);
    color: var(--va-text);
}

.va-modal-body {
    padding: 1.5rem;
}

.va-modal-instruction {
    background: #fffbeb;
    border-left: 4px solid #f59e0b;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    color: #92400e;
}

.va-email-form {
    margin-bottom: 1.5rem;
}

.va-email-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--va-text);
}

.va-email-input,
.va-email-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--va-border);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.va-email-input:focus,
.va-email-textarea:focus {
    outline: none;
    border-color: var(--va-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.va-email-input {
    background: var(--va-bg-light);
}

.va-email-textarea {
    resize: vertical;
    min-height: 300px;
    line-height: 1.6;
}

.va-modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.va-modal-actions .va-button {
    flex: 1;
    min-width: 140px;
}

.va-email-note {
    font-size: 0.875rem;
    color: var(--va-text-light);
    margin: 0;
    padding: 1rem;
    background: var(--va-bg-light);
    border-radius: 6px;
}

/* Prevent body scroll when modal open */
body.va-modal-open {
    overflow: hidden;
}

/* Mobile modal adjustments */
@media (max-width: 768px) {
    .va-modal {
        padding: 0.5rem;
    }
    
    .va-modal-content {
        max-height: 95vh;
    }
    
    .va-modal-header,
    .va-modal-body {
        padding: 1rem;
    }
    
    .va-modal-actions {
        flex-direction: column;
    }
    
    .va-modal-actions .va-button {
        width: 100%;
    }
    
    .va-email-textarea {
        min-height: 250px;
    }
    
    .va-contact-buttons {
        flex-direction: column;
    }
    
    .va-call-button,
    .va-email-button {
        width: 100%;
        max-width: 100%;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 480px) {
    .va-call-button,
    .va-email-button {
        font-size: 0.95rem;
        padding: 0.75rem 0.875rem;
    }
}

/* Alternative: Show only icons on very small screens (optional - uncomment to use) */
/*
@media (max-width: 360px) {
    .va-call-button::after,
    .va-email-button::after {
        content: attr(data-short-text);
    }
}
*/

/* Ensure legislator cards don't overflow */
.va-legislator-card {
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.va-leg-info {
    flex: 1;
    min-width: 0;
    max-width: 100%;
}

/* Ensure button container respects boundaries */
.va-contact-buttons {
    max-width: 100%;
    overflow: visible;
}

/* Prevent text from forcing buttons wider than container */
.va-call-button span,
.va-email-button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Social Media Buttons */
.va-twitter-button,
.va-facebook-button {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.va-twitter-button {
    background: #1da1f2;
    color: white;
}

.va-twitter-button:hover {
    background: #1a8cd8;
    transform: translateY(-2px);
    box-shadow: var(--va-shadow-lg);
}

.va-facebook-button {
    background: #1877f2;
    color: white;
}

.va-facebook-button:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: var(--va-shadow-lg);
}

.va-twitter-display {
    cursor: pointer;
    transition: color 0.2s;
}

.va-twitter-display:hover {
    color: var(--va-primary);
}

.va-twitter-display.copied {
    color: var(--va-accent);
    font-weight: 600;
}

/* Social Modal specific styles */
.va-social-form {
    margin: 1.5rem 0;
}

.va-social-textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border: 2px solid var(--va-border);
    border-radius: 8px;
    resize: vertical;
    min-height: 150px;
    box-sizing: border-box;
}

.va-social-textarea:focus {
    outline: none;
    border-color: var(--va-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.va-char-count {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    text-align: right;
}

/* Responsive adjustments for 4 buttons */
@media (max-width: 768px) {
    .va-contact-buttons {
        gap: 0.5rem;
    }
    
    .va-call-button,
    .va-email-button,
    .va-twitter-button,
    .va-facebook-button {
        flex-basis: calc(50% - 0.25rem);
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .va-call-button,
    .va-email-button,
    .va-twitter-button,
    .va-facebook-button {
        flex-basis: 100%;
        font-size: 1rem;
        padding: 0.875rem 1rem;
    }
}
