.container {
    display: block;
    min-height: 100vh;
    padding: 1em;
}
form {
    display: flex;
    flex-direction: column;
    padding: 1em;
    width: min(100%, 420px);
}
.form-header h2{
    font-size: 1.5rem;
    font-weight: 400;
    max-width: 600px;
    line-height: 1.4;
    margin-bottom: 1em;
}
.form-header p{
    color: var(--secondary-text-clr);
    margin-bottom: 1em;
}
.contact-input {
    width: 100%;
    min-height: 44px;
    outline: none;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    margin-bottom: 10px;
}
.container textarea {
    height: 150px;
    padding-top: 15px;
    border-radius: 20px;
}
.contact-input:focus, textarea:focus {
    outline: solid;
    border-color: var(--accent-clr);
    box-shadow: 0 0 5px var(--accent-clr);
}
.contact-input::placeholder, textarea::placeholder {
    color: var(--secondary-text-clr);
    font-style: italic;
}
.submit-btn {
    font-family: Bitcount Single, monospace;
    display: flex;
    align-items: center;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-clr);
    background-color: var(--line-clr);
    box-shadow: 0 4px 8px var(--shadow-clr);
    gap: 10px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: fit-content;
    margin-top: 20px;
}
.submit-btn:hover {
    background-color: var(--accent-clr);
}
.submit-btn:active,
.submit-btn:focus-visible {
    background-color: var(--accent-clr);
}
.submit-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--text-clr);
}
form.hidden {
    display: none;
}
.thank-you {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1em;
    gap: 0.5em;
    animation: fadeUp 0.4s ease;
}
.thank-you.hidden {
    display: none;
}
.thank-you svg {
    fill: var(--accent-clr);
    margin-bottom: 0.5em;
}
.thank-you h2 {
    font-size: 1.5rem;
    font-weight: 400;
}
.thank-you p {
    color: var(--secondary-text-clr);
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Prevents the contact form from overflowing the narrow mobile content column and keeps controls tap-friendly. */
@media (max-width: 750px) {
    .container {
        width: 100%;
        padding: 0;
    }

    form {
        padding: 0;
    }
}
