/* ============================================================
   LTS MARKET
   CONTACT PAGE
   File: css/kontakt.css

   Header + Footer = css/main.css
   ============================================================ */


/* ============================================================
   01. HERO
   ============================================================ */

.contact-hero {
    position: relative;
    overflow: hidden;

    color: #ffffff;

    background:
        radial-gradient(circle at 82% 22%,
            rgba(22, 140, 255, 0.12),
            transparent 34%),
        linear-gradient(105deg,
            #02080d 0%,
            #04101a 58%,
            #071b2b 100%);
}

.contact-hero::before {
    position: absolute;
    top: -360px;
    right: -170px;

    width: 760px;
    height: 760px;

    border: 1px solid rgba(22, 140, 255, 0.07);

    content: "";

    transform: rotate(38deg);

    pointer-events: none;
}

.contact-hero__grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr) minmax(360px, 0.55fr);

    align-items: center;

    min-height: 610px;

    gap: 100px;

    padding-top: calc(var(--header-height) + 65px);
    padding-bottom: 70px;
}

.contact-hero__content {
    max-width: 900px;
}

.contact-hero__label {
    margin-bottom: 24px;
}

.contact-hero__title {
    max-width: 900px;

    margin: 0 0 30px;

    color: #ffffff;

    font-size: clamp(3.2rem, 5.8vw, 5.8rem);
    font-weight: 700;
    line-height: 0.95;

    letter-spacing: -0.06em;
    text-transform: uppercase;
}

.contact-hero__title span {
    display: block;

    margin-top: 8px;

    color: var(--color-blue);
}

.contact-hero__description {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.56);

    font-size: 0.94rem;
    line-height: 1.75;
}


/* ============================================================
   02. CONTACT DETAILS
   ============================================================ */

.contact-hero__details {
    width: 100%;

    border-top: 1px solid var(--color-border-dark);
}

.contact-detail {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 22px 44px 22px 0;

    border-bottom: 1px solid var(--color-border-dark);
}

.contact-detail__label {
    margin-bottom: 7px;

    color: rgba(255, 255, 255, 0.35);

    font-size: 0.6rem;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-detail strong {
    color: #ffffff;

    font-size: clamp(0.95rem, 1.3vw, 1.15rem);
    font-weight: 550;
    line-height: 1.4;

    transition: color var(--transition);
}

.contact-detail__arrow {
    position: absolute;
    top: 50%;
    right: 4px;

    color: var(--color-blue);

    font-size: 1.2rem;

    transform: translateY(-50%);
}

.contact-detail:hover strong {
    color: var(--color-blue);
}


/* ============================================================
   03. FORM SECTION
   ============================================================ */

.contact-form-section {
    position: relative;

    padding: 96px 0;

    background: #ffffff;
}

.contact-form-section__grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.78fr) minmax(500px, 1fr);

    align-items: start;

    gap: 120px;
}

.contact-form-section__intro {
    position: sticky;
    top: 130px;

    max-width: 620px;
}

.contact-section-title {
    margin: 0 0 28px;

    color: var(--color-text);

    font-size: clamp(2.5rem, 4.6vw, 4.7rem);
    font-weight: 700;
    line-height: 0.98;

    letter-spacing: -0.055em;
}

.contact-section-title span {
    display: block;

    color: var(--color-blue);
}

.contact-form-section__intro>p:last-child {
    max-width: 540px;

    margin: 0;

    color: var(--color-text-soft);

    font-size: 0.88rem;
    line-height: 1.72;
}


/* ============================================================
   04. FORM
   ============================================================ */

.contact-form-wrapper {
    width: 100%;
}

.contact-form {
    width: 100%;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 24px;
}

.contact-form__field {
    display: flex;
    flex-direction: column;

    margin-bottom: 26px;
}

.contact-form__field label {
    display: block;

    margin-bottom: 9px;

    color: var(--color-text);

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-form__field label span {
    color: var(--color-blue);
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;

    margin: 0;
    padding: 15px 0;

    color: var(--color-text);

    border: 0;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;

    outline: none;

    background-color: transparent;

    font: inherit;
    font-size: 0.92rem;
    line-height: 1.5;

    transition:
        border-color var(--transition),
        color var(--transition);
}

.contact-form__field textarea {
    min-height: 130px;

    resize: vertical;
}

.contact-form__field select {
    padding-right: 28px;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(45deg,
            transparent 50%,
            var(--color-text-soft) 50%),
        linear-gradient(135deg,
            var(--color-text-soft) 50%,
            transparent 50%);

    background-position:
        calc(100% - 7px) calc(50% - 2px),
        calc(100% - 2px) calc(50% - 2px);

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
    color: #a2abb4;

    opacity: 1;
}

.contact-form__field input:hover,
.contact-form__field select:hover,
.contact-form__field textarea:hover {
    border-bottom-color: #aeb8c2;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
    border-bottom-color: var(--color-blue);
}

.contact-form__field input.is-invalid,
.contact-form__field select.is-invalid,
.contact-form__field textarea.is-invalid {
    border-bottom-color: #c93434;
}


/* ============================================================
   05. CONSENT
   ============================================================ */

.contact-form__consent {
    display: grid;

    grid-template-columns:
        18px minmax(0, 1fr);

    align-items: start;

    gap: 12px;

    margin-top: 4px;

    cursor: pointer;
}

.contact-form__consent input {
    width: 16px;
    height: 16px;

    margin: 2px 0 0;

    accent-color: var(--color-blue);

    cursor: pointer;
}

.contact-form__consent span {
    max-width: 660px;

    color: var(--color-text-soft);

    font-size: 0.68rem;
    line-height: 1.6;
}

.contact-form__consent a {
    color: var(--color-text);

    text-decoration: underline;
    text-underline-offset: 2px;

    transition: color var(--transition);
}

.contact-form__consent a:hover {
    color: var(--color-blue);
}

.contact-form__consent strong {
    color: var(--color-blue);
}

.contact-form__consent.is-invalid span {
    color: #a62d2d;
}


/* ============================================================
   06. FORM FOOTER
   ============================================================ */

.contact-form__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 22px;

    margin-top: 34px;
}

.contact-form__footer .button {
    min-width: 190px;
}

.contact-form__required {
    margin: 0;

    color: var(--color-text-soft);

    font-size: 0.64rem;
}


/* ============================================================
   07. FORM STATUS
   ============================================================ */

.contact-form__status {
    margin-top: 24px;

    padding: 15px 18px;

    color: var(--color-text);

    border: 1px solid var(--color-border);

    background: var(--color-light);

    font-size: 0.78rem;
    line-height: 1.6;
}

.contact-form__status.is-success {
    color: var(--color-text);

    border-color: rgba(22, 140, 255, 0.32);

    background: rgba(22, 140, 255, 0.06);
}

.contact-form__status.is-error {
    color: #8d2929;

    border-color: rgba(201, 52, 52, 0.3);

    background: rgba(201, 52, 52, 0.05);
}


/* ============================================================
   08. CONTACT PAGE MAP
   ============================================================ */

.contact-page-map {
    position: relative;

    display: block;

    width: 100%;

    padding: 72px 0;

    background: var(--color-light);
}

.contact-page-map__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;

    margin-bottom: 32px;
}

.contact-page-map__heading>div:first-child {
    min-width: 0;
}

.contact-page-map__heading .section-label {
    margin-bottom: 14px;
}

.contact-page-map__heading h2 {
    margin: 0;

    color: var(--color-text);

    font-size: clamp(2.6rem, 5vw, 4.8rem);
    font-weight: 700;
    line-height: 0.98;

    letter-spacing: -0.055em;
}

.contact-page-map__address {
    display: flex;
    flex-direction: column;

    min-width: 260px;

    padding-left: 28px;

    border-left: 1px solid var(--color-border);
}

.contact-page-map__address span {
    margin-bottom: 6px;

    color: var(--color-text-soft);

    font-size: 0.58rem;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-page-map__address strong {
    color: var(--color-text);

    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.45;
}


/* ============================================================
   09. MAP FRAME
   ============================================================ */

.contact-page-map__frame {
    position: relative;

    display: block;

    width: 100%;
    height: 380px;

    overflow: hidden;

    border: 1px solid var(--color-border);

    background: #e6ebef;
}

.contact-page-map__frame iframe {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background: #e6ebef;
}


/* ============================================================
   10. TABLET
   ============================================================ */

@media (max-width: 1023px) {

    .contact-hero__grid {
        grid-template-columns:
            minmax(0, 1fr) minmax(300px, 0.55fr);

        min-height: 590px;

        gap: 60px;

        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
    }

    .contact-hero__title {
        font-size: clamp(3rem, 7vw, 5rem);
    }


    .contact-form-section {
        padding: 80px 0;
    }

    .contact-form-section__grid {
        grid-template-columns:
            minmax(0, 0.7fr) minmax(420px, 1fr);

        gap: 60px;
    }

    .contact-form-section__intro {
        top: 110px;
    }


    .contact-page-map {
        padding: 68px 0;
    }

    .contact-page-map__frame {
        height: 360px;
    }
}


/* ============================================================
   11. SMALL TABLET
   ============================================================ */

@media (max-width: 820px) {

    .contact-hero__grid {
        grid-template-columns: 1fr;

        min-height: auto;

        gap: 48px;

        padding-top: calc(var(--header-height) + 85px);
        padding-bottom: 64px;
    }

    .contact-hero__content {
        max-width: 760px;
    }

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


    .contact-form-section__grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .contact-form-section__intro {
        position: static;

        max-width: 700px;
    }

    .contact-form-wrapper {
        max-width: 700px;
    }


    .contact-page-map__frame {
        height: 340px;
    }
}


/* ============================================================
   12. MOBILE
   ============================================================ */

@media (max-width: 639px) {

    .contact-hero::before {
        top: -160px;
        right: -370px;

        width: 650px;
        height: 650px;
    }

    .contact-hero__grid {
        gap: 38px;

        padding-top: calc(var(--header-height) + 70px);
        padding-bottom: 56px;
    }

    .contact-hero__label {
        margin-bottom: 18px;
    }

    .contact-hero__title {
        margin-bottom: 24px;

        font-size: clamp(2.55rem, 12vw, 3.8rem);
        line-height: 0.94;
    }

    .contact-hero__title span {
        margin-top: 6px;
    }

    .contact-hero__description {
        font-size: 0.86rem;
        line-height: 1.7;
    }

    .contact-detail {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .contact-detail strong {
        font-size: 0.92rem;
    }


    .contact-form-section {
        padding: 64px 0;
    }

    .contact-form-section__grid {
        gap: 40px;
    }

    .contact-section-title {
        font-size: clamp(2.35rem, 10vw, 3.5rem);
    }

    .contact-form__row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .contact-form__field {
        margin-bottom: 23px;
    }

    .contact-form__field input,
    .contact-form__field select,
    .contact-form__field textarea {
        font-size: 16px;
    }

    .contact-form__footer {
        align-items: flex-start;
        flex-direction: column;

        gap: 16px;

        margin-top: 30px;
    }

    .contact-form__footer .button {
        width: 100%;
    }


    .contact-page-map {
        padding: 60px 0;
    }

    .contact-page-map__heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 22px;

        margin-bottom: 26px;
    }

    .contact-page-map__heading h2 {
        font-size: clamp(2.4rem, 11vw, 3.6rem);
    }

    .contact-page-map__address {
        width: 100%;
        min-width: 0;

        padding-left: 18px;
    }

    .contact-page-map__frame {
        height: 320px;
    }
}


/* ============================================================
   13. SMALL MOBILE
   ============================================================ */

@media (max-width: 479px) {

    .contact-hero__title {
        font-size: clamp(2.35rem, 12vw, 3.1rem);
    }

    .contact-form-section {
        padding: 56px 0;
    }

    .contact-page-map {
        padding: 52px 0;
    }

    .contact-page-map__frame {
        height: 280px;
    }

    .contact-form__consent {
        grid-template-columns:
            17px minmax(0, 1fr);

        gap: 10px;
    }
}


/* ============================================================
   14. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .contact-detail strong,
    .contact-form__field input,
    .contact-form__field select,
    .contact-form__field textarea,
    .contact-form__consent a {
        transition: none;
    }
}