/* Veridanz Empire - Car Inspection Report Website */
/* Color Scheme */
:root {
    --primary: #dc2626;
    --primary-dark: #b91c1c;
    --secondary: #1a1a1a;
    --secondary-light: #2d2d2d;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --background: #f1f5f9;
    --white: #ffffff;
    --accent: #fbbf24;
    --accent-dark: #d97706;
    --danger: #ef4444;
    --success: #22c55e;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arimo', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-dark);
    line-height: 1.6;
}

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

/* Header & Navigation */
header {
    background: var(--secondary);
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary);
}

.logo-img {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
}

.footer-logo {
    height: 80px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.logo-text span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-btn {
    background: var(--primary);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    padding: 150px 0 100px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(16,185,129,0.1)"/></svg>');
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h2 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary);
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.hero-image {
    position: relative;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--background);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-light);
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--secondary);
    color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 60px;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--primary);
}

.step {
    text-align: center;
    position: relative;
    flex: 1;
}

.step-number {
    width: 100px;
    height: 100px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
}

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

.step p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    padding: 0 20px;
}

/* Form Section */
.inspection-form-section {
    padding: 100px 0;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

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

.form-header h2 {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--text-light);
}

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

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--secondary);
}

input, select, textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

input[type="date"] {
    color: #1e293b !important;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: invert(20%) sepia(10%) saturate(500%) hue-rotate(180deg);
    width: 20px;
    height: 20px;
}

input[type="date"]::-webkit-datetime-edit {
    color: #1e293b !important;
}

input[type="text"],
input[type="email"],
input[type="number"],
select,
textarea {
    color: #1e293b !important;
}

::placeholder {
    color: #64748b !important;
    opacity: 1;
}

::-ms-input-placeholder {
    color: #64748b !important;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b !important;
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

/* Photo Upload */
.photo-upload-section {
    margin: 40px 0;
}

.photo-upload-section h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.upload-box {
    aspect-ratio: 1;
    border: 3px dashed var(--border);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    background: var(--background);
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(16, 185, 129, 0.05);
}

.upload-box.has-image {
    border-style: solid;
    border-color: var(--primary);
}

.upload-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.upload-box .upload-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.upload-box span {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 0 10px;
}

.upload-box input {
    display: none;
}

.upload-box .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 10;
}

.upload-box.has-image .remove-btn {
    display: flex;
}

/* Inspection Categories */
.inspection-categories {
    margin: 40px 0;
}

.inspection-categories h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: var(--background);
    border-radius: 12px;
    transition: all 0.3s;
}

.category-item:hover {
    background: rgba(16, 185, 129, 0.1);
}

.category-item label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.category-item input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    background-color: #ffffff !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.category-item input[type="checkbox"]:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary);
}

.category-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.rating-select {
    margin-left: auto;
    padding: 8px 15px;
    border-radius: 8px;
    width: auto;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 40px;
}

.btn-submit {
    padding: 18px 60px;
    font-size: 1.1rem;
}

/* Report Preview */
.report-preview {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    margin-top: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.report-logo h2 {
    color: var(--secondary);
}

.report-logo h2 span {
    color: var(--primary);
}

.report-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Alerts & Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid var(--danger);
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s linear infinite;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image {
        order: -1;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

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

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }

    .steps-container::before {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .form-container {
        padding: 30px 20px;
    }
}

/* Print Styles */
@media print {
    header, footer, .btn, .form-submit {
        display: none;
    }

    .report-preview {
        box-shadow: none;
        padding: 0;
    }
}
