.field {
    position: relative;
    margin: 0px;
}

/* Inputs, Radio Container, Textareas, Button, Alerts, Other Contacts */
.field input,
.subject,
.field textarea,
.contact-form-cta,
.alert,
.other-contact-item {
    display: block;
    width: 100%;
    height: 48px;
    padding: calc(var(--grid-margin) - 0px) var(--grid-margin) calc(var(--grid-margin) - 2px);
    background-color: transparent;
    font-size: max(var(--fs-m), 16px);
    line-height: var(--lh);
    text-align: left;
    color: var(--black);
    border: none;
    border-bottom: var(--border);
    border-radius: 0px;
    outline: none;
}

/* Radio container */
.subject {
    height: unset;
    padding: 16px var(--grid-margin);
}

.subject .label {
    margin-bottom: 12px;
}

/* Textarea */
.field textarea {
    min-height: calc(var(--lh)*10 + 32px);
    height: calc(var(--lh)*10 + 32px);
    max-height: calc(var(--lh)*10 + 32px);
    padding-top: 16px;
    resize: none;
}

/* Button, Other Contacts */
.contact-form-cta,
.other-contact-item {
    padding-top: 0px;
    padding-bottom: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-form-cta:hover {
    cursor: pointer;
    background-color: var(--black);
    color: var(--white);
}

.other-contact-item p {
    width: 100%;
}

/* General alert */
.alert {
    height: unset;
    min-height: 48px;
}

.alert.error {
    color: var(--red);
}

/* Inputs, Textareas Labels */
.field label {
    position: absolute;
    top: calc(var(--grid-margin) - 2px);
    left: var(--grid-margin);
    background-color: var(--bg-color, transparent);
    color: var(--black);
    font-size: max(var(--fs-m), 16px);
    pointer-events: none;
    transition: top 0.2s ease, font-size 0.2s ease;
}

/* Move label up when input has value or is focused */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
    top: 3px;
    font-size: var(--fs-xxs);
}

/* Required fields */
abbr[title] {
    text-decoration: none;
}

/* Input field error messages */
.field .input-alert.error {
    position: absolute;
    display: block;
    bottom: 2px;
    left: var(--grid-margin);
    font-size: var(--fs-xxs);
    color: var(--red);
}

/* Honeypot */
.field.honeypot {
    position: absolute;
    left: -9999px;
}

/* Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: column;
    row-gap: 10px;
}

.custom-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

/* Hide native radio input */
.custom-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
}

/* Outer circle */
.custom-radio .circle {
    width: 16px;
    height: 16px;
    border: var(--border);
    border-radius: 50%;
    position: relative;
}

/* Inner circle */
.custom-radio .circle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: var(--black);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}

/* Checked state */
.custom-radio input[type="radio"]:checked + .circle::after {
    transform: translate(-50%, -50%) scale(1);
}
