.contact {
    display: flex;
    flex-direction: column;
    padding: 80px 5%; /* Using % padding for better laptop scaling */
    background: #22223B; /* Your dark background color */
    scroll-margin-top: 100px;
}

.contact-title {
    display: flex;
    align-items: center;
    background: #4A4E69; /* Card color from your palette */
    width: fit-content; /* Only as wide as the content */
    padding: 15px 40px 15px 15px;
    border-radius: 100px; /* pill shape */
    margin-bottom: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-title img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.contact-title h1 {
    font-size: 40px;
    margin-left: 20px;
    font-weight: 900;
    color: #F2E9E4; /* Cream text */
}

.contact-container {
    display: flex;
    gap: 40px; /* Better than margin for spacing */
    align-items: flex-start;
}

.contact-info {
    flex: 1; /* Automatically takes up half the space */
    display: flex;
    background: #4A4E69;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info div {
    flex: 1;
    padding: 30px;
}

.contact-info div:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h1 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #C9ADA7; /* Muted accent color */
    margin-bottom: 15px;
    margin-top: 20px;
}

.contact-info h1:first-child { margin-top: 0; }

.contact-info ul {
    list-style: none;
    display: flex;
    gap: 15px;
}

.contact-info ul img {
    width: 35px;
    transition: transform 0.3s ease;
    filter: invert(1); /* Makes black icons white to match the theme */
}

.contact-info p, .contact-info a {
    color: #F2E9E4;
    text-decoration: none;
    line-height: 1.6;
    font-size: 15px;
}

.contact-form {
    flex: 1;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .input-row {
    display: flex;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #4A4E69;
    color: #F2E9E4;
    font-size: 16px;
    outline: none;
}

.contact-form input::placeholder, 
.contact-form textarea::placeholder {
    color: #9A8C98;
}

.contact-form button {
    background: #C9ADA7;
    color: #22223B;
    border: 0;
    padding: 12px 40px;
    width: fit-content;
    align-self: flex-end;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #F2E9E4;
    transform: translateY(-2px);
}

/* 3. The Laptop/Mobile Fix */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column; /* Stacks the info and form on smaller screens */
    }
    .contact-info, .contact-form {
        width: 100%;
    }
}