/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.header-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.header-link:hover {
    transform: scale(1.02);
    text-decoration: none;
    color: inherit;
}

.header-logo {
    height: 200px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.header-text {
    text-align: left;
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Main content */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.hero-description {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Features grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature p {
    color: #666;
    line-height: 1.6;
}

/* CTA section */
.cta {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin-bottom: 4rem;
}

.cta h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.cta p {
    color: #666;
    margin-bottom: 2rem;
}

.coming-soon {
    display: inline-block;
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #dee2e6;
}

.badge {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Info section */
.info-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.info-section p {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.tech-stack h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tech-stack ul {
    list-style: none;
    padding-left: 0;
}

.tech-stack li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.tech-stack li:last-child {
    border-bottom: none;
}

.tech-stack strong {
    color: #2c3e50;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    opacity: 0.8;
}

.footer-link {
    color: white;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Theme switcher */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-switcher button {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ddd;
    border-radius: 25px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.theme-switcher button:hover {
    background: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme-switcher button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.theme-switcher a {
    text-decoration: none;
    margin-left: 0.5rem;
}

.theme-switcher a:first-child {
    margin-left: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-link {
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-logo {
        height: 150px;
    }
    
    .header-text {
        text-align: center;
    }
    
    .logo {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature {
        padding: 1.5rem;
    }
    
    .cta, .info-section {
        padding: 2rem;
    }
    
    .theme-switcher {
        top: 10px;
        right: 10px;
    }
    
    .theme-switcher button {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Form styles */
.text-input-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c3e50;
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group textarea::placeholder {
    color: #adb5bd;
    font-style: italic;
}

.submit-btn {
    background: linear-gradient(135deg, #DC143C 0%, #B22222 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
}

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

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

/* Analysis result styles */
.analysis-result {
    margin-top: 2rem;
    padding: 0;
}

.analysis-success {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    animation: slideIn 0.5s ease-out;
}

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

.analysis-success h3 {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 1.5rem;
    margin: 0;
    font-size: 1.5rem;
}

.analysis-details {
    padding: 2rem;
}

.case-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.case-info p {
    margin: 0.5rem 0;
    color: #666;
}

.case-info strong {
    color: #2c3e50;
}

.prediction {
    margin-bottom: 2rem;
}

.prediction h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.probability-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.probability-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc3545 0%, #ffc107 50%, #28a745 100%);
    transition: width 1s ease-out;
    border-radius: 10px;
}

.probability-text {
    text-align: center;
    font-size: 1.1rem;
    color: #2c3e50;
}

.ai-insights,
.recommendations {
    margin-bottom: 1.5rem;
}

.ai-insights h4,
.recommendations h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.ai-insights p {
    color: #666;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.recommendations ul {
    list-style: none;
    padding: 0;
}

.recommendations li {
    background: #f8f9fa;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    color: #666;
    line-height: 1.6;
}

.recommendations li:last-child {
    margin-bottom: 0;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

.htmx-request.htmx-indicator {
    display: inline;
}

.htmx-request .btn-text {
    display: none;
}

/* Responsive form styles */
@media (max-width: 768px) {
    .text-input-form {
        margin: 0;
    }
    
    .form-group textarea {
        min-height: 150px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 1rem;
    }
    
    .analysis-details {
        padding: 1.5rem;
    }
    
    .case-info {
        padding: 1rem;
    }
}

/* Legal warnings styles */
.legal-warnings {
    background: #fce4ec;
    border: 1px solid #f8bbd9;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid #e91e63;
    text-align: left;
}

.legal-warnings h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    padding-left: 0;
}

.legal-warnings ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-warnings li {
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    font-size: 0.9rem;
}

.legal-warnings li:before {
    content: "⚠";
    color: #dc3545;
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1rem;
}

.legal-warnings li:last-child {
    margin-bottom: 0;
}

.legal-warnings strong {
    color: #333;
    font-weight: 600;
}

/* Checkbox styles */
.checkbox-group {
    margin: 1.5rem 0;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.75rem;
    line-height: 1.3;
    color: #333;
    font-weight: 400;
    margin: 0;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #666;
    border-radius: 3px;
    margin-right: 6px;
    flex-shrink: 0;
    position: relative;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    display: block;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2c3e50;
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.3);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-label:hover .checkmark {
    border-color: #2c3e50;
    box-shadow: 0 4px 8px rgba(44, 62, 80, 0.2);
}

.checkbox-label input[type="checkbox"]:focus + .checkmark {
    box-shadow: 0 0 0 4px rgba(44, 62, 80, 0.2);
}

.checkbox-label:hover {
    color: #2c3e50;
}

.checkbox-text {
    display: inline-block;
    vertical-align: middle;
    margin-left: 0;
    font-size: 0.75rem;
    white-space: normal;
}

/* Pricing Comparison Block */
.pricing-comparison {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
    text-align: center;
}

.pricing-comparison h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.pricing-subtitle {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.premium-plan {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    transform: scale(1.05);
}

.premium-plan:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.plan-header h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    color: #2c3e50;
    font-weight: 700;
}

.plan-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #667eea;
}

.free-plan .plan-price {
    color: #28a745;
}

.plan-features {
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.6rem;
    padding: 0.2rem 0;
}

.feature-item.disabled {
    opacity: 0.6;
}

.feature-icon {
    margin-right: 0.6rem;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.feature-item span:last-child {
    color: #666;
    line-height: 1.4;
    font-size: 0.95rem;
}

.feature-subitem {
    margin-left: 1.2rem;
    margin-bottom: 0.3rem;
    color: #666;
    font-size: 0.85rem;
    padding-left: 0.3rem;
}

.plan-button {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.free-button {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.free-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

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

.premium-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.pricing-note {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    max-width: 600px;
    margin: 0 auto;
}

.pricing-note p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Responsive pricing */
@media (max-width: 768px) {
    .pricing-comparison {
        padding: 1.5rem 1rem;
    }
    
    .pricing-comparison h3 {
        font-size: 1.4rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .premium-plan {
        transform: none;
    }
    
    .premium-plan:hover {
        transform: translateY(-5px);
    }
    
    .pricing-card {
        padding: 1.2rem;
    }
    
    .plan-header h4 {
        font-size: 1rem;
    }
    
    .plan-price {
        font-size: 1.4rem;
    }
    
    .feature-subitem {
        margin-left: 0.8rem;
    }
}

/* Premium Features Section */
.premium-features {
    padding: 4rem 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.premium-features .feature-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.premium-features .feature-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.premium-features .feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.premium-features .feature-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.premium-features .feature-item p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1rem;
}

/* Cost Comparison Block */
.cost-comparison-block {
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    padding: 0 2rem;
}

.cost-comparison-content {
    background: #f8f9fa;
    border: 1px solid #e3f2fd;
    border-radius: 12px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.cost-comparison-content:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.cost-comparison-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.cost-comparison-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #333;
    line-height: 1.5;
    font-size: 1rem;
}

.cost-comparison-text strong {
    color: #667eea;
    font-weight: 600;
}

/* Premium Analysis Section */
.premium-analysis-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.premium-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Features Column */
.features-column {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.features-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.features-column .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.features-column .feature-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.features-column .feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.features-column .feature-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.features-column .feature-content p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
    margin: 0;
}

/* Payment Column */
.payment-column {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.payment-card {
    width: 100%;
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.payment-icon {
    font-size: 1.5rem;
}

.payment-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-form .form-group {
    margin-bottom: 0;
}

.payment-form .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.95rem;
}

.payment-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.payment-form input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.payment-form input[type="email"]::placeholder {
    color: #adb5bd;
}

/* Cost Summary */
.cost-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.cost-item:last-child {
    border-bottom: none;
}

.cost-item.total {
    font-size: 1.1rem;
    padding-top: 1rem;
    border-top: 2px solid #667eea;
    margin-top: 0.5rem;
}

.cost-item.total span:last-child {
    color: #667eea;
    font-weight: 700;
}

/* Payment Button */
.payment-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
}

.payment-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.payment-button:active {
    transform: translateY(0);
}

.payment-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.lock-icon {
    font-size: 1rem;
}

.payment-result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* Payment Success Page Styles */
.payment-success {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.payment-success h3 {
    color: #28a745;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.payment-details {
    margin-bottom: 2rem;
}

.payment-details p {
    margin: 0.5rem 0;
    color: #666;
}

.next-steps {
    margin-top: 1.5rem;
}

.next-steps .submit-btn {
    margin: 1rem 0;
}

.next-steps p {
    margin-top: 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* Trust Section */
.trust-section {
    padding: 4rem 0;
    background: white;
}

.trust-section h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.trust-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid #e9ecef;
}

.trust-item:hover {
    transform: translateY(-4px);
}

.trust-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.trust-item h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.trust-item p {
    color: #6c757d;
    line-height: 1.6;
}

/* Social Proof */
.social-proof {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #667eea;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .proof-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Cost Comparison Block Responsive */
    .cost-comparison-block {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    
    .cost-comparison-content {
        padding: 0.8rem 1.5rem;
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        text-align: center;
    }
    
    .cost-comparison-text {
        font-size: 0.9rem;
    }

    /* Premium Analysis Section Responsive */
    .premium-analysis-section {
        padding: 2rem 0;
    }
    
    .premium-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .features-column,
    .payment-column {
        padding: 1.5rem;
    }
    
    .features-title,
    .payment-title {
        font-size: 1.5rem;
    }
    
    .features-column .feature-item {
        padding: 0.8rem;
        gap: 0.8rem;
    }
    
    .features-column .feature-icon {
        font-size: 1.5rem;
    }
    
    .features-column .feature-content h3 {
        font-size: 1rem;
    }
    
    .features-column .feature-content p {
        font-size: 0.9rem;
    }
    
    .payment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .payment-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Premium Analysis Styles */
/* Основной контейнер */
.premium-analysis-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    animation: fadeInUp 0.6s ease-out;
}

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

/* Основная карточка */
.analysis-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    animation: scaleIn 0.6s ease-out 0.1s both;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Заголовок */
.analysis-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f1f5;
}

.analysis-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Информация о деле */
.case-info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Секции */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Консенсусный прогноз */
.consensus-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.probability-block {
    margin-bottom: 1.5rem;
}

.probability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.probability-label {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

.probability-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Прогресс-бары */
.progress-bar {
    width: 100%;
    height: 12px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

/* Confidence Score */
.confidence-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
}

.confidence-label {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

.confidence-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
}

/* Секция моделей */
.models-section {
    margin-bottom: 2rem;
}

.models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

/* Карточка модели */
.model-card {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    animation: cardSlideIn 0.5s ease-out;
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.model-card:hover {
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.15);
    border-left-color: #764ba2;
    background: #ffffff;
}

.model-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.model-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.model-probability {
    font-size: 1.25rem;
    font-weight: 700;
    color: #667eea;
    white-space: nowrap;
    margin-left: 1rem;
}

.model-progress {
    margin-bottom: 1.25rem;
}

.model-insight {
    margin-bottom: 1.25rem;
}

.insight-text {
    font-size: 0.95rem;
    color: #2c3e50;
    line-height: 1.6;
    margin: 0;
}

/* Рекомендации */
.model-recommendations {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.recommendations-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 0.75rem 0;
}

.recommendations-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recommendations-list li {
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.recommendations-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* Примечание о безопасности */
.security-note {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.08) 0%, rgba(32, 201, 151, 0.08) 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
    animation: slideInUp 0.5s ease-out;
}

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

.security-note p {
    margin: 0;
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 500;
}

/* Payment Pending Styles */
.payment-pending {
    background: linear-gradient(135deg, #FF9800 0%, #FFC107 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.pending-details p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

/* Error Page Styles */
.error-page {
    background: linear-gradient(135deg, #f44336 0%, #e91e63 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.error-details ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    max-width: 400px;
    margin: 1rem auto;
}

.error-details li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    padding-left: 1.5rem;
}

.error-details li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
    font-weight: bold;
}

.error-details li:last-child {
    border-bottom: none;
}

/* Text area styles for premium form */
textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.3s ease;
}

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

.text-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

/* Premium Analysis Responsive */
@media (max-width: 768px) {
    .premium-analysis-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .analysis-card {
        padding: 1.5rem 1rem;
    }

    .analysis-title {
        font-size: 1.5rem;
    }

    .case-info-section {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .models-grid {
        grid-template-columns: 1fr;
    }

    .probability-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .model-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .model-probability {
        margin-left: 0;
    }

    .payment-pending,
    .error-page {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .premium-analysis-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .analysis-card {
        padding: 1rem;
    }

    .analysis-title {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.1rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    z-index: 10001;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid #f8f9fa;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.offer-content {
    color: #333;
    line-height: 1.8;
}

.offer-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.offer-content h3:first-of-type {
    margin-top: 0;
}

.offer-content p {
    margin-bottom: 1rem;
    color: #666;
}

.offer-content strong {
    color: #2c3e50;
    font-weight: 600;
}

.offer-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
    list-style-type: disc;
}

.offer-content li {
    margin-bottom: 0.5rem;
    color: #666;
    line-height: 1.6;
}

.offer-content ul ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    list-style-type: circle;
}

/* Link styles in checkbox */
.checkbox-text a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.checkbox-text a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .offer-content h3 {
        font-size: 1.1rem;
    }
}
