/* ==================================================================
   Contact form
   ==================================================================
   Carola ships no styling for .default-form at all — its own contact
   page uses browser default inputs, which is why the form looked
   unfinished next to the rest of the theme.

   Built from the theme's own tokens (--theme-color, --primary-color,
   --body-color, --primary-font) so it belongs to the design rather
   than sitting beside it.

   The pattern is an icon-led control with a floating label: the label
   sits inside the field until the visitor types or focuses, then rises
   and shrinks. Done with :placeholder-shown, so it needs no JavaScript
   and degrades to a normal labelled field if the CSS fails to load.
   ================================================================== */

.contact-form .field {
    position: relative;
    margin-bottom: 26px;
}

/* ------------------------------------------------------------------
   The control
------------------------------------------------------------------ */
.contact-form .field input,
.contact-form .field textarea {
    width: 100%;
    padding: 26px 20px 12px 54px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: #fff;
    font-family: var(--primary-font);
    font-size: 16px;
    color: var(--primary-color);
    line-height: 24px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    appearance: none;
}

.contact-form .field textarea {
    padding-top: 30px;
    min-height: 150px;
    resize: vertical;
}

.contact-form .field input:hover,
.contact-form .field textarea:hover {
    border-color: rgba(0, 0, 0, 0.28);
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    box-shadow: 0 0 0 4px rgba(255, 44, 59, 0.1);
}

/* ------------------------------------------------------------------
   Leading icon
------------------------------------------------------------------ */
.contact-form .field-icon {
    position: absolute;
    top: 22px;
    left: 20px;
    font-size: 16px;
    line-height: 1;
    color: var(--body-color);
    pointer-events: none;
    transition: color 0.25s ease;
}

.contact-form .field--area .field-icon {
    top: 28px;
}

.contact-form .field input:focus ~ .field-icon,
.contact-form .field textarea:focus ~ .field-icon,
.contact-form .field:focus-within .field-icon {
    color: var(--theme-color);
}

/* ------------------------------------------------------------------
   Floating label
   ------------------------------------------------------------------
   Rests over the input while it is empty and unfocused; rises on
   focus or once there is a value. :placeholder-shown is what detects
   "empty", which is why every control carries placeholder=" ".
------------------------------------------------------------------ */
.contact-form .field label {
    position: absolute;
    top: 18px;
    left: 54px;
    margin: 0;
    font-size: 16px;
    line-height: 20px;
    color: var(--body-color);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 0.2s ease, color 0.2s ease;
}

.contact-form .field--area label {
    top: 24px;
}

.contact-form .field input:focus + label,
.contact-form .field input:not(:placeholder-shown) + label,
.contact-form .field textarea:focus + label,
.contact-form .field textarea:not(:placeholder-shown) + label {
    transform: translateY(-11px) scale(0.78);
    color: var(--theme-color);
}

.contact-form .field .req {
    color: var(--theme-color);
}

/* ------------------------------------------------------------------
   Errors
------------------------------------------------------------------ */
.contact-form .field.has-error input,
.contact-form .field.has-error textarea {
    border-color: #d92d20;
}

.contact-form .field.has-error .field-icon {
    color: #d92d20;
}

.contact-form .field-error {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: -18px 0 20px;
    font-size: 13px;
    color: #d92d20;
}

/* ------------------------------------------------------------------
   Banner notes above the form
------------------------------------------------------------------ */
.form-note {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 26px;
    font-size: 15px;
}

.form-note--ok {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.form-note--error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

/* ------------------------------------------------------------------
   Actions
------------------------------------------------------------------ */
.contact-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 6px;
}

.contact-form .form-actions .btn-style-five {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.contact-form .form-actions .btn-style-five i {
    transition: transform 0.25s ease;
}

.contact-form .form-actions .btn-style-five:hover i {
    transform: translateX(4px);
}

.contact-form .form-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: var(--body-color);
}

@media (max-width: 575px) {
    .contact-form .form-actions {
        justify-content: center;
        text-align: center;
    }

    .contact-form .field input,
    .contact-form .field textarea {
        font-size: 15px;
    }
}
