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

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    overflow: hidden; /* Prevent scrolling */
    background-color: #f7f7f7;
    color: #333;
}

.wrapper {
    height: 100%;
    width: 100%;
    position: relative;
}

/* Landing section layout */
.landing {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.8s ease-in-out;
}

/* Left panel styling */
.panel-left {
    width: 35%;
    min-width: 340px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 30px;
    position: relative;
    z-index: 2;
}

.logo-wrap {
    display: flex;
    align-items: center;
}
.logo {
    height: 48px;
    margin-right: 10px;
}
.brand-name {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}
.model-title {
    margin: 40px 0 20px;
    line-height: 1;
}
.model-title .year {
    font-size: 2.8rem;
    font-weight: 700;
    color: #222;
}
.model-title .model {
    font-size: 3.2rem;
    font-weight: 700;
    color: #b81e20;
    text-transform: uppercase;
}
.description {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 30px;
}
.color-options {
    margin-bottom: 30px;
}
.color-swatch {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    margin-right: 8px;
    border: 1px solid #ccc;
    cursor: pointer;
}
.cta-btn {
    background-color: #b81e20;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}
.cta-btn:hover {
    background-color: #a31718;
}

/* Right panel styling */
.panel-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* desert-inspired gradient */
    background: linear-gradient(180deg, #f4e1c1 0%, #e6caa6 35%, #d8b98a 65%, #c9a771 100%);
    z-index: 0;
}
.hero-car {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 60%;
    max-width: 900px;
    z-index: 1;
    transform: translateX(0) scale(1);
    transition: transform 0.8s ease-in-out;
}

/* Slider for model names */
.model-slider {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    list-style: none;
    z-index: 2;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}
.model-slider li {
    margin: 0 12px;
    cursor: default;
    opacity: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.model-slider li.active {
    opacity: 1;
    font-weight: 700;
}
.model-slider li span {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Form overlay styling */
.form-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255,255,255,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out;
}

.form-container {
    background-color: #fff;
    border-radius: 6px;
    padding: 30px;
    width: 85%;
    max-width: 640px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow-y: auto;
    max-height: 90vh;
}
.form-container h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
    color: #b81e20;
}
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}
.form-group label {
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}
.form-group textarea {
    resize: vertical;
}
.form-group.checkbox {
    flex-direction: row;
    align-items: center;
}
.form-group.checkbox input {
    margin-right: 8px;
}
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.submit-btn {
    background-color: #b81e20;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease;
}
.submit-btn:hover {
    background-color: #a31718;
}
.back-btn {
    background-color: transparent;
    color: #b81e20;
    border: 2px solid #b81e20;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.back-btn:hover {
    background-color: #b81e20;
    color: #fff;
}

/* Show the form when body has class show-form */
body.show-form .form-section {
    opacity: 1;
    pointer-events: auto;
}
body.show-form .landing {
    transform: translateX(-100%);
}

/* Responsive design */
@media (max-width: 900px) {
    .panel-left {
        width: 40%;
        padding: 30px 20px;
    }
    .model-title .year {
        font-size: 2.4rem;
    }
    .model-title .model {
        font-size: 2.6rem;
    }
    .hero-car {
        width: 70%;
    }
}
@media (max-width: 700px) {
    .panel-left {
        width: 100%;
        height: 50%;
    }
    .panel-right {
        height: 50%;
    }
    .model-slider {
        bottom: 10px;
    }
}