/* =========================================
   CONTACT PAGE
========================================= */

.contact-page {
    background: #fbfaf8;
}

.contact-main {
    width: 100%;
    overflow: hidden;
}


/* =========================================
   ACTIVE NAVIGATION
========================================= */

.contact-page .project-navigation a.active {
    color: #11131b;
}

.contact-page .project-navigation a.active::after {
    width: 100%;
}


/* =========================================
   CONTACT HERO
========================================= */

.contact-hero {
    width: min(1200px, 88%);
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(420px, 1.05fr);
    align-items: center;
    gap: 100px;
    padding: 80px 0 100px;
}


/* =========================================
   CONTACT INTRO
========================================= */

.contact-intro {
    max-width: 600px;
}

.contact-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #8b67f7;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.contact-intro h1 {
    margin: 0;
    color: #11131b;
    font-size: clamp(60px, 6vw, 88px);
    line-height: 0.94;
    letter-spacing: -5px;
}

.contact-intro h1 span {
    position: relative;
    display: inline-block;
    color: #8b67f7;
    font-style: italic;
    font-weight: 600;
}

.contact-intro h1 span::after {
    content: "";
    position: absolute;
    left: 2px;
    bottom: -10px;
    width: 70%;
    height: 8px;
    border-radius: 999px;
    background: #e6ff72;
    transform: rotate(-1.5deg);
}

.contact-description {
    max-width: 560px;
    margin-top: 48px;
    color: #61636b;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================
   CONTACT DETAILS
========================================= */

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 48px;
}

.contact-detail {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #e3e1dc;
    color: #11131b;
    text-decoration: none;
}

a.contact-detail {
    transition: padding-left 0.2s ease;
}

a.contact-detail:hover {
    padding-left: 6px;
}

.contact-detail-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #11131b;
    color: #e6ff72;
    font-size: 17px;
    font-weight: 700;
}

.contact-detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-detail-content span {
    color: #999a9f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.contact-detail-content strong {
    color: #11131b;
    font-size: 14px;
    font-weight: 750;
}


/* =========================================
   AVAILABILITY
========================================= */

.contact-availability-icon {
    background: #e6ff72;
}

.contact-availability-icon span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #11131b;
    box-shadow:
        0 0 0 5px
        rgba(17, 19, 27, 0.1);
}


/* =========================================
   SOCIALS
========================================= */

.contact-socials {
    margin-top: 42px;
}

.contact-socials-label {
    display: block;
    margin-bottom: 15px;
    color: #999a9f;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-social-links a {
    min-height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid #dedcd7;
    border-radius: 999px;
    color: #11131b;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.contact-social-links a span {
    color: #8b67f7;
}

.contact-social-links a:hover {
    transform: translateY(-2px);
    border-color: #11131b;
    background: #11131b;
    color: white;
}


/* =========================================
   CONTACT FORM WRAPPER
========================================= */

.contact-form-wrapper {
    width: 100%;
    padding: 48px;
    border: 1px solid #e7e5e0;
    border-radius: 28px;
    background: #ffffff;
    box-shadow:
        0 30px 70px
        rgba(17, 19, 27, 0.08);
}

.contact-form-heading {
    margin-bottom: 38px;
}

.contact-form-heading > span {
    display: inline-block;
    margin-bottom: 14px;
    color: #8b67f7;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-form-heading h2 {
    margin: 0;
    color: #11131b;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -2px;
}


/* =========================================
   FORM
========================================= */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form-group label {
    color: #3e4047;
    font-size: 12px;
    font-weight: 750;
}

.contact-form-group input,
.contact-form-group textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid #d9d7d2;
    outline: none;
    border-radius: 0;
    background: transparent;
    color: #11131b;
    font-family: inherit;
    font-size: 15px;
    transition:
        border-color 0.2s ease;
}

.contact-form-group input {
    min-height: 48px;
    padding: 0 0 12px;
}

.contact-form-group textarea {
    min-height: 130px;
    padding: 6px 0 12px;
    line-height: 1.7;
    resize: vertical;
}

.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder {
    color: #aaa9a6;
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    border-color: #8b67f7;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.contact-submit-button {
    width: 100%;
    min-height: 58px;
    margin-top: 8px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 14px;
    background: #11131b;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-submit-button span {
    color: #e6ff72;
    font-size: 20px;
    transition: transform 0.2s ease;
}

.contact-submit-button:hover {
    transform: translateY(-3px);
    background: #8b67f7;
    box-shadow:
        0 14px 30px
        rgba(139, 103, 247, 0.2);
}

.contact-submit-button:hover span {
    transform: translateX(5px);
}

.contact-form-note {
    margin: 20px 0 0;
    color: #a1a2a6;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}


/* =========================================
   BOTTOM STATEMENT
========================================= */

.contact-statement {
    width: min(1200px, 88%);
    margin: 0 auto;
    padding: 110px 0;
    border-top: 1px solid #e6e4df;
    text-align: center;
}

.contact-statement-label {
    margin-bottom: 25px;
    color: #9a9ba0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
}

.contact-statement h2 {
    max-width: 850px;
    margin: 0 auto;
    color: #11131b;
    font-size: clamp(44px, 5vw, 70px);
    line-height: 1.03;
    letter-spacing: -3px;
}

.contact-statement h2 span {
    display: block;
    color: #8b67f7;
}


/* =========================================
   FOOTER
========================================= */

.contact-footer {
    width: min(1200px, 88%);
    min-height: 130px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-top: 1px solid #e6e4df;
}

.contact-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #11131b;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.contact-footer-brand span {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #11131b;
    color: #e6ff72;
    font-size: 11px;
}

.contact-footer p {
    color: #96979c;
    font-size: 12px;
}

.contact-back-to-top {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dedcd7;
    border-radius: 50%;
    color: #11131b;
    text-decoration: none;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.contact-back-to-top:hover {
    background: #11131b;
    color: #ffffff;
}


/* =========================================
   DARK MODE
========================================= */

body.dark-theme.contact-page {
    background: #0d111a;
}

body.dark-theme.contact-page
.project-navigation a.active {
    color: #ffffff;
}

body.dark-theme
.contact-intro h1,
body.dark-theme
.contact-form-heading h2,
body.dark-theme
.contact-statement h2 {
    color: #f4f4f5;
}

body.dark-theme
.contact-description {
    color: #b7bbc4;
}

body.dark-theme
.contact-detail {
    border-color: #292f3a;
}

body.dark-theme
.contact-detail-content strong {
    color: #f4f4f5;
}

body.dark-theme
.contact-detail-content span {
    color: #858a95;
}

body.dark-theme
.contact-detail-icon {
    background: #222834;
}

body.dark-theme
.contact-availability-icon {
    background: #e6ff72;
}

body.dark-theme
.contact-socials-label {
    color: #858a95;
}

body.dark-theme
.contact-social-links a {
    border-color: #303641;
    color: #f4f4f5;
}

body.dark-theme
.contact-social-links a:hover {
    border-color: #e6ff72;
    background: #e6ff72;
    color: #11131b;
}

body.dark-theme
.contact-form-wrapper {
    border-color: #292f3a;
    background: #151a24;
    box-shadow:
        0 30px 70px
        rgba(0, 0, 0, 0.2);
}

body.dark-theme
.contact-form-group label {
    color: #d6d8dd;
}

body.dark-theme
.contact-form-group input,
body.dark-theme
.contact-form-group textarea {
    border-color: #343a46;
    color: #f4f4f5;
}

body.dark-theme
.contact-form-group input::placeholder,
body.dark-theme
.contact-form-group textarea::placeholder {
    color: #717681;
}

body.dark-theme
.contact-form-group input:focus,
body.dark-theme
.contact-form-group textarea:focus {
    border-color: #8b67f7;
}

body.dark-theme
.contact-submit-button {
    background: #e6ff72;
    color: #11131b;
}

body.dark-theme
.contact-submit-button span {
    color: #11131b;
}

body.dark-theme
.contact-submit-button:hover {
    background: #8b67f7;
    color: #ffffff;
}

body.dark-theme
.contact-submit-button:hover span {
    color: #ffffff;
}

body.dark-theme
.contact-form-note {
    color: #777d88;
}

body.dark-theme
.contact-statement {
    border-color: #262d39;
}

body.dark-theme
.contact-footer {
    border-color: #262d39;
}

body.dark-theme
.contact-footer-brand {
    color: #f4f4f5;
}

body.dark-theme
.contact-back-to-top {
    border-color: #303641;
    color: #f4f4f5;
}

body.dark-theme
.contact-back-to-top:hover {
    background: #f4f4f5;
    color: #11131b;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1000px) {

    .contact-hero {
        grid-template-columns: 1fr;
        gap: 70px;
        padding-top: 70px;
    }

    .contact-intro {
        max-width: 720px;
    }

    .contact-description {
        max-width: 620px;
    }

    .contact-details {
        max-width: 620px;
    }

    .contact-form-wrapper {
        max-width: 720px;
    }
}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 650px) {

    .contact-hero {
        width: calc(100% - 28px);
        min-height: auto;
        gap: 55px;
        padding: 55px 0 70px;
    }

    .contact-eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
    }

    .contact-intro h1 {
        font-size: 52px;
        line-height: 0.98;
        letter-spacing: -3px;
    }

    .contact-intro h1 span::after {
        bottom: -7px;
        height: 6px;
    }

    .contact-description {
        margin-top: 38px;
        font-size: 15px;
        line-height: 1.75;
    }

    .contact-details {
        margin-top: 35px;
    }

    .contact-detail {
        min-height: 70px;
    }

    .contact-detail-icon {
        width: 39px;
        height: 39px;
    }

    .contact-detail-content strong {
        font-size: 13px;
    }

    .contact-socials {
        margin-top: 35px;
    }

    .contact-form-wrapper {
        padding: 30px 22px;
        border-radius: 22px;
    }

    .contact-form-heading {
        margin-bottom: 32px;
    }

    .contact-form-heading h2 {
        font-size: 34px;
    }

    .contact-form {
        gap: 23px;
    }

    .contact-form-group input,
    .contact-form-group textarea {
        font-size: 14px;
    }

    .contact-submit-button {
        min-height: 55px;
    }

    .contact-statement {
        width: calc(100% - 28px);
        padding: 75px 0;
    }

    .contact-statement h2 {
        font-size: 39px;
        letter-spacing: -2px;
    }

    .contact-footer {
        width: calc(100% - 28px);
        min-height: 150px;
    }

    .contact-footer p {
        display: none;
    }
}


/* =========================================
   RESPONSIVE - SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .contact-intro h1 {
        font-size: 45px;
    }

    .contact-form-wrapper {
        padding: 27px 18px;
    }

    .contact-form-heading h2 {
        font-size: 31px;
    }

    .contact-social-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-social-links a {
        justify-content: space-between;
    }

    .contact-statement h2 {
        font-size: 35px;
    }
}

/* =========================================
   FORM FEEDBACK
========================================= */

.contact-form-feedback {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 24px;
    padding: 15px 17px;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.6;
}

.contact-form-feedback strong {
    font-size: 13px;
}

.contact-form-feedback.success {
    border: 1px solid #c9ead3;
    background: #effaf2;
    color: #24733e;
}

.contact-form-feedback.error {
    border: 1px solid #f1caca;
    background: #fff2f2;
    color: #a33a3a;
}

body.dark-theme .contact-form-feedback.success {
    border-color: #285b39;
    background: #14261b;
    color: #9be0b0;
}

body.dark-theme .contact-form-feedback.error {
    border-color: #673535;
    background: #2a1717;
    color: #f0aaaa;
}
