/* =====================================================
   YOKUCHI — CONTACT FORM SECTION
   ===================================================== */

.yokuchi-contact-section {
    width: 100%;

    background: #fff;
}

.yokuchi-contact-section__container {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 70px;

    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    padding: 115px 40px 120px;
}


/* =========================
   LEFT
   ========================= */

.yokuchi-contact-section__info {
    width: 100%;
}

.yokuchi-contact-section__logo {
    max-width: 245px;

    margin-bottom: 18px;
}

.yokuchi-contact-section__logo img {
    display: block;

    width: 100%;
    height: auto;
}

.yokuchi-contact-section__line {
    width: 47px;
    height: 2px;

    margin-bottom: 26px;

    background: #EC1D23;
}


/* =========================
   COMPANY
   ========================= */

.yokuchi-contact-section__company {
    margin-bottom: 34px;

    font-size: 16px;
    line-height: 1.55;

    color: #646464;
}

.yokuchi-contact-section__company strong {
    display: block;

    margin-bottom: 2px;

    font-size: 18px;
    font-weight: 600;

    color: #242424;
}

.yokuchi-contact-section__address {
    white-space: normal;
}


/* =========================
   CONTACT ITEMS
   ========================= */

.yokuchi-contact-section__contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 25px 40px;

    max-width: 470px;

    margin-bottom: 38px;
}

.yokuchi-contact-section__contact {
    display: flex;
    align-items: flex-start;

    gap: 13px;
}

.yokuchi-contact-section__icon {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #EC1D23;

    font-size: 17px;
    line-height: 1;
}

.yokuchi-contact-section__label {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
    line-height: 1.3;

    color: #757575;
}

.yokuchi-contact-section__contact a {
    display: block;

    font-size: 18px;
    line-height: 1.4;

    color: #232323;

    text-decoration: none;

    transition: color .2s ease;
}

.yokuchi-contact-section__contact a:hover {
    color: #EC1D23;
}


/* =========================
   BUTTON
   ========================= */

.yokuchi-contact-section__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 22px;

    width: fit-content;

    min-height: 44px;

    padding: 0 20px;

    border: 1px solid #777;

    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 500;

    line-height: 24px;

    letter-spacing: 2px;

    text-transform: uppercase;
    text-decoration: none;

    color: #222;

    transition:
        color .2s ease,
        border-color .2s ease;
}

.yokuchi-contact-section__arrow {
    color: #EC1D23;

    font-size: 17px;

    transition: transform .2s ease;
}

.yokuchi-contact-section__button:hover {
    color: #EC1D23;
    border-color: #EC1D23;
}

.yokuchi-contact-section__button:hover
.yokuchi-contact-section__arrow {
    transform: translateX(4px);
}


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

.yokuchi-contact-section__form {
    padding-top: 55px;
}


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

.yokuchi-contact-section__form .wpcf7 {
    width: 100%;
}

.yokuchi-contact-section__form .wpcf7-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;
}

.yokuchi-contact-section__form .wpcf7-form p {
    margin: 0;
}

/*
 * Jeśli pola są standardowo generowane przez CF7,
 * możesz klasami w formularzu określić ich szerokości.
 */

.yokuchi-contact-section__form .form-full {
    grid-column: 1 / -1;
}

.yokuchi-contact-section__form input[type="text"],
.yokuchi-contact-section__form input[type="email"],
.yokuchi-contact-section__form input[type="tel"],
.yokuchi-contact-section__form textarea {
    display: block;

    width: 100%;

    padding: 0 12px;

    border: 1px solid #d1d1d1;
    border-radius: 0;

    outline: none;

    background: #fff;

    font-family: inherit;
    font-size: 11px;

    color: #333;

    box-shadow: none;

    transition: border-color .2s ease;
}

.yokuchi-contact-section__form input[type="text"],
.yokuchi-contact-section__form input[type="email"],
.yokuchi-contact-section__form input[type="tel"] {
    height: 38px;
}

.yokuchi-contact-section__form textarea {
    height: 128px;

    padding-top: 12px;

    resize: vertical;
}

.yokuchi-contact-section__form input:focus,
.yokuchi-contact-section__form textarea:focus {
    border-color: #999;
}

.yokuchi-contact-section__form input::placeholder,
.yokuchi-contact-section__form textarea::placeholder {
    color: #999;

    opacity: 1;
}


/* =========================
   CHECKBOX
   ========================= */

.yokuchi-contact-section__form .wpcf7-acceptance {
    font-size: 9px;
    line-height: 1.5;

    color: #777;
}

.yokuchi-contact-section__form .wpcf7-acceptance label {
    display: flex;
    align-items: flex-start;

    gap: 8px;
}

.yokuchi-contact-section__form .wpcf7-acceptance input {
    margin-top: 2px;
}

.yokuchi-contact-section__form .privacy-checkbox {
    position: relative;

    grid-column: 1 / -1;

    margin: 0;
    padding: 0 0 24px 27px;

    color: #777;

    font-size: 9px;
    line-height: 1.5;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-form-control-wrap,
.yokuchi-contact-section__form .privacy-checkbox .wpcf7-checkbox,
.yokuchi-contact-section__form .privacy-checkbox .wpcf7-list-item {
    display: inline !important;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-list-item label {
    display: inline !important;
}

.yokuchi-contact-section__form .privacy-checkbox input[type="checkbox"] {
    position: absolute;

    left: 0;
    top: 1px;

    margin: 0;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-list-item-label {
    font-size: inherit;
    line-height: inherit;
}

.yokuchi-contact-section__form .privacy-checkbox a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-not-valid-tip {
    position: absolute;

    left: 27px;
    bottom: 0;

    display: block !important;

    width: calc(100% - 27px);

    margin: 0;
    padding: 0;

    color: #EC1D23;

    font-size: 10px;
    line-height: 1.5;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-checkbox.wpcf7-not-valid input[type="checkbox"] {
    border-color: #EC1D23;
}


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

.yokuchi-contact-section__form input[type="submit"] {
    min-height: 44px;

    padding: 0 18px;

    border: 1px solid #777;
    border-radius: 0;

    background: transparent;

    color: #222;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.7px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color .2s ease,
        border-color .2s ease;
}

.yokuchi-contact-section__form input[type="submit"]:hover {
    color: #EC1D23;
    border-color: #EC1D23;

    background: transparent;
}


/* =========================
   CF7 MESSAGES
   ========================= */

.yokuchi-contact-section__form .wpcf7-response-output {
    grid-column: 1 / -1;

    margin: 10px 0 0 !important;
    padding: 10px 12px !important;

    border-width: 1px !important;

    font-size: 11px;
}

.yokuchi-contact-section__form .privacy-checkbox {
    display: flex !important;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0;

    grid-column: 1 / -1;

    margin: 0;
    padding: 0;

    color: #777;

    font-size: 9px;
    line-height: 1.5;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-form-control-wrap,
.yokuchi-contact-section__form .privacy-checkbox .wpcf7-checkbox,
.yokuchi-contact-section__form .privacy-checkbox .wpcf7-list-item,
.yokuchi-contact-section__form .privacy-checkbox .wpcf7-list-item label {
    display: contents !important;
}

.yokuchi-contact-section__form .privacy-checkbox input[type="checkbox"] {
    position: static;

    flex: 0 0 17px;

    margin: 1px 10px 0 0;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-list-item-label {
    display: inline;

    font-size: inherit;
    line-height: inherit;
}

.yokuchi-contact-section__form .privacy-checkbox a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.yokuchi-contact-section__form .privacy-checkbox .wpcf7-not-valid-tip {
    position: static;

    display: block !important;
    flex: 0 0 100%;

    width: 100%;

    margin: 6px 0 0 27px;
    padding: 0;

    color: #EC1D23;

    font-size: 10px;
    line-height: 1.5;
}

.privacy-consent {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;
}

.privacy-consent p {
    display: flex !important;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;

    width: 100%;

    margin: 0 !important;
}

.privacy-consent br {
    display: none !important;
}

.privacy-consent .wpcf7-form-control-wrap {
    display: contents !important;
}

.privacy-consent .wpcf7-checkbox,
.privacy-consent .wpcf7-list-item label {
    display: contents !important;
}

.privacy-consent .wpcf7-list-item {
    margin: 0;
}

.privacy-consent input[type="checkbox"] {
    flex: 0 0 auto;

    margin-right: 6px;
}

.privacy-consent .wpcf7-not-valid-tip {
    flex: 0 0 100%;
    order: 10;

    margin-left: 27px;
}

.yokuchi-contact-section__form .privacy-consent p {
    display: flex !important;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px;

    width: 100%;

    margin: 0 !important;
}

.yokuchi-contact-section__form .privacy-consent br {
    display: none !important;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-form-control-wrap,
.yokuchi-contact-section__form .privacy-consent .wpcf7-checkbox,
.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item,
.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item label {
    display: contents !important;
}

.yokuchi-contact-section__form .privacy-consent input[type="checkbox"] {
    position: static;

    display: inline-grid;
    flex: 0 0 17px;

    margin: 1px 6px 0 0;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item-label,
.yokuchi-contact-section__form .privacy-consent a {
    display: inline;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-not-valid-tip {
    display: block !important;
    flex: 0 0 100%;
    order: 10;

    margin: 6px 0 0 27px;
    padding: 0;
}

.yokuchi-contact-section__form .privacy-consent p {
    display: block !important;

    width: 100%;

    margin: 0 !important;

    font-size: 9px;
    line-height: 1.5;
}

.yokuchi-contact-section__form .privacy-consent p > br {
    display: none !important;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-form-control-wrap,
.yokuchi-contact-section__form .privacy-consent .wpcf7-checkbox,
.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item {
    display: inline !important;

    width: auto !important;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item label {
    display: inline-flex !important;
    align-items: flex-start;
    gap: 6px;

    width: auto !important;

    vertical-align: top;
}

.yokuchi-contact-section__form .privacy-consent input[type="checkbox"] {
    position: static;

    display: inline-grid;
    flex: 0 0 17px;

    margin: 1px 0 0;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item-label,
.yokuchi-contact-section__form .privacy-consent a {
    display: inline !important;

    width: auto !important;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-not-valid-tip {
    display: block !important;

    width: 100% !important;

    margin: 6px 0 0 27px;
    padding: 0;
}


/* =====================================================
   TABLET
   ===================================================== */

@media (max-width: 1024px) {

    .yokuchi-contact-section__container {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);

        gap: 36px;

        padding: 90px 30px;
    }

    .yokuchi-contact-section__contacts {
        grid-template-columns: 1fr;

        gap: 20px 24px;
    }

}


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

@media (max-width: 767px) {

    .yokuchi-contact-section__container {
        display: flex;
        flex-direction: column;

        gap: 60px;

        padding: 70px 20px;
    }

    .yokuchi-contact-section__logo {
        max-width: 210px;
    }

    .yokuchi-contact-section__contacts {
        grid-template-columns: 1fr;

        max-width: 100%;
    }

    .yokuchi-contact-section__form {
        padding-top: 0;
    }

    .yokuchi-contact-section__form .wpcf7-form {
        display: block;
    }

    .yokuchi-contact-section__form .wpcf7-form p {
        margin-bottom: 12px;
    }

}

.yokuchi-contact-section__form .privacy-consent .wpcf7-form-control-wrap,
.yokuchi-contact-section__form .privacy-consent .wpcf7-form-control.wpcf7-checkbox,
.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item,
.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item label {
    display: inline !important;
    width: auto !important;
    max-width: none !important;
}

.yokuchi-contact-section__form .privacy-consent input[type="checkbox"] {
    display: inline-grid !important;
    vertical-align: text-top;

    margin: 1px 6px 0 0 !important;
}

.yokuchi-contact-section__form .privacy-consent p > br {
    display: none !important;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item-label,
.yokuchi-contact-section__form .privacy-consent a {
    display: inline !important;
    width: auto !important;
}

.yokuchi-contact-section__form .privacy-consent {
    grid-column: 1 / -1 !important;
    display: block !important;

    width: 100% !important;
    max-width: none !important;
}

.yokuchi-contact-section__form .privacy-consent p {
    display: block !important;

    width: 100% !important;
    max-width: none !important;
}

.yokuchi-contact-section__form .privacy-consent .wpcf7-list-item label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;

    vertical-align: middle;
}

.yokuchi-contact-section__form .privacy-consent input[type="checkbox"] {
    margin-top: 0 !important;

    vertical-align: middle;
}

/* Homepage form style */
.yokuchi-contact-section__form {
    width: 100%;
    max-width: 720px;
    padding-top: 55px;
}

.yokuchi-contact-section__form .wpcf7 {
    width: 100%;
}

.yokuchi-contact-section__form .wpcf7-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.yokuchi-contact-section__form .wpcf7-form p {
    margin: 0 !important;
}

.yokuchi-contact-section__form .wpcf7-form p:nth-of-type(3),
.yokuchi-contact-section__form .wpcf7-form p:nth-of-type(4),
.yokuchi-contact-section__form .wpcf7-form p:nth-of-type(5),
.yokuchi-contact-section__form .wpcf7-form p:nth-of-type(6),
.yokuchi-contact-section__form .contact-full,
.yokuchi-contact-section__form .form-full,
.yokuchi-contact-section__form .privacy-checkbox,
.yokuchi-contact-section__form .privacy-consent,
.yokuchi-contact-section__form .wpcf7-response-output {
    grid-column: 1 / -1 !important;
}

.yokuchi-contact-section__form input:not([type="checkbox"]):not([type="submit"]),
.yokuchi-contact-section__form textarea,
.yokuchi-contact-section__form select {
    width: 100%;
    margin: 0;
    padding: 11px 13px;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    outline: none;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 11px;
    line-height: 1.4;
    color: #222;
}

.yokuchi-contact-section__form input:not([type="checkbox"]):not([type="submit"]) {
    height: 42px;
}

.yokuchi-contact-section__form textarea {
    display: block;
    min-height: 135px;
    resize: vertical;
}

.yokuchi-contact-section__form input:not([type="checkbox"]):not([type="submit"])::placeholder,
.yokuchi-contact-section__form textarea::placeholder {
    color: #aaa;
    opacity: 1;
}

.yokuchi-contact-section__form input:not([type="checkbox"]):not([type="submit"]):focus,
.yokuchi-contact-section__form textarea:focus,
.yokuchi-contact-section__form select:focus {
    border-color: #aaa;
}

.yokuchi-contact-section__form .wpcf7-form-control-wrap[data-name^="acceptance-"] {
    display: block !important;
    width: 100%;
}

.yokuchi-contact-section__form .wpcf7-form-control-wrap[data-name^="acceptance-"] .wpcf7-checkbox,
.yokuchi-contact-section__form .wpcf7-checkbox {
    display: block !important;
    width: 100%;
}

.yokuchi-contact-section__form .wpcf7-list-item {
    margin: 0;
}

.yokuchi-contact-section__form .wpcf7-list-item label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px;
    cursor: pointer;
}

.yokuchi-contact-section__form input[type="checkbox"] {
    position: relative !important;
    appearance: none;
    -webkit-appearance: none;
    display: grid !important;
    box-sizing: border-box;
    place-items: center;
    width: 17px;
    height: 17px;
    aspect-ratio: 1 / 1;
    flex: 0 0 17px;
    min-width: 17px;
    min-height: 17px;
    margin: 1px 0 0 !important;
    padding: 0;
    border: 1px solid #a9a9a9;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.yokuchi-contact-section__form input[type="checkbox"]::before {
    content: '';
    width: 9px;
    height: 5px;
    margin-top: -1px;
    border: solid #fff;
    border-width: 0 0 2px 2px;
    opacity: 0;
    transform: rotate(-45deg);
    transition: opacity .2s ease;
}

.yokuchi-contact-section__form input[type="checkbox"]:checked {
    border-color: #e64d4d;
    background: #e64d4d;
}

.yokuchi-contact-section__form input[type="checkbox"]:checked::before {
    opacity: 1;
}

.yokuchi-contact-section__form input[type="checkbox"]:focus-visible {
    outline: 2px solid rgba(230, 77, 77, .25);
    outline-offset: 2px;
}

.yokuchi-contact-section__form .privacy-checkbox,
.yokuchi-contact-section__form .privacy-consent,
.yokuchi-contact-section__form .wpcf7-list-item-label {
    max-width: 620px;
    color: #595959;
    font-size: 11px;
    line-height: 1.65;
    font-weight: 400;
}

.yokuchi-contact-section__form .privacy-checkbox a,
.yokuchi-contact-section__form .privacy-consent a {
    color: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.yokuchi-contact-section__form input[type="submit"],
.yokuchi-contact-section__form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    height: 44px;
    padding: 0 22px;
    border: 1px solid #888;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #222;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease;
}

.yokuchi-contact-section__form input[type="submit"]:disabled,
.yokuchi-contact-section__form button[type="submit"]:disabled {
    opacity: 1;
}

.yokuchi-contact-section__form input[type="submit"]:hover,
.yokuchi-contact-section__form button[type="submit"]:hover {
    border-color: #e64d4d;
    color: #e64d4d;
    background: transparent;
}

.yokuchi-contact-section__submit-arrow {
    color: #e64d4d;
    font-size: 16px;
    line-height: 1;
    transition: transform .2s ease;
}

.yokuchi-contact-section__form button[type="submit"]:hover .yokuchi-contact-section__submit-arrow {
    transform: translateX(4px);
}

.yokuchi-contact-section__form .wpcf7-not-valid {
    border-color: #e64d4d !important;
}

.yokuchi-contact-section__form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 6px;
    color: #e64d4d;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 400;
}

.yokuchi-contact-section__form .wpcf7-form-control-wrap[data-name^="acceptance-"] .wpcf7-not-valid-tip,
.yokuchi-contact-section__form .wpcf7-acceptance .wpcf7-not-valid-tip {
    width: 100%;
    clear: both;
    margin-top: 8px;
    padding-left: 27px;
}

.yokuchi-contact-section__form .wpcf7-response-output {
    margin: 15px 0 0 !important;
    padding: 12px 15px !important;
    border: 1px solid #d9d9d9 !important;
}

@media (max-width: 767px) {
    .yokuchi-contact-section__form {
        max-width: none;
        padding-top: 0;
    }

    .yokuchi-contact-section__form .wpcf7-form {
        display: block !important;
    }

    .yokuchi-contact-section__form .wpcf7-form p {
        margin-bottom: 12px !important;
    }
}
