/* =========================================================
   TOUCHMEDICAL — GLOBAL STYLES
========================================================= */

/* ---------------------------------------------------------
   VARIABLES
--------------------------------------------------------- */

:root {
    --tm-font: 'Manrope', sans-serif;

    --tm-color-accent: #89C43B;
    --tm-color-button: #79B777;
    --tm-color-text: #111111;
    --tm-color-white: #FFFFFF;
    --tm-color-shadow: rgba(91, 135, 33, 0.3);

    --tm-h1-size: 50px;
    --tm-h2-size: 40px;
    --tm-text-size: 16px;
    --tm-overline-size: 14px;

    --tm-button-radius: 4px;
    --tm-transition: 0.25s ease;
    --tm-container-width: 1320px;
    --tm-container-padding: 30px;
}

/* ---------------------------------------------------------
   BASE
--------------------------------------------------------- */

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--tm-font) !important;
    font-size: var(--tm-text-size);
    font-weight: 400;
    line-height: 1.6;
    color: var(--tm-color-text);
}

body,
button,
input,
select,
textarea {
    font-family: var(--tm-font) !important;
}

* {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   HEADINGS
--------------------------------------------------------- */

h1,
.entry-content h1,
.wp-block-post-title {
    font-family: var(--tm-font) !important;
    font-size: var(--tm-h1-size) !important;
    font-weight: 600 !important;
    line-height: 1.2;
    color: var(--tm-color-text);
}

h2,
.entry-content h2 {
    font-family: var(--tm-font) !important;
    font-size: var(--tm-h2-size) !important;
    font-weight: 600 !important;
    line-height: 1.25;
    color: var(--tm-color-text);
}

h3,
h4,
h5,
h6 {
    font-family: var(--tm-font) !important;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tm-color-text);
}

/* ---------------------------------------------------------
   TEXT
--------------------------------------------------------- */

p,
li,
.entry-content,
.woocommerce-page {
    font-family: var(--tm-font);
    font-size: var(--tm-text-size);
    font-weight: 400;
    color: var(--tm-color-text);
}

p {
    margin-bottom: 1em;
}

/* ---------------------------------------------------------
   LINKS
--------------------------------------------------------- */

a {
    color: var(--tm-color-accent);
    transition: color var(--tm-transition);
}

a:hover {
    color: var(--tm-color-button);
}

/* ---------------------------------------------------------
   OVERLINE / EYEBROW
   Usage: .tm-overline
--------------------------------------------------------- */

.tm-overline {
    display: inline-block;
    margin-bottom: 16px;

    font-family: var(--tm-font);
    font-size: var(--tm-overline-size);
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    color: var(--tm-color-accent);
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-element-button,
.wp-block-button__link,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    font-family: var(--tm-font) !important;
    font-weight: 600;
    color: var(--tm-color-white) !important;
    background-color: var(--tm-color-button) !important;

    border: none;
    border-radius: var(--tm-button-radius) !important;

    box-shadow: 0 4px 10px var(--tm-color-shadow);

    transition:
        transform var(--tm-transition),
        box-shadow var(--tm-transition),
        background-color var(--tm-transition);
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    color: var(--tm-color-white) !important;
    background-color: var(--tm-color-button) !important;

    transform: translateY(-2px);

    box-shadow: 0 6px 16px rgba(91, 135, 33, 0.4);
}

/* ---------------------------------------------------------
   FORM FIELDS
--------------------------------------------------------- */

input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    font-family: var(--tm-font) !important;
    font-size: 16px;
    color: var(--tm-color-text);
    border-radius: 4px;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 767px) {

    :root {
        --tm-h1-size: 25px;
        --tm-h2-size: 22px;
        --tm-text-size: 14px;
    }

    h1,
    .entry-content h1,
    .wp-block-post-title {
        font-size: 25px !important;
        line-height: 1.25;
    }

    h2,
    .entry-content h2 {
        font-size: 22px !important;
        line-height: 1.3;
    }

    p,
    li,
    .entry-content,
    .woocommerce-page {
        font-size: 14px;
    }

    input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
    select,
    textarea {
        font-size: 14px;
    }

}

/* =========================================================
   GLOBAL CONTAINER
========================================================= */

.tm-container {
    width: 100%;
    max-width: var(--tm-container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--tm-container-padding);
    padding-right: var(--tm-container-padding);
}

/* Контейнеры Blocksy */
.ct-container,
.ct-container-fluid {
    width: 100%;
    max-width: var(--tm-container-width) !important;
}

/* Мобильные устройства */
@media (max-width: 767px) {
    :root {
        --tm-container-padding: 16px;
    }
}



/* =========================================================
   TOUCHMEDICAL — HIDE DEFAULT BLOCKSY HEADER
========================================================= */

#header,
#header [data-device],
.ct-header,
.ct-header-wrapper {
    display: none !important;
}













/* =========================================================
   TOUCHMEDICAL — CONTACT FORM 7
   GLOBAL FORM STYLES
========================================================= */

.wpcf7 {
    width: 100%;
}

.wpcf7 form {
    width: 100%;
    margin: 0;
}

.wpcf7 form p {
    margin: 0;
}


/* =========================================================
   FORM ROW
========================================================= */

.tm-cf7-row {
    display: flex;
    width: 100%;
}

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


/* =========================================================
   FIELD
========================================================= */

.tm-cf7-field {
    width: 100%;
    min-width: 0;
}


/* =========================================================
   INPUTS
========================================================= */

.tm-cf7-form input[type="text"],
.tm-cf7-form input[type="email"],
.tm-cf7-form input[type="tel"],
.tm-cf7-form input[type="url"],
.tm-cf7-form input[type="number"],
.tm-cf7-form textarea,
.tm-cf7-form select {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0 22px;

    color: var(--tm-color-text);
    background: #fff;

    border: 1px solid #d9d9d9;
    border-radius: 6px;

    box-shadow: none;
    outline: none;

    font-family: var(--tm-font) !important;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;

    transition:
        border-color var(--tm-transition),
        box-shadow var(--tm-transition);
}


/* =========================================================
   INPUT HEIGHT
========================================================= */

.tm-cf7-form input[type="text"],
.tm-cf7-form input[type="email"],
.tm-cf7-form input[type="tel"],
.tm-cf7-form input[type="url"],
.tm-cf7-form input[type="number"] {
    height: 70px;
}


/* =========================================================
   TEXTAREA
========================================================= */

.tm-cf7-form textarea {
    min-height: 125px;

    padding-top: 18px;
    padding-bottom: 18px;

    resize: vertical;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

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


/* =========================================================
   FOCUS
========================================================= */

.tm-cf7-form input:focus,
.tm-cf7-form textarea:focus,
.tm-cf7-form select:focus {
    border-color: var(--tm-color-button);

    box-shadow:
        0 0 0 2px rgba(121, 183, 119, 0.10);
}


/* =========================================================
   SUBMIT
========================================================= */

.tm-cf7-submit {
    width: 100%;
}

.tm-cf7-submit input[type="submit"] {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 64px;

    padding: 0 24px;

    color: #fff !important;
    background: var(--tm-color-button) !important;

    border: none !important;
    border-radius: var(--tm-button-radius) !important;

    box-shadow:
        0 4px 10px var(--tm-color-shadow);

    font-family: var(--tm-font) !important;
    font-size: 22px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform var(--tm-transition),
        box-shadow var(--tm-transition);
}

.tm-cf7-submit input[type="submit"]:hover {
    color: #fff !important;
    background: var(--tm-color-button) !important;

    transform: translateY(-2px);

    box-shadow:
        0 6px 16px rgba(91, 135, 33, 0.4);
}


/* =========================================================
   CONSENT
========================================================= */

.tm-cf7-consent {
    margin-top: 18px;

    color: #aaa;

    font-family: var(--tm-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.tm-cf7-consent a {
    color: #aaa !important;

    text-decoration: underline;
    text-underline-offset: 2px;
}

.tm-cf7-consent a:hover {
    color: var(--tm-color-button) !important;
}


/* =========================================================
   VALIDATION
========================================================= */

.tm-cf7-form .wpcf7-not-valid-tip {
    display: block;

    margin-top: 5px;

    color: #c75b5b;

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

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


/* =========================================================
   RESPONSE
========================================================= */

.wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 12px 16px !important;

    border: 1px solid #d9d9d9 !important;
    border-radius: 4px;

    color: #66706a;

    font-family: var(--tm-font);
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   SPINNER
========================================================= */

.tm-cf7-submit .wpcf7-spinner {
    margin: 0 0 0 10px;
}


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

@media (max-width: 767px) {

    .tm-cf7-row-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tm-cf7-form input[type="text"],
    .tm-cf7-form input[type="email"],
    .tm-cf7-form input[type="tel"],
    .tm-cf7-form input[type="url"],
    .tm-cf7-form input[type="number"] {
        height: 56px;
        padding: 0 16px;

        font-size: 14px;
    }

    .tm-cf7-form textarea {
        min-height: 110px;

        padding: 15px 16px;

        font-size: 14px;
    }

    .tm-cf7-submit input[type="submit"] {
        min-height: 54px;

        padding: 0 18px;

        font-size: 17px;
    }

    .tm-cf7-consent {
        margin-top: 13px;

        font-size: 11px;
        line-height: 1.45;
    }
}





/* =========================================================
   FOOTER FORM — CONSENT
========================================================= */

.tm-footer-form-card .tm-cf7-consent,
.tm-footer-form-card .tm-cf7-consent p {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;

    color: #b0b0b0 !important;

    font-family: var(--tm-font) !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;

    text-align: left;
}

.tm-footer-form-card .tm-cf7-consent p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.tm-footer-form-card .tm-cf7-consent a {
    color: #b0b0b0 !important;

    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;

    text-decoration: underline !important;
    text-underline-offset: 2px;
}

.tm-footer-form-card .tm-cf7-consent a:hover {
    color: var(--tm-color-button) !important;
}



/* =========================================================
   FOOTER CF7 — CONSENT RESET
========================================================= */

.tm-footer-form-card .tm-cf7-consent {
    display: block;

    margin-top: 4px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;

    color: #b0b0b0 !important;

    font-family: var(--tm-font) !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;

    text-align: left;
}

.tm-footer-form-card .tm-cf7-consent p {
    display: block;

    margin: 0 !important;
    padding: 0 !important;

    color: inherit !important;

    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.2 !important;
}

.tm-footer-form-card .tm-cf7-consent a {
    margin: 0 !important;
    padding: 0 !important;

    color: #b0b0b0 !important;

    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: 1.2 !important;

    text-decoration: underline !important;
    text-underline-offset: 2px;
}


/* Убираем возможный дополнительный отступ
   вокруг блока отправки */

.tm-footer-form-card .tm-cf7-submit {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.tm-footer-form-card .tm-cf7-submit p {
    margin: 0 !important;
    padding: 0 !important;
}


/* Убираем возможный внешний отступ
   у самого submit */

.tm-footer-form-card .wpcf7-submit {
    margin-bottom: 0 !important;
}