.contact_form_text_block {
    max-width: 600px;
    margin: 0 auto;
}

.contact_text__text {
    margin-bottom: 2rem;
}

.contact_text__text p {
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;

    font-size: 1.125em;
    line-height: 1.66667em;
    margin: 0 0 2rem;
    text-align: center;
}

.contact_text__text a {
    color: #333;
    text-decoration: underline;
    font-weight: bold;
}

.contact_text__text a:hover {
    /*thicker underline*/
    color: var(--c11);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.contact__fields {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.field {
    position: relative;
    flex: 1;
    margin-bottom: 20px;
}

.field__input,
.text-area {
    width: 100%;
    border: 0.1rem solid var(--c11);
    border-radius: 0%;
    font-size: var(--text-small-p);
    box-sizing: border-box;
    outline: none;
    background-color: transparent;
    color: var(--c11);
    transition: border-color 0.3s ease, background-color 0.3s ease;

    padding: 12px 10px;
    /* Adjust the padding inside the input fields */
    text-align: left;
    /* Ensure the text aligns to the left */
    line-height: 1.5;
    /* Improve readability with line height */
    font-weight: var(--font-semi-bold);
    /* Make the text bold */
    font-family: var(--body-font);
    /* Use a sans-serif font */
}

.field__input:focus,
.text-area:focus {
    outline: 2px solid #333;
}

.field__input::placeholder,
.text-area::placeholder {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.field__input:not(:placeholder-shown)~label,
.text-area:not(:placeholder-shown)~label {
    transform: translateY(-1rem) scale(0.85);
    font-size: var(--text-details);
    color: #333;
}

.field__input:focus~label,
.text-area:focus~label {
    transform: translateY(-1rem) scale(0.85);
    font-size: var(--text-details);
    color: #333;
}

.field label,
.form__label.field__label {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--c0);
    padding: 0 5px;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: var(--text-small-p);
    color: #666;
    font-weight: var(--font-bold);
    transform-origin: top left;
}

textarea.text-area {
    resize: none;
    height: 150px;
}


.text-area:focus,
.text-area:not(:placeholder-shown) {
    background-color: var(--c0);
}

#charCount {
    display: block;
    text-align: right;
    font-size: 0.875em; /* Slightly smaller than the input text */
    color: #666; /* Neutral color that matches the form design */
    margin-top: 5px; /* Adds some spacing between the text area and the counter */
}

#charCount.warning {
    color: #e74c3c; /* Warning color when characters are below the minimum limit */
}

#charCount.success {
    color: #2ecc71; /* Success color when the minimum character limit is reached */
}

/* Media Queries */
/* Extra small devices (phones, 600px and down) */
@media screen and (max-width: 600px) {

    .contact__fields {
        flex-direction: column;
        gap: 10px;
    }

    #charCount {
        font-size: 0.75em; /* Smaller font for smaller screens */
        text-align: left; /* Align to left for smaller screens */
    }
}

@media screen and (min-width: 800px) {
    #charCount {
        font-size: 0.9em;
    }
}

@media screen and (min-width: 1200px) {
    #charCount {
        font-size: 1em;
    }
}