/* ============================================= */
/* Floating labels - Contact form                  */
/* ============================================= */

.paragraph-form__form .form-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.paragraph-form__form .form-item input:not([type="checkbox"]):not([type="file"]),
.paragraph-form__form .form-item textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 0.75rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #006fac;
    border-radius: 4px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
}

.paragraph-form__form .form-item input:focus,
.paragraph-form__form .form-item textarea:focus {
    border-color: #0077c0;
}

.paragraph-form__form .form-item:not(.form-type-checkbox) label.option {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #27282b;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 0.25rem;
    margin: 0;
}

.paragraph-form__form .form-type-textarea label.option {
    top: 1.5rem !important;
    font-weight: normal !important;
}

/* Float up when focused or has value */
.paragraph-form__form .form-item input:focus + label.option,
.paragraph-form__form .form-item input:not(:placeholder-shown) + label.option {
    top: 0;
    font-size: 0.75rem;
    color: #0077c0;
    background: #fff;
}

/* Textarea label */
.paragraph-form__form .form-no-label div {
    position: relative;
}

.paragraph-form__form .form-no-label textarea + label.option {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    color: #6c7a89;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 0.25rem;
    margin: 0;
}

.paragraph-form__form .form-no-label textarea:focus + label.option,
.paragraph-form__form .form-no-label textarea:not(:placeholder-shown) + label.option {
    top: -0.5rem;
    font-size: 0.75rem;
    color: #0077c0;
    background: #fff;
}

/* Hide placeholder text (we use space placeholder for CSS trick) */
.paragraph-form__form input::placeholder {
    color: transparent;
}

/* Textarea keeps its visible placeholder until focus */
.paragraph-form__form textarea::placeholder {
    color: #6c7a89;
}

.paragraph-form__form textarea:focus::placeholder {
    color: transparent;
}
.paragraph-form__form .form-type-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.paragraph-form__form .form-type-checkbox label.option {
    position: static !important;
    transform: none !important;
    font-weight: normal;
    color: #27282b;
    pointer-events: auto;
}

.paragraph-form__form .form-type-checkbox input[type="checkbox"] {
    width: auto !important;
    padding: 0 !important;
    border: initial !important;
    border-radius: 0 !important;
}
.paragraph-form__form .form-item-upload-cv {
    margin-bottom: 1.5rem;
}

.paragraph-form__form .form-item-upload-cv label {
    position: static !important;
    transform: none !important;
    font-weight: bold;
    color: #27282b;
    display: block;
    margin-bottom: 0.5rem;
}

.paragraph-form__form .form-item-upload-cv input[type="file"] {
    width: auto !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    background: none !important;
}

.paragraph-form__form .webform-document-file-placeholder {
    color: #6c7a89;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.paragraph-form__form .webform-element-description {
    color: #6c7a89;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}
.paragraph-form__form .webform-document-file-placeholder,
.paragraph-form__form .webform-element-description {
    display: block;
    width: 100%;
}