/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

/* ================================
   CUSTOM CF7 FORM
================================ */

.cf7-custom-form {
    max-width: 760px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Row */

.cf7-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* Field */

.cf7-field {
    margin-bottom: 18px;
}

.cf7-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #222;
}

.cf7-field label span {
    color: #e53935;
}

/* Inputs */

.cf7-custom-form input[type="text"],
.cf7-custom-form input[type="tel"],
.cf7-custom-form input[type="email"],
.cf7-custom-form textarea {
    width: 100%;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #dedede;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: all 0.2s ease;
}

/* Textarea */

.cf7-custom-form textarea {
    min-height: 130px;
    resize: vertical;
}

/* Placeholder */

.cf7-custom-form input::placeholder,
.cf7-custom-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

/* Focus */

.cf7-custom-form input:focus,
.cf7-custom-form textarea:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

/* Submit */

.cf7-submit {
    margin-top: 5px;
}

.cf7-submit input[type="submit"] {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 13px 25px;
    border: 0;
    border-radius: 9px;
    background: #476b47;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.cf7-submit input[type="submit"]:hover {
    background: #476b47;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* CF7 Validation */

.cf7-custom-form .wpcf7-not-valid {
    border-color: #e53935 !important;
}

.cf7-custom-form .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
    color: #e53935;
}

/* Success message */

.cf7-custom-form .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 12px 15px !important;
    border-radius: 8px;
    font-size: 13px;
}

/* Remove default CF7 spacing */

.cf7-custom-form .wpcf7-form-control-wrap {
    display: block;
}

.cf7-custom-form p {
    margin: 0;
}

.cf7-custom-form br {
    display: none;
}

/* ================================
   MOBILE
================================ */

@media (max-width: 600px) {

    .cf7-custom-form {
        padding: 20px;
        border-radius: 12px;
    }

    .cf7-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cf7-field {
        margin-bottom: 16px;
    }

    .cf7-custom-form input[type="text"],
    .cf7-custom-form input[type="tel"],
    .cf7-custom-form input[type="email"],
    .cf7-custom-form textarea {
        padding: 12px 14px;
    }
}