/* =========================================================
   FREE BUYING ADVICE POPUP
   ========================================================= */


/* ---------------------------------------------------------
   Popup outer wrapper
   --------------------------------------------------------- */
.free-advice-popup {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 14px;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Main card
   --------------------------------------------------------- */
.free-advice-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    padding: 26px 24px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}


/* ---------------------------------------------------------
   Top badge
   --------------------------------------------------------- */
.advice-badge {
    display: inline-block;
    background: #f3f6fb;
    color: #222;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    margin: 0 0 12px;
}


/* ---------------------------------------------------------
   Heading
   --------------------------------------------------------- */
.free-advice-card h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.5px;
}


/* ---------------------------------------------------------
   Subtitle
   --------------------------------------------------------- */
.advice-subtitle {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 600;
    color: #333;
}


/* ---------------------------------------------------------
   Description
   --------------------------------------------------------- */
.advice-text {
    margin: 0 0 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #555;
}


/* =========================================================
   CONTACT FORM 7
   ========================================================= */


/*
 * IMPORTANT:
 * CF7 and some WordPress themes add large margins to <p>.
 * This is the main reason the form looked too tall.
 */
.free-advice-card .wpcf7-form p {
    margin: 0 0 12px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}


/*
 * Remove extra line breaks generated by CF7/theme
 */
.free-advice-card .wpcf7-form br {
    display: none !important;
}


/* ---------------------------------------------------------
   Labels
   --------------------------------------------------------- */
.free-advice-card .wpcf7-form label {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px;
    line-height: 1.3 !important;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}


/*
 * Space between label and its field
 */
.free-advice-card .wpcf7-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 6px !important;
}


/* ---------------------------------------------------------
   Inputs + textarea
   --------------------------------------------------------- */
.free-advice-card .wpcf7-form input[type="email"],
.free-advice-card .wpcf7-form input[type="text"],
.free-advice-card .wpcf7-form input[type="tel"],
.free-advice-card .wpcf7-form textarea {
    width: 100% !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 12px 14px !important;

    border: 1px solid #dddddd;
    border-radius: 8px;

    background: #ffffff;
    color: #222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.4 !important;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Placeholder */
.free-advice-card .wpcf7-form input::placeholder,
.free-advice-card .wpcf7-form textarea::placeholder {
    color: #aaaaaa;
    opacity: 1;
}


/* ---------------------------------------------------------
   Input focus
   --------------------------------------------------------- */
.free-advice-card .wpcf7-form input[type="email"]:focus,
.free-advice-card .wpcf7-form input[type="text"]:focus,
.free-advice-card .wpcf7-form input[type="tel"]:focus,
.free-advice-card .wpcf7-form textarea:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}


/* ---------------------------------------------------------
   Textarea
   --------------------------------------------------------- */
.free-advice-card .wpcf7-form textarea {
    min-height: 82px !important;
    height: 82px;
    resize: vertical;
}


/* ---------------------------------------------------------
   Submit button
   --------------------------------------------------------- */
.free-advice-card .wpcf7-form input[type="submit"],
.free-advice-card .wpcf7-form button,
.free-advice-card .wpcf7-form .wpcf7-submit {
    width: 100% !important;

    margin: 2px 0 0 !important;
    padding: 13px 18px !important;

    border: none !important;
    border-radius: 8px;

    background: #111111;
    color: #ffffff;

    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;

    cursor: pointer;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}


.free-advice-card .wpcf7-form input[type="submit"]:hover,
.free-advice-card .wpcf7-form button:hover,
.free-advice-card .wpcf7-form .wpcf7-submit:hover {
    opacity: 0.90;
    transform: translateY(-1px);
}


/* ---------------------------------------------------------
   CF7 Spinner
   --------------------------------------------------------- */
.free-advice-card .wpcf7-spinner {
    margin: 7px 0 0 8px !important;
}


/* ---------------------------------------------------------
   Validation messages
   --------------------------------------------------------- */
.free-advice-card .wpcf7-not-valid-tip {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.3;
}


/* ---------------------------------------------------------
   CF7 response output
   --------------------------------------------------------- */
.free-advice-card .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 10px 12px !important;

    border-radius: 8px;

    font-size: 13px;
    line-height: 1.4;
}


/* ---------------------------------------------------------
   Small privacy note
   --------------------------------------------------------- */
.advice-note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #777;
    text-align: center;
}


/* ---------------------------------------------------------
   Make required text softer
   --------------------------------------------------------- */
.free-advice-card .wpcf7-form .required {
    color: #999;
    font-weight: 400;
}


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

@media (max-width: 640px) {

    .free-advice-popup {
        padding: 8px;
    }

    .free-advice-card {
        padding: 20px 16px 16px;
        border-radius: 12px;
    }

    .advice-badge {
        margin-bottom: 9px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .free-advice-card h2 {
        font-size: 27px;
        margin-bottom: 6px;
    }

    .advice-subtitle {
        font-size: 15px;
        margin-bottom: 8px;
    }

    .advice-text {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .free-advice-card .wpcf7-form p {
        margin-bottom: 10px !important;
    }

    .free-advice-card .wpcf7-form label {
        font-size: 12px;
    }

    .free-advice-card .wpcf7-form .wpcf7-form-control-wrap {
        margin-top: 5px !important;
    }

    .free-advice-card .wpcf7-form input[type="email"],
    .free-advice-card .wpcf7-form input[type="text"],
    .free-advice-card .wpcf7-form input[type="tel"],
    .free-advice-card .wpcf7-form textarea {
        padding: 11px 12px !important;
        font-size: 14px;
    }

    .free-advice-card .wpcf7-form textarea {
        min-height: 72px !important;
        height: 72px;
    }

    .free-advice-card .wpcf7-form input[type="submit"],
    .free-advice-card .wpcf7-form button,
    .free-advice-card .wpcf7-form .wpcf7-submit {
        padding: 12px 15px !important;
        font-size: 14px;
    }

    .advice-note {
        margin-top: 10px;
        font-size: 11px;
    }
}

.product-security-guarantee {
    clear: both;
    width: 100%;
    margin: 18px 0 20px;
    text-align: center;
}

.product-security-guarantee img {
    display: block;
    width: 90%;
    max-width: 430px;
    height: auto;
    margin: 0 auto;
}