/* Base styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

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

/* Form styles */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.submit-btn, .btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.submit-btn:hover, .btn:hover {
    background-color: #45a049;
}

/* Car images */
.car-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.car-images img {
    max-width: 100%;
    height: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Valuation status */
.pending {
    color: #FFA500;
    font-weight: bold;
}

.offer {
    color: #4CAF50;
    font-size: 1.2em;
}

/* Admin tables */
.submissions-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.submissions-table th, .submissions-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.submissions-table th {
    background-color: #f2f2f2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container, .admin-container {
        padding: 10px;
    }
    
    .car-images img {
        width: 100%;
    }
    
    .submissions-table {
        display: block;
        overflow-x: auto;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
}

/* Tabs for admin */
.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 10px 20px;
    background: #f1f1f1;
    border: none;
    cursor: pointer;
}

.tab-btn.active {
    background: #4CAF50;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}
/* Offer Check Page Styles */
.offer-check-form {
    max-width: 500px;
    margin: 0 auto 30px;
}

.offer-details {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.detail-row {
    display: flex;
    margin-bottom: 10px;
}

.detail-row .label {
    font-weight: bold;
    width: 120px;
}

.detail-row .value {
    flex: 1;
}

.detail-row .value.pending {
    color: #ff9800;
}

.detail-row .value.processed {
    color: #4caf50;
}

.offer-price {
    background: #e8f5e9;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
}

.notes {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}
/* Image upload styles */
.car-images {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.car-images img {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    background: white;
}

.status .pending {
    color: #FFA500;
}

.status .processed {
    color: #4CAF50;
}

.offer {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin-top: 15px;
}
/* Header Styles */
.main-header {
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    position: relative;
    margin-right: 10px;
    font-size: 1.8rem;
}

.logo-icon .pulse {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.logo-text .highlight {
    color: var(--accent-color);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.3); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

/* Navigation */
.main-nav .nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav .nav-list li {
    margin-left: 1.5rem;
}

.main-nav .nav-list a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.main-nav .nav-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.main-nav .nav-list a i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.main-nav .nav-list a span {
    display: inline-block;
}

.login-btn, .logout-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.login-btn:hover, .logout-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 768px) {
    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--secondary-color);
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .main-nav .nav-list li {
        margin: 0;
    }
    
    .main-nav .nav-list a {
        padding: 1rem 2rem;
        justify-content: center;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-active .nav-list {
        display: flex;
    }
    
    .nav-active .mobile-menu-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-active .mobile-menu-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-active .mobile-menu-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}
/* Footer Styles */
.main-footer {
    color: white;
    padding: 3rem 0 0;
    position: relative;
}

.main-footer a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.main-footer a:hover {
    color: var(--accent-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-description {
    margin: 1rem 0;
    line-height: 1.6;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links ul,
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.contact-info li {
    margin-bottom: 0.8rem;
}

.footer-links i,
.contact-info i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
    color: var(--accent-color);
}

.newsletter {
    margin-top: 1.5rem;
}

.newsletter h4 {
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 4px 0 0 4px;
    background: rgba(255, 255, 255, 0.9);
}

.newsletter-form button {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #e05555;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.legal-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.legal-links span {
    opacity: 0.5;
}

#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 99;
}

#backToTop:hover {
    background: #e05555;
    transform: translateY(-3px);
}

#backToTop.visible {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-links ul,
    .contact-info {
        text-align: center;
    }
    
    .footer-links i,
    .contact-info i {
        margin-right: 0;
        display: block;
        margin-bottom: 0.5rem;
    }
}
/* Form Container */
.form-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 900px;
}

.form-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.form-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Form Grid Layout */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

.form-section h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.form-section.full-width {
    grid-column: 1 / -1;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.1);
    outline: none;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.half-width {
    flex: 1;
    min-width: 0;
}

/* Upload Area */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f9f9f9;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-area i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.upload-area p {
    margin: 0;
    color: #666;
}

.upload-area input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-area.highlight {
    border-color: var(--primary-color);
    background: rgba(74, 107, 255, 0.05);
}

.upload-note {
    font-size: 0.85rem;
    color: #777;
    margin-top: 0.5rem;
    text-align: center;
}

/* Image Preview */
.preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    width: 100%;
}

.preview-item {
    position: relative;
    width: calc(33.333% - 0.8rem);
    height: 100px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

.preview-item:hover .remove-btn {
    opacity: 1;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.gradient-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 107, 255, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 107, 255, 0.4);
}

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

.form-disclaimer {
    font-size: 0.85rem;
    color: #777;
    margin-top: 1rem;
}

.form-disclaimer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-disclaimer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .half-width {
        width: 100%;
    }
    
    .preview-item {
        width: calc(50% - 0.8rem);
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 1.6rem;
    }
    
    .preview-item {
        width: 100%;
    }
}