/* Start custom CSS for html, class: .elementor-element-08d9977 *//* =========================================================
   TRHY-JARMARKY.CZ – CONTACT FORM 7
========================================================= */

.tj-contact-form .wpcf7 {
    width: 100%;
    margin: 0;
    padding: 0;
}

.tj-contact-form .wpcf7-form {
    width: 100%;
    margin: 0;
}

.tj-cf7,
.tj-cf7 *,
.tj-cf7 *::before,
.tj-cf7 *::after {
    box-sizing: border-box;
}

.tj-cf7 {
    --wine: #9b1f31;
    --wine-dark: #7d1726;
    --wine-light: #f8eff1;
    --text: #211d1e;
    --muted: #6f686a;
    --border: #ded3d5;

    display: grid;
    gap: 20px;

    width: 100%;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   ŘÁDKY
========================================================= */

.tj-cf7-row {
    display: grid;
    gap: 18px;
}

.tj-cf7-row-2 {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}


/* =========================================================
   FIELD
========================================================= */

.tj-cf7-field {
    min-width: 0;
}

.tj-cf7-field label {
    display: block;

    margin: 0;

    color: var(--text);

    font-size: 16px;
    line-height: 1.5;

    font-weight: 600;
}

.tj-cf7-field .wpcf7-form-control-wrap {
    display: block;

    width: 100%;

    margin-top: 8px;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
========================================================= */

.tj-cf7 input[type="text"],
.tj-cf7 input[type="email"],
.tj-cf7 input[type="tel"],
.tj-cf7 input[type="url"],
.tj-cf7 select,
.tj-cf7 textarea {

    display: block;

    width: 100%;
    max-width: 100%;

    margin: 0;

    padding: 14px 16px;

    color: var(--text);

    background: #ffffff;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    font-family: inherit;

    font-size: 16px;
    line-height: 1.5;

    font-weight: 400;

    box-shadow: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.tj-cf7 input[type="text"],
.tj-cf7 input[type="email"],
.tj-cf7 input[type="tel"],
.tj-cf7 input[type="url"],
.tj-cf7 select {
    min-height: 52px;
}

.tj-cf7 textarea {
    min-height: 180px;

    resize: vertical;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.tj-cf7 input::placeholder,
.tj-cf7 textarea::placeholder {
    color: #9b9395;

    opacity: 1;

    font-size: 16px;

    font-weight: 400;
}


/* =========================================================
   FOCUS
========================================================= */

.tj-cf7 input:focus,
.tj-cf7 select:focus,
.tj-cf7 textarea:focus {
    border-color: var(--wine);

    background: #ffffff;

    box-shadow:
        0 0 0 3px
        rgba(155, 31, 49, .08);
}


/* =========================================================
   SELECT
========================================================= */

.tj-cf7 select {
    cursor: pointer;
}


/* =========================================================
   SOUHLAS
========================================================= */

.tj-cf7-consent {
    padding: 16px 18px;

    background: var(--wine-light);

    border: 1px solid #eadfe1;

    border-radius: 10px;
}

.tj-cf7-consent .wpcf7-list-item {
    margin: 0;
}

.tj-cf7-consent label {
    display: flex;

    align-items: flex-start;

    gap: 11px;

    cursor: pointer;

    color: var(--muted);

    font-size: 16px;
    line-height: 1.55;

    font-weight: 400;
}

.tj-cf7-consent input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 3px 0 0;

    accent-color: var(--wine);
}


/* =========================================================
   SUBMIT
========================================================= */

.tj-cf7-submit {
    display: flex;

    align-items: center;

    gap: 15px;
}

.tj-cf7 input[type="submit"] {
    min-height: 52px;

    margin: 0;

    padding: 14px 27px;

    color: #ffffff;

    background: var(--wine);

    border: 1px solid var(--wine);

    border-radius: 10px;

    cursor: pointer;

    font-family: inherit;

    font-size: 16px;
    line-height: 1.4;

    font-weight: 600;

    box-shadow: none;

    transition:
        background .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.tj-cf7 input[type="submit"]:hover {
    background: var(--wine-dark);

    border-color: var(--wine-dark);

    transform: translateY(-1px);
}


/* =========================================================
   SPINNER
========================================================= */

.tj-cf7 .wpcf7-spinner {
    margin: 0 0 0 12px;
}


/* =========================================================
   VALIDACE
========================================================= */

.tj-cf7 .wpcf7-not-valid {
    border-color: #b42335 !important;
}

.tj-cf7 .wpcf7-not-valid-tip {
    display: block;

    margin-top: 7px;

    color: #b42335;

    font-size: 16px;
    line-height: 1.45;

    font-weight: 400;
}


/* =========================================================
   VÝSLEDNÁ HLÁŠKA
========================================================= */

.tj-contact-form .wpcf7-response-output {
    margin: 20px 0 0 !important;

    padding: 16px 18px !important;

    color: var(--text);

    background: #ffffff;

    border: 1px solid var(--border) !important;

    border-radius: 10px;

    font-size: 16px;
    line-height: 1.55;

    font-weight: 400;
}

.tj-contact-form form.sent .wpcf7-response-output {
    color: #285f3d;

    background: #eef8f1;

    border-color: #bcdcc6 !important;
}

.tj-contact-form form.invalid .wpcf7-response-output,
.tj-contact-form form.failed .wpcf7-response-output,
.tj-contact-form form.unaccepted .wpcf7-response-output {
    color: #8a2433;

    background: #fff1f3;

    border-color: #e6bcc3 !important;
}


/* =========================================================
   TABLET / MOBIL
========================================================= */

@media (max-width: 700px) {

    .tj-cf7-row-2 {
        grid-template-columns: 1fr;
    }

    .tj-cf7 {
        gap: 18px;
    }

    .tj-cf7 input[type="submit"] {
        width: 100%;
    }

}/* End custom CSS */