:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --dark-color: #202124;
    --light-color: #ffffff;
    --gray-color: #5f6368;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark-color);
}

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

/* Header Styles */
.header {
    background: var(--light-color);
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
    max-width: 180px;
}

.cta-button {
    background: var(--primary-color);
    color: var(--light-color);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cta-button:hover {
    background: #1557b0;
    color: var(--light-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/auto-parts-about-e1734631516371.png');
    background-size: cover;
    background-position: center;
    padding: 150px 0 100px;
    color: var(--light-color);
    position: relative;
    margin-top: 80px;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

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

.hero-content {
    text-align: left;
}

.hero-content h1 {
    font-size: 3.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.cta-secondary {
    background: var(--secondary-color) !important;
}

.cta-secondary:hover {
    background: #2d8e47 !important;
}

.hero-form .form-basic {
    background: rgba(255, 255, 255, 0.98);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero-form .form-basic h2 {
    color: var(--primary-color);
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

.hero-form .form-description {
    color: var(--gray-color);
    text-align: center;
    margin-bottom: 25px;
    font-size: 0.95em;
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background: #f8f9fa;
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: #f8f9fa;
    transform: skewY(-2deg);
    z-index: 1;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.form-description {
    margin-bottom: 30px;
    text-align: center;
    color: var(--gray-color);
}

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

.form-title h2 {
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.required {
    color: #d32f2f;
    margin-left: 4px;
}

.form-group select,
.form-group input,
.make-search {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: white;
    color: var(--dark-color);
}

.form-group select option {
    color: var(--dark-color);
    background-color: white;
    padding: 10px;
}

.form-group select:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.form-group input::placeholder {
    color: #999;
    opacity: 1;
}

.form-group select:focus,
.form-group input:focus,
.make-search:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

.form-group select:focus-visible,
.form-group input:focus-visible,
.make-search:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.error-message {
    display: none;
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 8px;
}

.error-message.visible {
    display: block;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
}

.form-basic > .error-message.visible {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    animation: slideDown 0.3s ease;
    display: block;
}

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

.form-group.error input,
.form-group.error select {
    border-color: #d32f2f;
}

.form-group.error .error-message {
    display: block;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.submit-button.loading .button-loader {
    display: inline-block;
}

.submit-button.loading span {
    opacity: 0.7;
}

.privacy-link {
    background: none;
    border: none;
    color: var(--primary-color);
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
    font: inherit;
}

.privacy-link:hover,
.privacy-link:focus {
    color: #1557b0;
    text-decoration: none;
}

.privacy-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Make Selection Dropdown */
.make-search-container {
    position: relative;
    width: 100%;
}

.make-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 5px;
}

.make-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s ease;
    outline: none;
    color: var(--dark-color);
    background-color: white;
}

.make-option:hover,
.make-option:focus {
    background: #f5f5f5;
}

.make-option.no-results {
    color: var(--gray-color);
    cursor: default;
    font-style: italic;
}

.make-option.no-results:hover {
    background: none;
}

.make-dropdown:empty {
    display: none;
}

/* Trust Indicators */
.trust-indicators {
    padding: 60px 0;
    background: var(--light-color);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.trust-item img {
    height: 80px;
    margin-bottom: 20px;
}

.trust-item h3 {
    font-size: 1.2em;
    color: var(--dark-color);
}

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

.features h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    background: var(--light-color);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

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

.feature-card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--dark-color);
}

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

/* Parts Gallery */
.parts-gallery {
    background: #f8f9fa;
    padding: 80px 0;
}

.parts-gallery .feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Custom Parts Layout */
.parts-row {
    margin-top: 30px;
}

.parts-row:first-of-type {
    margin-top: 40px;
}

.parts-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.parts-icon-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.parts-icon-wrapper {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(26, 115, 232, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.parts-icon-card:hover .parts-icon-wrapper {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 12px 30px rgba(26, 115, 232, 0.4);
}

.parts-icon-wrapper i {
    font-size: 50px;
    color: white;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: 60px 0 40px;
}

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

.footer-contact a {
    color: var(--light-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-contact i {
    font-size: 1.2em;
}

.footer-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: var(--light-color);
}

.footer-address i {
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-hours h3,
.footer-contact h3,
.footer-links h3 {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links a {
    color: var(--light-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--secondary-color);
}

.footer-social {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
}

.social-links a {
    color: var(--light-color);
    font-size: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover,
.social-links a:focus {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.social-links a:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

.copyright {
    text-align: center;
    margin-top: 30px;
    color: var(--light-color);
    opacity: 0.8;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    position: relative;
    background: white;
    padding: 0;
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    transform: rotate(90deg);
}

.close-button:focus-visible {
    outline: 2px solid white;
    outline-offset: 2px;
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(90vh - 180px);
}

.modal-body h3 {
    color: var(--primary-color);
    margin: 20px 0 10px;
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body ul {
    padding-left: 20px;
    margin: 10px 0;
}

.modal-body li {
    margin: 5px 0;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body a:hover,
.modal-body a:focus {
    text-decoration: underline;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    text-align: right;
    background: #f8f9fa;
}

/* Loading Indicator */
.loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.loading.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scrollbar Styling */
.make-dropdown::-webkit-scrollbar {
    width: 8px;
}

.make-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.make-dropdown::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.make-dropdown::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .parts-row-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 0;
    }

    .header .container {
        gap: 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .logo img {
        height: 50px;
    }

    .header-nav {
        display: flex;
        justify-content: flex-end;
    }

    .cta-button {
        padding: 10px 15px;
        font-size: 13px;
        white-space: nowrap;
    }

    .hero {
        padding: 100px 0 60px;
        margin-top: 80px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-content h1 {
        font-size: 2.2em;
        padding: 0 15px;
    }
    
    .hero-content p {
        font-size: 1.1em;
        padding: 0 15px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
        display: flex;
        align-items: center;
    }

    .hero .cta-button {
        margin: 5px;
        min-width: 140px;
    }

    .hero-form .form-basic {
        padding: 25px 20px;
    }
    
    .form-section {
        padding: 40px 0;
    }

    .form-basic {
        padding: 20px 15px;
        margin: 0 10px;
    }

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

    .form-group select,
    .form-group input,
    .make-search {
        padding: 12px;
        font-size: 14px;
    }

    .submit-button {
        padding: 12px;
        font-size: 16px;
    }
    
    .feature-card {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 10px;
    }

    .features {
        padding: 40px 0;
    }

    .features h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .parts-row-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .parts-icon-card {
        min-height: 240px;
    }

    .parts-icon-wrapper {
        width: 100px;
        height: 100px;
    }

    .parts-icon-wrapper i {
        font-size: 40px;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-contact a {
        justify-content: center;
    }

    .footer-address {
        justify-content: center;
        text-align: center;
    }

    .footer-address span {
        text-align: center;
    }

    .modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }

    .modal-header {
        padding: 15px 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    .header .cta-button {
        padding: 8px 12px;
        font-size: 12px;
    }

    .header .cta-button span {
        display: inline;
    }

    .hero-content h1 {
        font-size: 1.8em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .hero .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-form .form-basic {
        padding: 20px 15px;
    }

    .form-title h2 {
        font-size: 1.8em;
    }

    .trust-item img {
        height: 50px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card img {
        width: 60px;
        height: 60px;
    }

    .feature-card h3 {
        font-size: 1.2em;
    }

    .parts-icon-card {
        min-height: 220px;
    }

    .parts-icon-wrapper {
        width: 90px;
        height: 90px;
    }

    .parts-icon-wrapper i {
        font-size: 35px;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        font-size: 20px;
    }
}