@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caprasimo&family=Monoton&display=swap');

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
}

.contact-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
    min-height: calc(100vh - 350px);
}

.contact-container {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    border-radius: 12px;
    padding: 40px 40px 10px 40px;
    width: 1200px;
}

.contact-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    align-items: stretch;
    transition: all 0.4s ease-in-out;
}

.left-column, .contact-form {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.left-column {
    flex: 1;
    max-width: 600px;
    padding: 20px 5px 0 20px;
}

.contact-header {
    text-align: left;
    margin-bottom: 20px;
    line-height: 1.7;
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
}

.contact-header img {
    align-self: flex-end;
    max-width: 120px;
    height: auto;
    margin: -85px 25px 10px 0;
}

.contact-title {
    font-family: "Caprasimo", serif;
    font-size: 2.8rem;
    color: rgb(24, 59, 78);
    transition: all 0.4s ease-in-out;
}

.contact-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: rgba(24, 59, 78, 0.95);
    transition: all 0.4s ease-in-out;
}

.contact-subtitle strong {
    color: rgb(100, 27, 27);
}

.contact-form {
    flex: 1;
    width: 100%;
    max-width: 500px;
    padding: 20px 20px 0 20px;
    border: 3px solid #2d1b3d;
    border-radius: 15px;
    box-shadow: 6px 6px 0 rgba(2, 32, 63, 0.95),
    12px 12px 25px rgba(45, 27, 61, 0.2);
    transition: all 0.4s ease-in-out;
    background-color: rgba(255, 255, 255, 0.6);
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(24, 59, 78, 0.2);
}

.submit-button {
    flex: 1;
    padding: 12px;
    background-color: rgba(2, 32, 63, 0.78);
    color: white;
    border: 2px solid rgba(2, 32, 63, 0.98);
    border-radius: 6px;
    font-size: 18px;
    font-family: "Caprasimo", serif;
    cursor: pointer;
    width: 100%;
}

.submit-button:hover {
    border: 2px solid rgba(155, 192, 156, 0.8);
    background-color: rgba(155, 192, 156, 0.7);
}

.separator {
    display: none;
    width: 100%;
    height: 1px;
    background-color: #c4c2c2;
}

* {
    transition: all 0.3s ease-in-out;
}

:root {
    --length: 0;
}

.path {
    fill: none;
    stroke: #641b1b;
    stroke-width: 8;
    stroke-dasharray: var(--length);
    stroke-dashoffset: var(--length);
    animation: draw 8s ease forwards !important;
}

@keyframes draw {
    0% {
        stroke-dashoffset: var(--length);
    }

    100% {
        stroke-dashoffset: 0;
    }
}

.bg-svg {
    position: absolute;
    pointer-events: none;
    z-index: -1;
    opacity: 0.8;
}

.svg {
    top: 100px;
    right: 750px;
    width: 800px;
    height: 800px;
}

@media (max-width: 850px) {
    .contact-page-wrapper {
        height: auto;
    }

    .contact-container {
        padding: 0 !important;
        gap: 0 !important;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-subtitle {
        font-size: 1.1rem !important;
        margin-top: 10px;
    }

    .contact-content {
        display: flex;
        flex-direction: column;
        padding: 8px !important;
        gap: 0 !important;
    }

    .contact-form {
        justify-content: center;
        width: 100%;
        max-width: 650px;
        padding: 20px !important;
    }
}

@media (max-width: 1080px) {
    .contact-header {
        line-height: 1.5;
    }

    .contact-title {
        font-size: 1.75rem;
    }

    .contact-subtitle {
        font-size: 1.25rem;
    }
}