body.contact-page .contact-button {
    display: none !important;
}

.contact-section {
    padding: 224px 64px 152px 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
    gap: 64px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 45%;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
}

.wpcf7 {
    width: 880px;
    height: fit-content;
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wpcf7 p {
    margin: 0;
    padding: 0;
}

.wpcf7-form p {
    display: contents;
}

.wpcf7.no-autop p {
    display: contents;
}

.wpcf7-response-output {
    display: none !important;
}

.wpcf7-not-valid-tip {
    position: absolute;
    bottom: 0;
    right: 0;
    text-align: center;
    margin: 0;
    padding: 0;
}

.contact-content form {
    flex: 0 0 45%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 15px;
    margin: 0;
    position: relative;
    min-height: 400px;
    height: 100%;
}

.form-group {
    display: grid;
    grid-template-columns: 160px 1fr;
    align-items: center;
    gap: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative; /* For absolute positioning of error messages */
}

.form-group:not(:last-child) {
    position: relative;
    padding-bottom: 8px;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group label {
    margin: 0;
    padding: 0;
    text-align: left;
    white-space: nowrap;
    line-height: 100%;
    font-family: var(--font-family-mincho);
    font-size: 20px;
    font-weight: 400;
}

.wpcf7-form .form-group input,
.wpcf7-form .form-group textarea,
.wpcf7-form .form-group input::placeholder,
.wpcf7-form .form-group textarea::placeholder {
    width: 100%;
    font-size: 14px;
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
    line-height: 1.2;
    font-family: var(--font-family-mincho);
    font-size: 20px;
    font-weight: 400;
    color: rgba(31, 58, 77, 0.3) !important;
    vertical-align: baseline;
}

.wpcf7-form .form-group textarea {
    height: 100px;
    resize: none;
    transform: translateY(2px);
}

.wpcf7-form .form-group textarea,
.wpcf7-form .form-group input {
    color: var(--primary-color) !important;
}

.form-group input:focus,
.form-group textarea:focus {
    box-shadow: none;
    outline: none;
}

.submit-button {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 185px;
    height: 53px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: transparent;
    color: var(--primary-color);
    font-family: var(--font-family-mincho);
    font-size: 20px;
    font-weight: 400;
    border: 1px solid var(--primary-color);
    border-radius: 32px;
    cursor: pointer;
    /* transition:
        color 0.2s ease 0.4s,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    -webkit-transition:
        color 0.2s ease 0.4s,
        box-shadow 0.2s ease,
        border-color 0.2s ease; */
    box-shadow: 0 0 0 0 transparent;
    overflow: hidden;
    padding: 0;
    z-index: 20;
    appearance: none;
    text-decoration: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* .submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--primary-color);
    border-radius: 32px;
    transition: transform 0.3s ease;
    -webkit-transition: transform 0.3s ease;
    z-index: 1;
    pointer-events: none;
} */

/* .submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translate(50%, -50%);
    width: 0;
    height: 0;
    background: var(--primary-color);
    border-radius: 50%;
    z-index: -1;
    transition: width 0.6s ease, height 0.6s ease;
    -webkit-transition: width 0.6s ease, height 0.6s ease;
} */

/* .submit-button .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: background-color 0.2s ease 0.3s;
    -webkit-transition: background-color 0.2s ease 0.3s;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.submit-button:hover::before {
    transform: scale(0.95);
}

.submit-button:hover::after {
    width: 400px;
    height: 400px;
} */

.submit-button:hover {
    color: #fff;
    /* box-shadow: inset 0 0 0 2px var(--primary-color); */
    border-color: var(--primary-color);
    background-color: #5A6473;
}

.submit-button:hover .dot {
    background-color: #fff;
}

.contact-info {
    flex: 0 0 576px;
    width: 576px;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    gap: 59px;
}

.contact-info-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 15px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
}

.contact-info-text {
    display: grid;
    grid-column: 1 / -1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

.contact-info-title {
    grid-column: 1;
    text-align: left;
    padding: 20px 15px 20px 0;
    white-space: nowrap;
    color: var(--primary-color);
    font-family: var(--font-family-mincho);
    font-size: 20px;
    font-weight: 400;
    width: 151px;
}

.contact-info-subtitle {
    grid-column: 2;
    text-align: left;
    padding: 20px;
    width: 425px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
    font: inherit;
}

.contact-info-subtitle,
.contact-info-subtitle a,
.contact-info-subtitle a[x-apple-data-detectors] {
    color: var(--primary-color) !important;
    text-decoration: none !important;
    font-family: var(--font-family-mincho) !important;
    font-size: 20px;
    font-weight: 400 !important;
    line-height: 100% !important;
}

.contact-info-image {
    grid-column: 2;
    margin-top: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

.contact-info-image img {
    width: 100%;
    max-width: 100%;
    height: 205px;
    border-radius: 4px;
}

.contact-contacts-section {
    display: none;
}

@media (min-width: 2560px) {}

@media (min-width: 1920px) and (max-width: 2559px) {
    .contact-section {
        padding: 200px 64px 152px 64px;
        gap: 40px;
    }

    .contact-info {
        gap: 40px;
    }

    .contact-content {
        height: 100%;
    }

    .contact-info-item {
        gap: 10px;
    }

    .contact-info-title {
        padding: 10px 15px 10px 0;
    }

    .contact-info-subtitle {
        padding: 10px;
    }
}

@media (min-width: 1440px) and (max-width: 1919px) {
    .contact-header {
        gap: 0;
    }

    .contact-content {
        height: 100%;
    }

    .contact-info {
        gap: 20px;
        flex: 0 0 400px;
        width: 400px;
    }

    .contact-section {
        padding: 130px 64px 80px 64px;
        gap: 24px;
    }

    .wpcf7 {
        width: 700px;
    }

    .form-group label,
    .contact-info-title,
    .submit-button,
    .contact-info-subtitle,
    .wpcf7-form .form-group input,
    .wpcf7-form .form-group textarea,
    .wpcf7-form .form-group input::placeholder,
    .wpcf7-form .form-group textarea::placeholder {
        font-size: 18px;
    }

    /* .contact-info-text {
        height: 50px;
    } */

    .contact-info-title {
        padding: 6px 6px 6px 0;
    }

    .contact-info-subtitle {
        padding: 6px;
    }

    .contact-info-image img {
        height: 180px;
    }
}

@media (min-width: 1024px) and (max-width: 1439px) {}

@media (min-width: 768px) and (max-width: 1023px) {}

@media (max-width: 767px) {
    .contact-section {
        padding: 150px 32px 0 32px;
        height: fit-content !important;
		gap: 50px;
    }

    .contact-header {
        align-items: center;
        width: 100%;
    }

    .contact-content {
        display: contents;
        height: 100%;
    }

    .wpcf7 {
        width: 100%;
    }

    .contact-content form {
        width: 100%;
        min-height: auto;
        margin-bottom: 30px;
		align-items: center;
		height: fit-content;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 15px;
    }

    .form-group label {
        font-size: 16px;
        white-space: normal;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .wpcf7-form .form-group input,
    .wpcf7-form .form-group textarea,
    .wpcf7-form .form-group input::placeholder,
    .wpcf7-form .form-group textarea::placeholder {
        font-size: 16px;
        margin: 8px 0;
        text-align: center;
    }

    .wpcf7-not-valid-tip {
        position: relative;
        bottom: 0;
    }

    .submit-button {
        position: relative;
        width: 165px;
        height: 53px;
        margin: 76px auto 0;
        display: flex;
        left: 0;
        right: 0;
    }

    .contact-info {
        width: 100%;
        height: 100%;
		justify-content: center;
    }

    .contact-info-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contact-info-text {
        grid-template-columns: 1fr;
        height: auto;
    }

    .contact-info-title,
    .contact-info-subtitle {
        width: 100%;
        padding: 5px 0;
        font-size: 16px;
    }

    .contact-info-title {
        padding-right: 0;
    }

    .contact-info-subtitle {
        padding-left: 0;
    }

    .contact-info-image {
        grid-column: 1;
        margin-top: 10px;
    }

    .contact-contacts-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: 20vh !important;
        height: fit-content !important;
    }

    .contact-contacts-section .go-to-top-button {
        width: 40px;
        height: 40px;
        z-index: 20 !important;
    }
}

@media (min-width: 376px) and (max-width: 400px) {
    .contact-section {
        padding: 100px 32px 0 32px;
    }
}

@media (max-width: 767px) {
    .wpcf7,
    .contact-info-item,
    .contact-info-image,
    .go-to-top-button
    {
        opacity: 0;
        transition: opacity 2.5s ease-out;
        -webkit-transition: opacity 2.5s ease-out;
        will-change: transform, opacity;
        transition-delay: 0.8s;
        transform: none;
        -webkit-transform: none;
    }

    .wpcf7.animate,
    .contact-info-item.animate,
    .contact-info-image.animate,
    .go-to-top-button.animate
    {
        opacity: 1;
        transform: none;
        -webkit-transform: none;
    }

    .contact-header
    {
        opacity: 0;
        transform: translateY(-30px);
        -webkit-transform: translateY(-30px);
        transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                    opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        -webkit-transition: transform 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s,
                            opacity 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s;
        will-change: transform, opacity;
    }

    .contact-header.animate
    {
        opacity: 1;
        transform: translateY(0);
        -webkit-transform: translateY(0);
    }
}
