.contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;

    img {
        width: 100%;
        height: 40vh;
        object-fit: cover;
        object-position: 0% 50%;
    }
}

.contact-wrapper {
    width: 80%;
    max-width: 900px;
    margin: 60px auto 80px auto;
    display: flex;
    flex-direction: column;
    gap: 40px;

    h2 {
        font-family: Cinzel;
        font-size: 42px;
        font-weight: 100;
        color: gray;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-form.active {
    display: flex;
}


.contact-form-row {
    display: flex;
    gap: 20px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;

    label {
        font-family: Inter;
        font-size: 14px;
        font-weight: 400;
        color: dimgray;
    }

    input,
    textarea {
        font-family: Inter;
        font-size: 16px;
        font-weight: 300;
        padding: 12px 16px;
        border: 1px solid rgba(73, 80, 87, 0.3);
        border-radius: 8px;
        outline: none;
        background-color: white;
        color: rgb(73, 80, 87);
        transition: border-color 0.2s;
        resize: vertical;
    }

    input:focus,
    textarea:focus {
        border-color: rgb(73, 80, 87);
    }
}

.contact-submit {
    align-self: flex-start;
    font-family: Cinzel;
    font-size: 16px;
    font-weight: 400;
    padding: 14px 36px;
    background-color: rgb(73, 80, 87);
    color: whitesmoke;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.contact-submit:hover {
    background-color: rgb(55, 60, 66);
}

.contact-cards {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.contact-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border: 2px solid rgba(73, 80, 87, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}

.contact-card.active {
    border-color: rgb(73, 80, 87);
    background-color: whitesmoke;
}

.contact-card:hover:not(.active) {
    border-color: rgba(73, 80, 87, 0.5);
}

.contact-card--error {
    border-color: rgb(180, 60, 60);
    background-color: rgba(180, 60, 60, 0.04);
}

.contact-card-name {
    font-family: Inter;
    font-weight: 400;
    color: rgb(73, 80, 87);
    font-size: 18px;
}

.contact-card-role {
    font-family: Inter;
    font-weight: 300;
    color: dimgray;
    font-size: 14px;
}

.contact-card a {
    font-family: Inter;
    font-weight: 300;
    color: dimgray;
    text-decoration: none;
    font-size: 14px;
}

.contact-card.active a {
    color: rgb(73, 80, 87);
}

.contact-privacy {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    input[type="checkbox"] {
        margin-top: 3px;
        width: 16px;
        height: 16px;
        accent-color: rgb(73, 80, 87);
        cursor: pointer;
        flex-shrink: 0;
    }

    label {
        font-family: Inter;
        font-size: 14px;
        font-weight: 300;
        color: dimgray;
        cursor: pointer;
        line-height: 1.6;
    }

    a {
        color: rgb(73, 80, 87);
        text-decoration: underline;
    }
}

.contact-cards-hint {
    font-family: Inter;
    font-size: 13px;
    font-weight: 300;
    color: transparent;
    margin-top: -20px;
    transition: color 0.2s;
}

.contact-cards-hint.visible {
    color: rgb(180, 60, 60);
}

@media (max-width: 800px) {
    .contact-cards {
        flex-direction: column;
    }

    .contact-card {
        width: 100%;
    }

    .contact-wrapper {
        width: 90%;
    }
}

@media (max-width: 730px) {
    .contact-form-row {
        flex-direction: column;
    }
}

.contact-success,
.contact-error {
    display: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-family: Inter;
    font-weight: 300;
    font-size: 15px;
    line-height: 1.6;
}

.contact-success.visible {
    display: block;
    background-color: whitesmoke;
    border-left: 3px solid rgb(73, 80, 87);
    color: rgb(73, 80, 87);
}

.contact-error.visible {
    display: block;
    background-color: rgba(180, 60, 60, 0.05);
    border-left: 3px solid rgb(180, 60, 60);
    color: rgb(180, 60, 60);
}