/* Upmate WCAG 2.1 Accessibility Audit Tool Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2d3748;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 40px;
    padding: 40px 0;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.tool-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.input-section {
    padding: 40px;
    background: linear-gradient(135deg, #f7fafc, #edf2f7);
    border-bottom: 1px solid #e2e8f0;
}

.url-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.url-input {
    flex: 1;
    min-width: 300px;
    padding: 15px 20px;
    font-size: 1.1em;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.scan-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.scan-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-section {
    display: none;
    padding: 40px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.summary-card {
    background: #f7fafc;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.summary-card.errors {
    border-left-color: #e53e3e;
}

.summary-card.warnings {
    border-left-color: #dd6b20;
}

.summary-card.passed {
    border-left-color: #38a169;
}

.summary-card.score {
    border-left-color: #667eea;
}

.card-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-label {
    color: #4a5568;
    font-weight: 600;
}

.errors .card-number { color: #e53e3e; }
.warnings .card-number { color: #dd6b20; }
.passed .card-number { color: #38a169; }
.score .card-number { color: #667eea; }

/* Score Message Styles */
.score-message {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-weight: 600;
    font-size: 1.05em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.score-message.show {
    opacity: 1;
    transform: translateY(0);
}

.score-message.warning {
    background: linear-gradient(135deg, #fef3c7, #fed7aa);
    border: 2px solid #f59e0b;
    color: #92400e;
}

.score-message.info {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    border: 2px solid #3b82f6;
    color: #1e40af;
}

.score-message.success {
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    border: 2px solid #10b981;
    color: #065f46;
}

.score-icon {
    font-size: 1.5em;
}

/* Remove detailed results completely */
.detailed-results {
    display: none;
}

/* Lead Generation CTA Section */
.lead-cta-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
}

.cta-header h3 {
    color: #0c4a6e;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-header p {
    color: #374151;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
    text-align: left;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.benefit-icon {
    font-size: 2em;
    margin-top: 5px;
}

.benefit-text strong {
    color: #1f2937;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.benefit-text p {
    color: #6b7280;
    font-size: 0.95em;
    margin: 0;
    line-height: 1.4;
}

.lead-form {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-top: 30px;
    text-align: left;
    border: 1px solid #e5e7eb;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 600;
    font-size: 0.95em;
}

.form-group input[type="email"],
.form-group input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #0ea5e9;
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-text {
    color: #4b5563;
    font-size: 0.9em;
}

.lead-submit-btn {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 15px;
}

.lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.3);
    background: linear-gradient(135deg, #0284c7, #0369a1);
}

.lead-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success/Error Messages */
.form-message {
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 600;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background: #c6f6d5;
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.form-message.error {
    background: #fed7d7;
    color: #742a2a;
    border: 1px solid #feb2b2;
}

/* Thank You Section Styles */
.thank-you-section {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border: 2px solid #22c55e;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    text-align: center;
    animation: slideIn 0.5s ease-out;
}

.thank-you-content h3 {
    color: #15803d;
    font-size: 2em;
    margin-bottom: 20px;
}

.thank-you-content p {
    color: #374151;
    font-size: 1.1em;
    margin-bottom: 25px;
}

.next-steps {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin: 25px 0;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.next-steps h4 {
    color: #15803d;
    margin-bottom: 15px;
    text-align: center;
}

.next-steps ul {
    list-style: none;
    padding: 0;
}

.next-steps li {
    padding: 8px 0;
    color: #374151;
    font-weight: 500;
}

.contact-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
}

.contact-info p {
    margin-bottom: 10px;
    color: #4b5563;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(135deg, #15803d, #166534);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(21, 128, 61, 0.3);
}

/* Dynamic Download Section */
.download-section-dynamic {
    animation: slideIn 0.5s ease-out;
}

/* Info Box Styles */
.info-box {
    background: #e6fffa;
    border: 1px solid #81e6d9;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-box h3 {
    color: #2c7a7b;
    margin-bottom: 10px;
}

.info-box ul {
    list-style-position: inside;
    color: #2d3748;
}

.info-box li {
    margin-bottom: 5px;
}

.compliance-levels {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.level-badge {
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9em;
}

.level-a {
    background: #c6f6d5;
    color: #22543d;
}

.level-aa {
    background: #bee3f8;
    color: #2a4365;
}

.level-aaa {
    background: #fed7d7;
    color: #742a2a;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d3748, #4a5568);
    color: white;
    padding: 60px 0;
    margin-top: 40px;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2em;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 200px;
}

.cta-button.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2em;
    }

    .url-input-group {
        flex-direction: column;
    }

    .url-input {
        min-width: unset;
    }

    .summary-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .cta-header h3 {
        font-size: 1.5em;
    }
    
    .lead-cta-section {
        padding: 25px 20px;
    }
    
    .lead-form {
        padding: 20px;
    }

    .thank-you-section {
        padding: 25px 20px;
    }
    
    .thank-you-content h3 {
        font-size: 1.6em;
    }
    
    .next-steps {
        padding: 20px;
    }

    .cta-section h2 {
        font-size: 2em;
    }

    .container {
        padding: 10px;
    }

    .input-section, .results-section {
        padding: 20px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .summary-cards {
        grid-template-columns: 1fr;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .header p {
        font-size: 1em;
    }

    .compliance-levels {
        justify-content: center;
    }
}

/* Print styles for reports */
@media print {
    body {
        background: white;
        color: black;
    }

    .tool-container {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .input-section, .cta-section {
        display: none;
    }

    .header {
        color: black;
        background: white;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .summary-card {
        border: 2px solid;
    }
    
    .benefit-item {
        border: 2px solid #000;
    }
}