/**
 * Advisory Board Vote Plugin - Authentication Styles
 * USACS Color Scheme - Updated July 2026
 * Based on Figma design specifications
 */

/* CSS Variables - Design Tokens */
:root {
    --abvp-color-usacs-red: #c8102e;
    --abvp-color-black: #000000;
    --abvp-color-off-black: #101820;
    --abvp-color-white: #ffffff;
    --abvp-color-greige-60: #e6e4dc;
    --abvp-color-beige: #c5b9ac;
    --abvp-color-placeholder: #595959;
    --abvp-radius-md: 8px;
    --abvp-radius-lg: 16px;
    --abvp-radius-pill: 36px;
    --abvp-font-spectral: 'Spectral', Georgia, serif;
    --abvp-font-inter: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Hide navigation */
.site-header,
.main-navigation,
.nav-menu,
.menu,
.wp-block-navigation,
.wp-block-site-title,
.wp-block-site-tagline {
    display: none !important;
}

/* Remove header spacing */
.site-header {
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Hide footer and other navigation elements */
.site-footer,
.footer-navigation,
.wp-block-template-part,
.wp-block-navigation,
nav,
.menu,
.nav-menu,
.main-navigation,
.secondary-navigation {
    display: none !important;
}

/* Hide page titles */
.wp-block-post-title,
.entry-title,
.page-title,
h1.entry-title {
    display: none !important;
}

/* Clean up body and main content */
body {
    background: var(--abvp-color-greige-60);
    font-family: var(--abvp-font-inter);
    color: var(--abvp-color-off-black);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Background watermark badge */
.abvp-bg-badge {
    position: fixed;
    top: 40px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.6;
    pointer-events: none;
    z-index: -1;
}

.main-content,
.site-main,
.content-area {
    padding: 0 !important;
    margin: 0 !important;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

/* Auth Container - White card with beige border */
.abvp-auth-container {
    max-width: 950px;
    width: 100%;
    margin: 0 auto;
    padding: 64px 60px;
    background: var(--abvp-color-white);
    border-radius: var(--abvp-radius-lg);
    border: 1px solid var(--abvp-color-beige);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.abvp-logo {
    text-align: center;
    width: 100%;
}

.abvp-logo img {
    height: 49px;
    width: auto;
    display: block;
    margin: 0 auto 40px auto;
}

/* Fallback text for logo */
.abvp-logo-fallback {
    display: none;
    font-family: var(--abvp-font-spectral);
    font-size: 28px;
    font-weight: 500;
    color: var(--abvp-color-off-black);
    text-align: center;
    letter-spacing: 2px;
}

/* Show fallback if image fails to load */
.abvp-logo img[src*="error"] ~ .abvp-logo-fallback,
.abvp-logo img:not([src]) ~ .abvp-logo-fallback {
    display: block;
}

.abvp-copy {
    margin-bottom: 21px;
    max-width: 830px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--abvp-color-beige);
}

.abvp-copy h2 {
    font-family: var(--abvp-font-spectral);
    font-weight: 500;
    font-size: 60px;
    line-height: 90px;
    letter-spacing: -3px;
    color: var(--abvp-color-usacs-red);
    margin: 0 0 21px 0;
}

.abvp-copy p {
    font-family: var(--abvp-font-inter);
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: var(--abvp-color-black);
    margin: 0;
}

.abvp-auth-form {
    width: 100%;
    max-width: 830px;
    margin: 0 auto;
}

.abvp-divider {
    width: 100%;
    height: 1px;
    background-color: var(--abvp-color-beige);
    margin: 21px 0;
}

.abvp-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;
}

.abvp-form-group {
    text-align: left;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.abvp-form-group label {
    display: block;
    font-family: var(--abvp-font-inter);
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--abvp-color-off-black);
}

.abvp-form-group label .required {
    color: var(--abvp-color-usacs-red);
}

.abvp-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--abvp-color-black);
    border-radius: var(--abvp-radius-md);
    font-family: var(--abvp-font-inter);
    font-size: 16px;
    line-height: 24px;
    color: var(--abvp-color-black);
    background: var(--abvp-color-white);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.abvp-form-group input::placeholder {
    color: var(--abvp-color-placeholder);
}

.abvp-form-group input:focus {
    outline: none;
    border-color: var(--abvp-color-usacs-red);
    box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

/* Submit Button - Black pill shape */
.abvp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    height: 44px;
    background: var(--abvp-color-black);
    color: var(--abvp-color-white);
    border: none;
    border-radius: var(--abvp-radius-pill);
    font-family: var(--abvp-font-inter);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.abvp-submit-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.abvp-submit-btn:active {
    transform: translateY(0);
}

.abvp-submit-btn:disabled {
    background: #999999;
    cursor: not-allowed;
    transform: none;
}

.abvp-submit-btn.loading {
    background: #666666;
}

.abvp-submit-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

/* Messages */
.abvp-message {
    width: auto;
    padding: 30px;
    margin-top: 20px;
    border-radius: var(--abvp-radius-md);
    font-family: var(--abvp-font-inter);
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-align: center;
}

.abvp-message.success {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    border: 1px solid #2e7d32;
}

.abvp-message.error {
    background: rgba(224, 62, 82, 0.1);
    color: var(--abvp-color-usacs-red);
    border: 1px solid var(--abvp-color-usacs-red);
}

.abvp-message.info {
    background: rgba(21, 101, 192, 0.1);
    color: #1565c0;
    border: 1px solid #1565c0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .abvp-auth-container {
        padding: 48px 40px;
        max-width: 700px;
    }
    
    .abvp-copy h2,
    .abvp-voting-content h2 {
        font-size: 48px;
        line-height: 64px;
        letter-spacing: -2px;
    }
}

@media (max-width: 768px) {
    .abvp-auth-container {
        padding: 40px 24px;
        gap: 32px;
    }
    
    .abvp-copy h2,
    .abvp-voting-content h2 {
        font-size: 36px;
        line-height: 54px;
        letter-spacing: -1.8px;
    }
    
    .abvp-bg-badge {
        width: 250px;
        height: 250px;
        top: -20px;
        right: -80px;
    }
}

@media (max-width: 480px) {
    .abvp-auth-container {
        padding: 32px 20px;
        gap: 24px;
    }
    
    .abvp-copy h2,
    .abvp-voting-content h2 {
        font-size: 36px;
        line-height: 54px;
        letter-spacing: -1.8px;
    }
    
    .abvp-logo img {
        height: 40px;
    }
    
    /* .abvp-submit-btn {
        width: 100%;
    } */
    
    .abvp-bg-badge {
        width: 200px;
        height: 200px;
        top: -10px;
        right: -60px;
    }
}

/* Thank you page styling */
.abvp-thank-you-message {
    text-align: center;
    padding: 40px 20px;
}

.abvp-success-icon {
    font-size: 64px;
    color: #2e7d32;
    margin-bottom: 20px;
    font-weight: bold;
}

.abvp-thank-you-message h3 {
    font-family: var(--abvp-font-spectral);
    color: var(--abvp-color-usacs-red);
    font-size: 32px;
    font-weight: 500;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.abvp-thank-you-message p {
    font-family: var(--abvp-font-inter);
    font-size: 16px;
    line-height: 24px;
    color: var(--abvp-color-black);
    margin-bottom: 30px;
}

.abvp-thank-you-instructions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--abvp-color-beige);
    text-align: center;
}

.abvp-thank-you-instructions p {
    color: var(--abvp-color-placeholder);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.abvp-return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--abvp-color-black);
    border: 1px solid var(--abvp-color-black);
    padding: 8px 20px;
    height: 38px;
    border-radius: var(--abvp-radius-pill);
    font-family: var(--abvp-font-inter);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.abvp-return-link:hover {
    background: var(--abvp-color-black);
    color: var(--abvp-color-white);
    text-decoration: none;
}

/* Success page styles */
.abvp-auth-success {
    text-align: center;
}

.abvp-success-content h2 {
    color: #C8102E;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.abvp-success-content p {
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

/* Responsive design */
@media (max-width: 768px) {
    /* Use flexbox for perfect centering */
    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        margin: 0;
        padding: 20px;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    .abvp-auth-container {
        width: 100%;
        max-width: 100%;
        margin: 0; /* Remove auto margins on mobile */
        padding: 64px 60px;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    /* Ensure main content area doesn't interfere */
    .main-content,
    .site-main,
    .content-area {
        width: 100%;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    .abvp-voting-content {
        padding: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    /* .abvp-copy h2 {
        font-size: 24px;
    } */
    
    .abvp-copy p {
        font-size: 14px;
        color: #333333;
    }
    
    .abvp-form-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .abvp-auth-container {
        padding: 64px 30px;
        border-radius: 8px;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    

    
    .abvp-voting-content {
        padding: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    /* .abvp-copy h2 {
        font-size: 22px;
    } */
    
    .abvp-copy p {
        font-size: 14px;
    }
    
    .abvp-section-image {
        margin: 15px 0;
    }
    
    .abvp-section-image img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure all content fits within viewport */
    .abvp-question-section {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    .abvp-rich-content {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* Loading animation */
.abvp-submit-btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Voting interface styles */
.abvp-voting-content {
    padding: 15px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.abvp-voting-content h2 {
    font-family: var(--abvp-font-spectral);
    font-weight: 500;
    font-size: 60px;
    line-height: 90px;
    letter-spacing: -3px;
    color: var(--abvp-color-usacs-red);
    margin: 0 0 21px 0;
    text-align: center;
}

.abvp-voting-content p {
    font-family: var(--abvp-font-inter);
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
    color: var(--abvp-color-black);
    text-align: center;
}

.abvp-voting-content p strong {
    font-weight: 700;
}

/* Enhanced voting question styles */
.abvp-question {
    background: var(--abvp-color-white);
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 30px;
    width: 100%;
}

.abvp-vote-title {
    font-family: var(--abvp-font-inter);
    color: var(--abvp-color-usacs-red);
    font-size: 20px;
    font-weight: 500;
    line-height: 30px;
    letter-spacing: 0;
    margin: 0 0 10px 0;
    padding-top: 21px;
    border-top: 1px solid var(--abvp-color-beige);
    text-align: left;
}

.abvp-question-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.abvp-question-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.abvp-question-section h4 {
    color: #C8102E;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
}

.abvp-question-section h4::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #C8102E;
    margin-right: 10px;
    border-radius: 2px;
}

.abvp-question-section p {
    color: #333333;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

.abvp-rich-content {
    color: #333333;
    line-height: 1.6;
    text-align: left;
}

/* Ensure proper spacing for paragraphs */
.abvp-rich-content p {
    margin-bottom: 1em;
    margin-top: 0;
}

/* Ensure line breaks are preserved */
.abvp-rich-content br {
    display: block;
    content: "";
    margin-top: 0.5em;
}

/* Better mobile responsiveness for rich content */
@media (max-width: 768px) {
    .abvp-rich-content {
        line-height: 1.7;
        font-size: 16px;
    }
    
    .abvp-rich-content p {
        margin-bottom: 1.2em;
    }
    
    .abvp-voting-content h2 {
        font-size: 36px;
        line-height: 54px;
        letter-spacing: -1.8px;
    }
}

@media (max-width: 480px) {
    .abvp-voting-content h2 {
        font-size: 36px;
        line-height: 54px;
        letter-spacing: -1.8px;
    }
}

/* Section image styling */
.abvp-section-image {
    margin: 20px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.abvp-section-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Enhanced image styling for rich content */
.abvp-rich-content img {
    max-width: 300px;
    height: auto;
    border-radius: 0;
    margin: 10px auto;
    display: block;
}

/* Prevent inline images from breaking layout */
.abvp-question-section img {
    max-width: 300px;
    height: auto;
    border-radius: 0;
    margin: 10px auto;
    display: block;
}

.abvp-rich-content ul,
.abvp-rich-content ol {
    margin: 10px 0;
    padding-left: 20px;
}

.abvp-rich-content li {
    margin-bottom: 5px;
}

.abvp-question-text {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    background: #fff;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    margin: 0;
    box-sizing: border-box;
}

.abvp-no-questions {
    text-align: center;
    padding: 40px 20px;
    color: #333333;
}

.abvp-question {
    background: var(--abvp-color-white);
    border: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.abvp-question h3 {
    color: #C8102E;
    margin-bottom: 15px;
    font-size: 18px;
}

.abvp-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: flex-start;
}

.abvp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.abvp-option:hover {
    border-color: transparent;
    background: transparent;
}

.abvp-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--abvp-color-black);
    cursor: pointer;
}

.abvp-option input[type="radio"]:checked + .abvp-option-text {
    font-weight: 400;
    color: var(--abvp-color-black);
}

.abvp-option:has(input[type="radio"]:checked) {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.abvp-option-text {
    font-family: var(--abvp-font-inter);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--abvp-color-black);
}

.abvp-submit-section {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.abvp-submit-section .abvp-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--abvp-color-black);
    color: var(--abvp-color-white);
    border: none;
    padding: 10px 24px;
    height: 44px;
    border-radius: var(--abvp-radius-pill);
    font-family: var(--abvp-font-inter);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.abvp-submit-section .abvp-submit-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.abvp-submit-section .abvp-submit-btn:active {
    transform: translateY(0);
}

.abvp-logout-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.abvp-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--abvp-color-black);
    border: 1px solid var(--abvp-color-black);
    padding: 8px 20px;
    height: 38px;
    border-radius: var(--abvp-radius-pill);
    font-family: var(--abvp-font-inter);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.2s ease;
}

.abvp-logout-btn:hover {
    background: var(--abvp-color-black);
    color: var(--abvp-color-white);
    text-decoration: none;
}

/* Timezone display styles */
.abvp-timezone-times {
    margin-top: 15px;
}

.abvp-timezone-times p {
    margin: 8px 0;
    color: #333333;
    font-size: 15px;
    line-height: 1.4;
}

.abvp-timezone-times strong {
    color: #C8102E;
    font-weight: 600;
}

/* Already voted styling */
.abvp-already-voted {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-top: 20px;
}

.abvp-status-icon {
    font-size: 64px;
    color: #10b981;
    margin-bottom: 20px;
    font-weight: bold;
}

.abvp-already-voted h3 {
    color: #10b981;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
}

.abvp-already-voted p {
    font-size: 16px;
    color: #374151;
    margin-bottom: 15px;
    line-height: 1.6;
}

.abvp-additional-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.abvp-additional-info p {
    color: #666666;
    font-size: 14px;
    font-style: italic;
    margin: 0;
}

/* Responsive design for already voted */
@media (max-width: 768px) {
    .abvp-already-voted {
        padding: 30px 15px;
    }
    
    .abvp-status-icon {
        font-size: 48px;
    }
    
    .abvp-already-voted h3 {
        font-size: 24px;
    }
    
    .abvp-already-voted p {
        font-size: 15px;
    }
} 

/* Enhanced error message styling for mobile */
.abvp-message.error {
    background: rgba(224, 62, 82, 0.1) !important;
    border: 1px solid var(--abvp-color-usacs-red) !important;
    color: var(--abvp-color-usacs-red) !important;
    padding: 30px !important;
    margin: 20px 0 !important;
    border-radius: var(--abvp-radius-md) !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    line-height: 28px !important;
    text-align: center !important;
}

/* Mobile-specific error message improvements */
@media (max-width: 768px) {
    .abvp-message.error {
        margin: 15px 10px !important;
        padding: 24px 20px !important;
        font-size: 16px !important;
        line-height: 24px !important;
    }
    
    /* Ensure error message is always visible */
    #abvp-vote-message.error {
        position: sticky !important;
        top: 0 !important;
        margin: 0 0 20px 0 !important;
        border-radius: 0 !important;
    }
}

/* Nuclear option - force errors to be visible at all costs */
.abvp-error-message {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: rgba(224, 62, 82, 0.1) !important;
    color: var(--abvp-color-usacs-red) !important;
    padding: 30px !important;
    margin: 15px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 28px !important;
    text-align: center !important;
    border: 1px solid var(--abvp-color-usacs-red) !important;
    border-radius: var(--abvp-radius-md) !important;
    /* Force positioning */
    position: relative !important;
    z-index: 999999 !important;
    /* Prevent hiding */
    clip: auto !important;
    overflow: visible !important;
    max-height: none !important;
    max-width: none !important;
}

/* Question error styling */
.abvp-question.has-error {
    border: 3px solid #C8102E !important;
    background: #fef2f2 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    position: relative !important;
}

/* Error container visibility */
.abvp-error-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    margin: 15px 0 !important;
}

/* Mobile-specific error improvements */
@media (max-width: 768px) {
    .abvp-error-message {
        font-size: 18px !important;
        padding: 20px 15px !important;
        margin: 20px 0 !important;
        /* Full width on mobile */
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .abvp-question.has-error {
        padding: 20px 15px !important;
        margin: 25px 0 !important;
    }
    
    /* Ensure error container is always visible on mobile */
    .abvp-error-container {
        margin: 20px 0 !important;
        padding: 0 !important;
    }
}

/* Visual feedback for validation errors */
.validation-error .abvp-options {
    border: 2px solid #fca5a5 !important;
    background: #fef2f2 !important;
    border-radius: 8px !important;
    padding: 10px !important;
}

.required-highlight {
    animation: pulse-error 2s infinite;
}

@keyframes pulse-error {
    0%, 100% { border-color: #fca5a5; }
    50% { border-color: #C8102E; }
}

/* Touch feedback for mobile */
.abvp-option.touch-active {
    background-color: transparent !important;
    transform: scale(0.98);
    transition: all 0.1s ease;
}

/* Ensure form validation works on mobile */
@media (max-width: 768px) {
    .abvp-voting-form {
        touch-action: manipulation;
    }
    
    .abvp-option input[type="radio"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin: 0;
        padding: 0;
    }
    
    .abvp-option label {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0;
    }
} 

/* Desktop radio button sizing */
.abvp-option input[type="radio"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--abvp-color-black);
} 

/* iOS Safari specific error visibility rules */
@supports (-webkit-touch-callout: none) {
    .abvp-error-message {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* iOS-specific properties */
        -webkit-appearance: none !important;
        -webkit-tap-highlight-color: transparent !important;
        /* Force iOS to render */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        /* Prevent iOS hiding */
        -webkit-overflow-scrolling: touch !important;
        /* Force visibility */
        position: relative !important;
        z-index: 999999 !important;
    }
    
    .abvp-error-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        /* iOS viewport fix */
        position: relative !important;
        z-index: 999999 !important;
        /* Force iOS to render */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    .abvp-question.has-error {
        /* iOS-specific error styling */
        border: 3px solid #C8102E !important;
        background: #fef2f2 !important;
        /* Force iOS to render */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
} 