.contact {
    color: var(--color-dark);
    text-align: center;

    & h2 {
        display: inline-block;
        font-size: clamp(32px, 6vw, 400%);
        font-weight: bold;
        scroll-margin-top:5rem;
        text-align: center;
        background-color: var(--color-dark);
        color: var(--color-light);
        padding: 0.5em 1em;
        transform: skewX(-10deg);
    }
}

.contact-wrapper {
    padding: 4em 0;
    display: flex;
    justify-content: space-between;
    > div {
        flex-basis:48%;
    }
}

@media (width <= 800px) {
	.contact-wrapper {
        display:block;
        max-width:100%;
    }
}

.contact-form-wrapper {
    text-align: left;
    margin-bottom:2em;
    & form {
        padding-top:1em;
    }
    & h1 {
        font-size:150%;
        font-weight: bold;
        margin-bottom: 1em;
        color: var(--highlight);
    }

    & p {
        margin-bottom: 0.8em;
    }

    & input, textarea {
        font: inherit;
        width: 100%;
        padding: 0.5em;
        border: 1px solid black;
        border-radius: 5px;
    }

    & textarea {
         min-height: 120px;
         resize: vertical;
    }

    & label {
        display: block;
    }

    & button[disabled] {
        opacity: .5;
        cursor: not-allowed;
    }

    & a.text {
        font-size: inherit;
        display: inline;
        color: inherit;
        font-weight: bold;
        text-decoration: underline;
        &:hover {
            color: red;
        }
    }

    & .field {
        margin-bottom: 0.8em;
    }
}

.hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; } /* Honeypot */
.hint { font-size: .9rem; color: #5b6472; margin-bottom: 0.7em;}
.error { color: #a60018; font-size: 0.8rem; }
.success { color: #116329; font-size: 1.0rem; }
.policy { font-size: 0.8rem; }
.privacy {
    margin-bottom: 0.7em;
    display: flex;
    align-items: flex-start;
    gap: 0.7em;
    > input[type="checkbox"] {
        width: 3em;
        height: 3em;
        flex-shrink: 0;
    }
}

.form-button {
	font-size:120%;
    display: block;
	padding: 0.8em 1.6em;
	color: var(--color-light);
    border:none;
	border-radius: 5px;
	background-color: var(--highlight);
	transition: all 0.2s ease-in-out;
	&:hover {
		background-color: color-mix(in srgb, var(--highlight), white 20%);
	}
}

.contact-info {
	display: flex;
	flex-direction:column;
    align-items: flex-start;
	font-size: 100%;
	> a {
		color: var(--color-dark);
		font-weight: bold;
		display:flex;
		gap: 0.4em;
		align-items: center;
		border-bottom: 0px solid white;
		padding: 0.4em 0;
		transition: all 0.2s ease-in-out;
		> svg {
			transition: all 0.2s ease-in-out;
            flex-shrink:0;
			height: 1.2em;
			width: 1.2em;
			fill: var(--color-dark);
		}
	}
	> a:hover {
        color: var(--highlight);
		> svg {
			fill: var(--highlight);
		}
	}
}

.contact-logo {
    & img {
        width:50%;
    }
}