section:nth-child(odd) {
    background-color: var(--bg) !important;
}

section:nth-child(even) {
    background-color: var(--bg-dark) !important;
}

section:nth-child(odd) .card {
    background-color: var(--bg-light) !important;
}

section:nth-child(even) .card {
    background-color: var(--bg) !important;
}

#contact-container {
    display: flex;
    flex-direction: row;
    gap: 3.5rem;
    justify-content: space-between;
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    transform: translateY(-100px);
}

#inquire {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

#inquireForm {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--bg-light);
}

.form-group {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: space-between;
    width: 100%;
    flex: 1;
}

#main-message {
    height: 100%;
}

#main-message .input-group {
    justify-content: flex-start;
}

#inquireForm input,
#inquireForm textarea {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--primary-light);
    background-color: var(--bg-light);
    color: var(--text);
    width: 100%;
    margin-left: 1px;
    box-shadow: 0 2px 3px -1px grey;
}

#inquireForm button {
    padding: 0.75rem;
    border-radius: 8px;
    border: none;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 25%;
}

#inquireForm label {
    font-weight: bold;
}

#right-hand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 30%;
}

#contact-card {
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contact-card h2 {
    margin-bottom: 0;
}

.info {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #d6f0d0;
    border-radius: 500%;
    padding: 0.75rem;
    width: auto;
    height: auto;
}

.info-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.info-header {
    color: var(--text-muted);
}

.info-text {
    color: var(--text);
    font-weight: bold;
}

#email {
    overflow-x: hidden;
    word-break: break-word;
    min-width: 0;
}

#message-card {
    border-radius: 8px;
    padding: 1.5rem;
    background-color: var(--primary);
    color: var(--text-opposite);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

#message-card h2 {
    margin-bottom: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

#message-card p {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted-opposite);
}

.notification {
    display: flex;
    background-color: var(--bg-light);
    border: 1px solid var(--primary-light);
    border-radius: 8px;
    padding: 1rem;
    height: 100%;
}

.notification.error {
    border-color: var(--danger);
}

.notification.success {
    border-color: var(--primary);
}

@media (max-width: 1024px) {
    #contact-container {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 40px;
    }

    #contact-container {
        flex-direction: column;
        gap: 1.5rem;
        transform: translateY(-115px);
    }

    /* Break sidebar into a flat column flow */
    #right-hand {
        width: 100%;
        display: contents;
    }

    /* sits on top */
    #contact-card {
        order: 1;
    }

    /* sits in the middle */
    #inquire {
        order: 2;
    }

    /* sits at the bottom */
    #message-card {
        order: 3;
    }

    .form-group {
        flex-direction: column;
    }

    .form-group#name-group {
        flex-direction: row;
    }

    #inquireForm button {
        width: 100%;
    }
}