/**
 * VBS Exit Poll - Public Styles
 * 
 * @package VBS_Exit_Poll
 */

.vbs-exit-poll-form {
    max-width: 700px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.vbs-poll-header {
    text-align: center;
    margin-bottom: 30px;
}

.vbs-poll-title {
    color: #667eea;
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.vbs-poll-subtitle {
    color: #666;
    font-size: 1.1em;
    margin: 0;
}

/* Role Selector */
.vbs-role-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.vbs-role-btn {
    flex: 1;
    max-width: 250px;
    padding: 15px 25px;
    border: 2px solid #667eea;
    background: white;
    color: #667eea;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.vbs-role-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.vbs-role-btn:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.vbs-role-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Form Groups */
.vbs-form-group {
    margin-bottom: 25px;
}

.vbs-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
}

.vbs-required {
    color: #e53e3e;
}

.vbs-optional {
    color: #999;
    font-weight: normal;
    font-size: 0.9em;
}

/* Input Fields */
.vbs-input,
.vbs-select,
.vbs-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.vbs-input:focus,
.vbs-select:focus,
.vbs-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vbs-input.error,
.vbs-select.error,
.vbs-textarea.error {
    border-color: #e53e3e;
}

.vbs-textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

/* Radio Groups */
.vbs-radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.vbs-radio-group.error {
    border-color: #e53e3e;
}

.vbs-radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.vbs-radio-label:hover {
    background: white;
}

.vbs-radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.vbs-radio-label span {
    font-weight: normal;
    color: #333;
}

/* Checkbox Groups */
.vbs-checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.vbs-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.vbs-checkbox-label:hover {
    background: white;
}

.vbs-checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.vbs-checkbox-label span {
    font-weight: normal;
    color: #333;
}

/* Form Actions */
.vbs-form-actions {
    margin-top: 30px;
}

.vbs-submit-btn {
    width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.vbs-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

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

.vbs-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.vbs-submit-btn .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.vbs-submit-btn .dashicons.spin {
    animation: spin 1s linear infinite;
}

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

/* Messages */
.vbs-form-message {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}

.vbs-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.vbs-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Success Message */
.vbs-success-message {
    text-align: center;
    padding: 60px 20px;
}

.vbs-success-message .success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 20px;
}

.vbs-success-message .success-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
}

.vbs-success-message h3 {
    color: #333;
    font-size: 2em;
    margin: 0 0 15px 0;
}

.vbs-success-message p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vbs-exit-poll-form {
        padding: 30px 20px;
        margin: 20px 10px;
    }
    
    .vbs-poll-title {
        font-size: 2em;
    }
    
    .vbs-role-selector {
        flex-direction: column;
    }
    
    .vbs-role-btn {
        max-width: 100%;
    }
    
    .vbs-checkbox-group {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vbs-poll-title {
        font-size: 1.75em;
    }
    
    .vbs-poll-subtitle {
        font-size: 1em;
    }
    
    .vbs-submit-btn {
        font-size: 1em;
        padding: 14px 24px;
    }
}

/* Print Styles */
@media print {
    .vbs-role-selector,
    .vbs-form-actions {
        display: none;
    }
    
    .vbs-exit-poll-form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}