body {
    background-color: var(--white);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-form {
    width: 90%;
    max-width: 1000px;
    height: 600px;
    background: var(--white);
    display: flex;
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid var(--light-gray);
    user-select: none;
}

.contact-container {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.image-side {
    flex: 1;
    background: url('../img/contact-side.jpg') center/cover no-repeat;
    background-color: var(--primary-blue);
}

.step { 
    display: none; 
}

.step.active { 
    display: block; 
}

h2 { 
    color: var(--primary-blue); 
    margin-bottom: 20px; 
    font-weight: 800; 
}

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

label { 
    display: block; 
    font-size: 0.8rem; 
    font-weight: 600; 
    margin-bottom: 5px; 
    color: var(--text); 
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
    resize: none; 
}

input:focus, textarea:focus { 
    border-color: var(--primary-blue); 
}

textarea:focus:invalid {
    border-color: #e74c3c;
}

.next-btn:disabled {
    cursor: default;
}

.row-btn { 
    margin-top: 20px; 
    display: flex; 
    gap: 10px; 
}

.next-btn, .submit-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    flex: 1;
}

.next-btn:hover, .submit-btn:hover {
    background: var(--dark-blue);
}

.back-btn {
    background: var(--light-gray);
    color: var(--text);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
}

.back-to-home {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text);
}

.back-to-home a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
    -webkit-user-drag: none;
}

.back-to-home a:hover {
    border-bottom-color: var(--primary-blue);
}

@media (max-width: 768px) {
    body { 
        height: auto; 
        min-height: 100vh; 
        overflow-y: auto; 
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;   
        padding: 20px 0;
    }

    .contact-form { 
        flex-direction: column; 
        height: auto; 
        width: 95%;
        max-width: 500px; 
        margin: 0 auto;
    }

    .contact-container {
        padding: 30px 20px; 
        order: 1;
    }

    .image-side { 
        display: block; 
        order: 2; 
        height: 250px; 
        width: 100%;
        background-size: cover;
    }

    .back-to-home {
        margin-top: 20px;
        margin-bottom: 10px;
    }
}