.contact-form-wrapper {
    text-align: center;
    background-color: white;
    padding: 1rem;
}

.contact-form-wrapper p {
    padding: 1rem;
}

#contact-form {
    gap: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 22px;
    border: solid 2px #f063ba;
    border-radius: 2rem;
}

.form-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    flex-direction: column;
}

.form-row>* {
    flex: 1;
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    background-color: #ffffff;
    color: #292929;
    border: solid #f063ba;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.4rem 0.8rem;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

#contact-form select option {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#contact-form-description {
    height: 120px;
    max-width: 100%;
    resize: none;
}

#contact-form-button {
    cursor: pointer;
    max-width: 300px;
}

#contact-form input:hover,
#contact-form textarea:hover,
#contact-form select:hover,
#contact-form-button:hover {
    background-color: #f063ba;
    color: white;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: #292929;
}

/* Address field wrapper */
.address-wrapper {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Google autocomplete component */
#contact-form gmp-place-autocomplete {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 3px solid #f063ba;
    border-radius: 16px;
    background: #ffffff;
    overflow: visible;
    color-scheme: light;
}

/* Remove the internal input's border */
#contact-form gmp-place-autocomplete::part(input) {
    border: none;
    outline: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0.4rem 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    color: #292929;
}

/* Focus */
#contact-form gmp-place-autocomplete:focus-within {
    border-color: #f063ba;
}

/* Keep hidden submission field out of layout */
#contact-form input[type="hidden"] {
    display: none;
}