/* Contact Page Styles */
.contact-page {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(32px, 7vw, 96px);
    width: 100%;
    max-width: 1200px;
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    padding: clamp(20px, 4vw, 40px) 16px;
}

.contact-info {
    width: min(360px, 100%);
    display: flex;
    flex-direction: column;
    gap: 25px;
    color: #000000;
    font-family: 'Helvetica Neue', sans-serif;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.contact-copy h1 {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 18px;
    color: #000000;
    margin: 0;
}
.contact-copy p {
    font-family: 'Helvetica Neue', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000000;
    margin: 0;
}

.contact-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-description {
    margin: 0;
    max-width: 393px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
}

.contact-social {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-social .contact-section-title {
    font-size: inherit;
    font-weight: 400;
}

.contact-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
}

.contact-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 300;
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 1;
    transition: color 0.2s ease;
}

.contact-links a::after {
    content: none;
}

.contact-links a:hover {
    color: #2b2b2b;
}

.contact-links a:focus-visible {
    outline: none;
    color: #2b2b2b;
}

.contact-form-panel {
    width: min(560px, 100%);
    height: min(680px, calc(100vh - 190px));
    min-height: 520px;
    background-image: url("./assets/contact-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(430px, 100%);
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 10px;
    background-color: #ffffff;
    border: 0.5px solid rgba(43, 43, 43, 0.5);
    border-radius: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000000;
    outline: none;
    transition: border-color 0.2s ease;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #737373;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 16px;
}

.contact-input:focus,
.contact-textarea:focus {
    border-color: #2b2b2b;
}

.contact-textarea {
    height: 157px;
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    padding: 10px;
    background-color: #2b2b2b;
    border: 0.5px solid #2b2b2b;
    font-family: 'Manrope', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.contact-submit:hover {
    background-color: #1a1a1a;
}

.contact-submit:active {
    transform: scale(0.99);
}

/* Thank You Page */
.contact-subheading {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #737373;
    margin-top: -40px;
    margin-bottom: 30px;
    text-align: center;
}

.contact-back-link {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 300;
    color: #2b2b2b;
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    opacity: 0.82;
    transition:
        color 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-back-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-back-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.contact-back-link:hover::after,
.contact-back-link:focus-visible::after {
    transform: scaleX(1);
}

.contact-back-link:focus-visible {
    opacity: 1;
    outline: none;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 1180px) {
    .contact-page {
        gap: 40px;
        flex-direction: column;
        align-items: stretch;
    }

    .contact-info {
        width: 100%;
        max-width: 640px;
        margin: 0 auto;
    }

    .contact-description {
        max-width: 100%;
    }

    .contact-form-panel {
        width: 100%;
        max-width: 640px;
        height: 620px;
        min-height: 0;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 10px 10px
    }
    .contact-section-title {
        font-size: 17px;
    }
    .contact-copy {
        gap: 5px;
    }
    .contact-copy p {
        font-size: 15px;
    }

    .contact-links {
        gap: 5px;
    }
    .contact-social {
        gap: 5px;
    }
    .contact-copy p,
    .contact-description {
        font-size: 15px;
    }

    .contact-input,
    .contact-textarea,
    .contact-submit {
        font-size: 14px;
    }

    .contact-description {
        width: 90%;
        max-width: 100%;
    }

    .contact-form-panel {
        height: 520px;
        padding: 12px;
    }

    .contact-form {
        width: min(380px, 100%);
        gap: 8px;
    }

    .contact-input,
    .contact-textarea,
    .contact-submit {
        padding: 8px;
    }

    .contact-input::placeholder,
    .contact-textarea::placeholder {
        font-size: 14px;
    }

    .contact-textarea {
        height: 120px;
        min-height: 100px;
    }
}

@media (max-width: 520px) {
    .contact-page {
        padding-top: 10px;
        gap: 28px;
    }

    .contact-links {
        gap: 12px;
    }

    .contact-section-title {
        font-size: 16px;
    }

    .contact-form-panel {
        height: 460px;
        padding: 10px;
    }

    .contact-copy p,
    .contact-description {
        font-size: 14px;
    }

    .contact-form {
        width: min(330px, 100%);
    }

    .contact-input,
    .contact-textarea,
    .contact-submit {
        font-size: 13px;
        padding: 7px;
    }

    .contact-input::placeholder,
    .contact-textarea::placeholder {
        font-size: 13px;
    }

    .contact-textarea {
        height: 100px;
        min-height: 90px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-links a,
    .contact-links a::after,
    .contact-back-link,
    .contact-back-link::after {
        transition: none !important;
    }
}
