/* VINman MVP Styles - Professional & Clean */

* {
    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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

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

.header h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

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

/* Input Section */
.input-section {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.vin-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

small {
    color: #888;
    font-size: 0.85rem;
    display: block;
    margin-top: 5px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 100%;
    margin-top: 20px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary {
    background: #f8f9fa;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Error Messages */
.error-message {
    background: #ffe6e6;
    color: #cc0000;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #cc0000;
    font-weight: 500;
}

/* Results Section */
.results-section {
    margin-top: 40px;
}

.result-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.result-card h2 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
    font-size: 1.4rem;
}

/* Vehicle Info */
.vehicle-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.info-value {
    font-size: 1.1rem;
    color: #333;
    margin-top: 2px;
}

/* Price Card */
.price-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.price-card h2 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.price-range {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 20px;
}

/* Ownership Costs Table */
.cost-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.cost-table th,
.cost-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.cost-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.cost-table tr:hover {
    background: #f8f9fa;
}

/* Safety Data */
.recall-item {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.recall-item h4 {
    color: #856404;
    margin-bottom: 5px;
}

/* Complaint Details */
.complaint-details {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.complaint-details h5 {
    color: #495057;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.complaint-detail {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

.complaint-detail:last-child {
    margin-bottom: 0;
}

.complaint-detail p {
    margin: 3px 0;
    font-size: 14px;
}

/* Complaints Summary Improvements */
.complaints-main-summary {
    margin-bottom: 15px !important;
    font-size: 16px;
}

.complaints-breakdown {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.complaints-breakdown h5 {
    margin-bottom: 10px;
    color: #007bff;
}

.breakdown-content {
    margin-left: 10px;
}

.breakdown-summary {
    font-weight: 500;
    margin-bottom: 8px;
}

.breakdown-note {
    font-size: 14px;
    color: #6c757d;
    margin: 0;
}

.complaints-divider {
    height: 1px;
    background: #dee2e6;
    margin: 20px 0;
}

/* Spacing between recalls and complaints sections */
.recalls-section {
    margin-bottom: 30px;
}

.complaints-summary {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #f1f3f4;
}

.safety-good {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.safety-good h4 {
    color: #155724;
    margin-bottom: 5px;
}

/* Valuation Links */
.valuation-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.valuation-link {
    display: block;
    padding: 15px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #667eea;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.valuation-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

/* Payment Section */
.payment-section {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    margin-top: 30px;
}

.payment-note {
    color: #666;
    margin-top: 10px;
    font-size: 0.95rem;
}

/* Footer */
.footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 60px;
    padding: 30px 20px;
}

.footer p {
    margin-bottom: 10px;
}

/* Loading States */
.btn-loading {
    display: none;
}

.loading .btn-text {
    display: none;
}

.loading .btn-loading {
    display: inline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2.5rem;
    }
    
    .input-section {
        padding: 25px;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .valuation-links {
        grid-template-columns: 1fr;
    }
}
/* Print Styles for PDF Generation */
@media print {
    body {
        font-size: 11pt;
        line-height: 1.4;
        color: #000;
        background: white;
    }
    
    .container {
        max-width: none;
        margin: 0;
        padding: 0.5in;
    }
    
    .header {
        border-bottom: 2px solid #333;
        margin-bottom: 20pt;
        padding-bottom: 10pt;
    }
    
    .header h1 {
        font-size: 18pt;
        color: #000;
    }
    
    .section {
        margin-bottom: 15pt;
        page-break-inside: avoid;
    }
    
    .section h3 {
        font-size: 14pt;
        font-weight: bold;
        color: #000;
        margin-bottom: 8pt;
        border-bottom: 1px solid #ccc;
        padding-bottom: 4pt;
    }
    
    .info-grid {
        display: block;
    }
    
    .info-item {
        display: block;
        margin-bottom: 6pt;
        font-size: 10pt;
    }
    
    .info-item .label {
        font-weight: bold;
        display: inline;
    }
    
    .info-item .value {
        display: inline;
        margin-left: 8pt;
    }
    
    .market-analysis {
        font-size: 10pt;
        line-height: 1.3;
    }
    
    .market-analysis .highlights {
        margin: 8pt 0;
    }
    
    .market-analysis h4 {
        font-size: 11pt;
        font-weight: bold;
        margin: 8pt 0 4pt 0;
    }
    
    .ownership-costs table {
        width: 100%;
        border-collapse: collapse;
        font-size: 10pt;
    }
    
    .ownership-costs th,
    .ownership-costs td {
        border: 1px solid #333;
        padding: 4pt;
        text-align: left;
    }
    
    .ownership-costs th {
        background: #f0f0f0;
        font-weight: bold;
    }
    
    .safety-data {
        font-size: 10pt;
    }
    
    .recall-item,
    .complaint-item {
        margin-bottom: 8pt;
        padding: 4pt;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
    
    .toggle-button,
    .form-container,
    button,
    input,
    .btn,
    .payment-info {
        display: none !important;
    }
    
    .results-container {
        margin: 0;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    
    /* Force black text for all elements */
    * {
        color: #000 !important;
        background: transparent !important;
    }
    
    /* Page breaks */
    .section {
        page-break-inside: avoid;
    }
    
    .ownership-costs {
        page-break-inside: avoid;
    }
}

/* Customer-Focused Landing Page Sections */

.trust-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    margin: 20px 0;
    border-radius: 15px;
    text-align: center;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.trust-badge {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.trust-badge strong {
    display: block;
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.trust-badge span {
    color: #6c757d;
    font-size: 0.9rem;
}

.whats-included {
    background: white;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.whats-included h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
}

.how-it-works {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 15px;
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    font-weight: bold;
}

.step h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.vin-helper {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
}

.vin-helper h3 {
    color: #856404;
    margin-bottom: 15px;
    text-align: center;
}

.vin-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.vin-location {
    background: rgba(255,255,255,0.7);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #856404;
}

.vin-location strong {
    color: #533f03;
}

.example-vin {
    text-align: center;
    padding: 15px;
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    color: #856404;
}

.example-vin code {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.example-vin code:hover {
    background: #0056b3;
}

/* Mobile Responsiveness for New Sections */
@media (max-width: 768px) {
    .trust-badges {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .steps {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .vin-locations {
        grid-template-columns: 1fr;
    }
    
    .whats-included,
    .how-it-works {
        padding: 30px 15px;
        margin: 20px 0;
    }
    
    .trust-section {
        padding: 25px 15px;
    }
}

/* Additional Value Communication Sections */

.data-sources {
    background: #f8f9fa;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 15px;
    text-align: center;
}

.data-sources h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.source {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.source h3 {
    color: #007bff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.source p {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.competitive-edge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 40px 20px;
    margin: 30px 0;
    border-radius: 15px;
    text-align: center;
}

.competitive-edge h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.comparison {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.advantage {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.advantage h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.advantage p {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.5;
}

.social-proof {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 40px 20px;
    margin: 30px 0;
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
    border-radius: 15px;
    text-align: center;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

/* Mobile Responsiveness for Additional Sections */
@media (max-width: 768px) {
    .sources-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .social-proof {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .data-sources,
    .competitive-edge {
        padding: 30px 15px;
        margin: 20px 0;
    }
}

@media (max-width: 480px) {
    .social-proof {
        gap: 20px;
        padding: 30px 15px;
    }
}

/* About Section */
.about-section {
    background: #f8f9fa;
    padding: 50px 20px;
    margin: 30px 0 0 0;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-info h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-info p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 15px;
}

.contact-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: fit-content;
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 20px;
    text-align: center;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.contact-item strong {
    color: #495057;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-item a {
    color: #007bff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.contact-item span {
    color: #28a745;
    font-size: 1rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px 20px;
    text-align: center;
    margin-top: 0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.footer-links a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #5dade2;
}

.footer-links span {
    color: #bdc3c7;
}

/* Mobile Responsiveness for About & Footer */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info {
        padding: 25px 20px;
    }
    
    .about-section {
        padding: 40px 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .footer-links span:not(:first-child):not(:last-child) {
        display: none;
    }
}

@media (max-width: 480px) {
    .about-info h2 {
        font-size: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .about-section {
        padding: 30px 15px;
    }
}
