/* =========================
   GLOBAL RESET
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* =========================
   BODY
========================= */
body {
    background: radial-gradient(circle at top, #0d1117, #05070a);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: #e6edf3;
    height: 100vh;
}

.main-layout {
    display: flex;              /* horizontal layout */
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100vh;
    padding: 20px;
}

.left-panel {
    width: 45%;                  /* form occupies 45% of screen */
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-panel {
    width: 50%;                  /* big car on right */
    display: flex;
    justify-content: center;
    align-items: center;
}

.car {
    width: 300px;
    height: auto;
}


/* =========================
   MAIN CONTAINER
========================= */
.container {
    max-width: 520px;
    margin: 80px auto;
    padding: 40px 35px;
    background: rgba(22, 27, 34, 0.75);
    border-radius: 18px;
    box-shadow: 
        0 25px 80px rgba(0,0,0,0.8),
        inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.05);
    animation: fadeIn 0.6s ease;
}

/* =========================
   HEADER
========================= */
h1 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 6px;
    color: #58a6ff;
    letter-spacing: 0.5px;
}

p {
    text-align: center;
    color: #8b949e;
    margin-bottom: 30px;
    font-size: 14px;
}

/* =========================
   FORM GROUP
========================= */
.form-group {
    margin-bottom: 20px;
}

/* Labels */
label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: #c9d1d9;
}

/* =========================
   INPUTS
========================= */
input, select {
    width: 100%;
    padding: 16px 16px;        /* increased from 12px */
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 12px;       /* slightly more rounded */
    color: #e6edf3;
    font-size: 15px;           /* bigger text */
    transition: all 0.25s ease;
    appearance: none;          /* cleaner dropdown look */
}

/* Focus */
input:focus, select:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 12px rgba(88, 166, 255, 0.35);
    transform: scale(1.01);
}

/* =========================
   BUTTON
========================= */
button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #0066b2, #008cff);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

/* Hover */
button:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 35px rgba(0, 140, 255, 0.45);
}

/* Click */
button:active {
    transform: scale(0.97);
}

/* =========================
   RESULT
========================= */
#result {
    margin-top: 30px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #58a6ff;
    animation: fadeIn 0.5s ease;
}

.big-car {
    width: 95%;        /* takes almost all of right panel */
    max-width: 900px;  /* don’t get too huge on large screens */
    height: auto;
    object-fit: contain;
    border-radius: 20px; /* optional, looks smooth */
}


/* =========================
   ANIMATION
========================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .main-layout {
        flex-direction: column;
    }

    .left-panel, .right-panel {
        width: 100%;
        margin-bottom: 30px;
    }

    .big-car {
        width: 100%;
        max-width: none;
    }
}

/* Phones / very small screens */
/* Small screens (phones) */
@media (max-width: 480px) {
    .container {
        padding: 20px 15px;
    }

    h1 {
        font-size: 20px;
    }

    p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    input, select, button {
        font-size: 14px;
        padding: 12px;
    }

    /* 🔥 Hide car on phone */
    .right-panel {
        display: none;
    }
}