/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure full width usage */
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.logo span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Screen Management */
.screen {
    display: none;
    flex: 1;
    animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Welcome Screen */
.welcome-content {
    background: white;
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

.welcome-hero {
    margin-bottom: 50px;
}

.hero-robot {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.welcome-hero h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
}

.welcome-hero p {
    font-size: 1.2rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.benefit-item {
    text-align: center;
    padding: 20px;
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.benefit-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.benefit-item p {
    color: #4a5568;
    font-size: 0.95rem;
}

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.time-estimate {
    margin-top: 20px;
    color: #4a5568;
    font-size: 0.9rem;
}

/* Lead Capture Form */
.form-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-hero {
    text-align: center;
    margin-bottom: 40px;
}

.form-robot {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.form-hero h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
}

.form-hero p {
    color: #4a5568;
    font-size: 1.1rem;
}

.lead-form {
    display: grid;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

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

/* Audit Screen */
.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 40px;
    position: relative;
}

.progress-fill {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 10px;
    border-radius: 50px;
    transition: width 0.5s ease;
    width: 6.67%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.question-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.question-robot {
    flex-shrink: 0;
}

.question-robot img {
    width: 150px;
    height: 150px;
    animation: float 3s ease-in-out infinite;
}

.question-card {
    flex: 1;
}

.question-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.question-card p {
    font-size: 1.1rem;
    color: #4a5568;
    margin-bottom: 30px;
    line-height: 1.6;
}

.rating-scale {
    margin-top: 20px;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #4a5568;
}

.rating-buttons {
    display: flex;
    gap: 5px; /* Reduced gap for more space */
    justify-content: center;
    flex-wrap: nowrap; /* Ensure buttons stay on one line */
    overflow-x: auto; /* Allow horizontal scrolling if necessary */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding-bottom: 5px; /* Add some padding for scrollbar if present */
    max-width: 100%;
}

.rating-btn {
    width: 38px; /* Slightly reduced width */
    height: 38px; /* Slightly reduced height */
    min-width: 38px; /* Ensure minimum width */
    min-height: 38px; /* Ensure minimum height */
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 50%;
    font-weight: 600;
    font-size: 0.9rem; /* Slightly reduced font size */
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
    flex-shrink: 0;
    touch-action: manipulation; /* Improve touch responsiveness */
}

.rating-btn:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.rating-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: scale(1.1);
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.nav-button {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    max-width: 200px;
}

.nav-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.nav-button.secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
}

.nav-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Results Screen */
.results-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.results-hero {
    margin-bottom: 40px;
}

.results-hero img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

.results-hero h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 30px;
}

.score-display {
    margin-bottom: 20px;
}

.score-circle {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.score-max {
    font-size: 1.5rem;
    font-weight: 400;
    opacity: 0.8;
}

#results-category {
    font-size: 1.3rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 30px;
}

.results-details {
    margin-bottom: 30px;
}

.results-message {
    background: #f7fafc;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
}

.cta-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.cta-section p {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.email-confirmation {
    background: #e6fffa;
    border: 2px solid #81e6d9;
    border-radius: 10px;
    padding: 20px;
    color: #234e52;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .welcome-content,
    .form-content,
    .results-content {
        padding: 25px 15px;
        margin: 10px 0;
    }
    
    .question-content {
        flex-direction: column;
        text-align: center;
        padding: 25px 15px;
        gap: 20px;
    }
    
    .question-robot img {
        width: 80px;
        height: 80px;
    }
    
    .rating-buttons {
        gap: 3px; /* Further reduced gap for mobile */
        justify-content: center;
        max-width: 100%;
        flex-wrap: nowrap; /* Ensure buttons stay on one line */
        overflow-x: auto; /* Allow horizontal scrolling if necessary */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding: 0 5px 5px 5px; /* Add padding for scrollbar */
    }
    
    .rating-btn {
        width: 32px; /* Smaller for mobile */
        height: 32px;
        font-size: 0.8rem;
        min-width: 32px; /* Ensure minimum touch target */
        min-height: 32px;
        flex-shrink: 0; /* Prevent shrinking */
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-button {
        max-width: none;
        width: 100%;
        padding: 18px 20px;
        font-size: 1.1rem;
    }
    
    .benefits {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .welcome-hero h2 {
        font-size: 1.8rem;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
        font-size: 2.5rem;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group input,
    .form-group select {
        padding: 18px 15px;
        font-size: 1.1rem;
        border-radius: 12px;
    }
    
    .cta-button {
        padding: 20px 30px;
        font-size: 1.2rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
    
    /* Improve touch targets */
    .rating-btn:active {
        transform: scale(0.95);
        background: #667eea;
        color: white;
    }
    
    /* Better spacing for mobile */
    .question-card h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .question-card p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .scale-labels {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .welcome-content,
    .form-content,
    .results-content,
    .question-content {
        padding: 20px 12px;
        margin: 8px 0;
    }
    
    .question-card h3 {
        font-size: 1.1rem;
    }
    
    .question-card p {
        font-size: 0.95rem;
    }
    
    .scale-labels {
        font-size: 0.75rem;
        padding: 0 5px;
    }
    
    .rating-buttons {
        gap: 2px; /* Very small gap for small mobile */
        padding: 0 3px 5px 3px; /* Minimal padding */
        flex-wrap: nowrap; /* Ensure buttons stay on one line */
        overflow-x: auto; /* Allow horizontal scrolling if necessary */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .rating-btn {
        width: 28px; /* Even smaller for small mobile */
        height: 28px;
        font-size: 0.75rem;
        min-width: 28px;
        min-height: 28px;
        flex-shrink: 0; /* Prevent shrinking */
        margin: 1px; /* Small margin for easier tapping */
    }
    
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .welcome-hero h2 {
        font-size: 1.6rem;
    }
    
    .form-hero h2 {
        font-size: 1.5rem;
    }
    
    .results-hero h2 {
        font-size: 1.7rem;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    
    .nav-button {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 18px 25px;
        font-size: 1.1rem;
    }
    
    /* Ensure rating buttons are easily tappable */
    .rating-btn {
        margin: 2px;
    }
    
    /* Better form layout on very small screens */
    .form-group input,
    .form-group select {
        padding: 16px 12px;
        font-size: 1rem;
    }
    
    /* Adjust progress bar for small screens */
    .progress-text {
        font-size: 0.8rem;
    }
}



/* Enhanced Animations and Interactions */

/* Particle background animation */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="90" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="1.2" fill="rgba(255,255,255,0.08)"/></svg>') repeat;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes particleFloat {
    0% { transform: translateY(0px) translateX(0px); }
    25% { transform: translateY(-20px) translateX(10px); }
    50% { transform: translateY(-10px) translateX(-5px); }
    75% { transform: translateY(-30px) translateX(15px); }
    100% { transform: translateY(0px) translateX(0px); }
}

/* Enhanced robot animations */
.hero-robot,
.form-robot,
.question-robot img,
.results-hero img {
    transition: all 0.3s ease;
}

.hero-robot:hover,
.form-robot:hover,
.question-robot img:hover,
.results-hero img:hover {
    transform: scale(1.05) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.3));
}

/* Glowing effect for interactive elements */
.cta-button,
.rating-btn,
.nav-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before,
.rating-btn::before,
.nav-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before,
.rating-btn:hover::before,
.nav-button.primary:hover::before {
    left: 100%;
}

/* Enhanced form interactions */
.form-group input:focus,
.form-group select:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.form-group {
    position: relative;
}

.form-group label {
    transition: all 0.3s ease;
}

.form-group input:focus + label,
.form-group select:focus + label {
    color: #667eea;
    transform: translateY(-2px);
}

/* Progress bar enhancements */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Rating button enhancements */
.rating-btn {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.rating-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
}

.rating-btn.selected {
    animation: selectedPulse 0.3s ease;
}

@keyframes selectedPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

/* Card hover effects */
.welcome-content,
.form-content,
.question-content,
.results-content {
    transition: all 0.3s ease;
}

.welcome-content:hover,
.form-content:hover,
.question-content:hover,
.results-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

/* Benefit items animation */
.benefit-item {
    transition: all 0.3s ease;
    cursor: pointer;
}

.benefit-item:hover {
    transform: translateY(-5px);
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
}

.benefit-item:hover .benefit-icon {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

/* Score circle animation */
.score-circle {
    animation: scoreReveal 1s ease-out;
    position: relative;
}

@keyframes scoreReveal {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(90deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.score-circle::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2, #667eea);
    z-index: -1;
    animation: scoreGlow 2s ease-in-out infinite alternate;
}

@keyframes scoreGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.05); }
}

/* Navigation button enhancements */
.nav-button {
    position: relative;
    transform-origin: center;
}

.nav-button:not(:disabled):hover {
    animation: buttonPulse 0.3s ease;
}

@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading states */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Smooth transitions for screen changes */
.screen {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen:not(.active) {
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Enhanced mobile interactions */
@media (max-width: 768px) {
    .rating-btn:active {
        transform: scale(0.95);
    }
    
    .cta-button:active,
    .nav-button:active {
        transform: scale(0.98);
    }
    
    /* Reduce animations on mobile for better performance */
    .hero-robot,
    .form-robot,
    .question-robot img {
        animation-duration: 4s;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators for keyboard navigation */
.cta-button:focus,
.rating-btn:focus,
.nav-button:focus,
.form-group input:focus,
.form-group select:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .cta-button,
    .nav-button.primary,
    .rating-btn.selected {
        border: 3px solid #000;
    }
    
    .welcome-content,
    .form-content,
    .question-content,
    .results-content {
        border: 2px solid #000;
    }
}


/* Social Sharing Styles */
.social-sharing {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.social-sharing h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
}

.social-sharing p {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1rem;
}

.sharing-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
    width: 18px;
    height: 18px;
}

/* Platform-specific colors */
.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.share-btn.linkedin:hover {
    background: linear-gradient(135deg, #005885 0%, #004066 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.share-btn.twitter:hover {
    background: linear-gradient(135deg, #0d8bd9 0%, #0a7bc4 100%);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #166fe5 100%);
}

.share-btn.facebook:hover {
    background: linear-gradient(135deg, #166fe5 0%, #1464d6 100%);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
}

.share-btn.copy-link:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
}

/* Shimmer effect for share buttons */
.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.share-btn:hover::before {
    left: 100%;
}

/* Copy success message */
.copy-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    animation: fadeInUp 0.3s ease;
}

.copy-success.hidden {
    display: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive adjustments for sharing buttons */
@media (max-width: 768px) {
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .share-btn {
        width: 200px;
        justify-content: center;
    }
    
    .social-sharing {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .share-btn {
        width: 180px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Accessibility improvements for sharing buttons */
.share-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Animation for successful sharing */
.share-btn.shared {
    animation: shareSuccess 0.6s ease;
}

@keyframes shareSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); background-color: #28a745; }
    100% { transform: scale(1); }
}


/* Mobile-specific improvements for social sharing */
@media (max-width: 768px) {
    .social-sharing {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .sharing-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .share-btn {
        width: 250px;
        justify-content: center;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .share-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .social-sharing {
        padding: 15px 10px;
    }
    
    .share-btn {
        width: 220px;
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    
    .share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .social-sharing h3 {
        font-size: 1.2rem;
    }
    
    .social-sharing p {
        font-size: 0.9rem;
    }
}

/* Improve touch interactions for all interactive elements */
@media (hover: none) and (pointer: coarse) {
    /* This targets touch devices */
    .cta-button,
    .nav-button,
    .rating-btn,
    .share-btn {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.3);
        tap-highlight-color: rgba(102, 126, 234, 0.3);
    }
    
    .rating-btn:active {
        background: #667eea;
        color: white;
        transform: scale(0.95);
        border-color: #667eea;
    }
    
    .cta-button:active,
    .nav-button:active {
        transform: scale(0.98);
    }
    
    .share-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
}

/* Ensure proper spacing on very small screens */
@media (max-width: 360px) {
    .rating-buttons {
        gap: 1px; /* Minimal gap for very small screens */
        padding: 0 2px 5px 2px; /* Minimal padding */
        flex-wrap: nowrap; /* Ensure buttons stay on one line */
        overflow-x: auto; /* Allow horizontal scrolling if necessary */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
    
    .rating-btn {
        width: 26px; /* Smallest size that's still usable */
        height: 26px;
        font-size: 0.7rem;
        min-width: 26px;
        min-height: 26px;
        flex-shrink: 0; /* Prevent shrinking */
        margin: 0.5px; /* Tiny margin for easier tapping */
    }
    
    .scale-labels {
        font-size: 0.7rem;
        padding: 0 3px;
    }
    
    .question-card h3 {
        font-size: 1rem;
    }
    
    .question-card p {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 5px;
    }
    
    .welcome-content,
    .form-content,
    .results-content,
    .question-content {
        padding: 15px 8px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .question-content {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 30px;
    }
    
    .question-robot img {
        width: 100px;
        height: 100px;
    }
    
    .welcome-hero h2,
    .form-hero h2,
    .results-hero h2 {
        font-size: 1.5rem;
    }
    
    .hero-robot,
    .form-robot {
        width: 80px;
        height: 80px;
    }
}

/* Fix for iOS Safari viewport issues */
@supports (-webkit-touch-callout: none) {
    .container {
        min-height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
    }
}

/* Prevent zoom on input focus for iOS */
@media (max-width: 768px) {
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

