/* ==========================================================
   FFXIVPenumbra.com
   CONTACT PAGE
   Minimal • Clean • Professional • Responsive
   ========================================================== */


/* ==========================================================
   PAGE ROOT
========================================================== */

.contact-page {
    position: relative;
    width: 100%;
    overflow: hidden;

    color: #0b2342;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 55%,
            #f5faff 100%
        );

    font-family:
        "Roboto",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}


.contact-container {
    width: min(
        1080px,
        calc(100% - 48px)
    );

    margin: 0 auto;
}


/* ==========================================================
   HERO
========================================================== */

.contact-hero {
    padding:
        64px 0
        40px;

    text-align: center;
}


.contact-hero-inner {
    max-width: 760px;
}


/* ==========================================================
   HERO KICKER
========================================================== */

.contact-kicker {
    display: inline-block;

    margin-bottom: 13px;

    color: #0b8ef0;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .21em;
}


/* ==========================================================
   HERO TITLE
========================================================== */

.contact-title {
    margin: 0;

    color: #081f3d;

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        clamp(
            46px,
            5vw,
            64px
        );

    line-height: 1.02;

    font-weight: 800;

    letter-spacing: -.045em;
}


.contact-title span {
    color: #0b8ff4;
}


/* ==========================================================
   HERO DESCRIPTION
========================================================== */

.contact-lead {
    max-width: 680px;

    margin:
        17px auto 0;

    color: #566a82;

    font-size: 16.5px;
    line-height: 1.65;

    font-weight: 500;
}


/* ==========================================================
   FORM SECTION
========================================================== */

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


/* ==========================================================
   FORM PANEL
========================================================== */

.contact-form-panel {
    width: 100%;

    padding:
        38px;

    border:
        1px solid
        #d7e7f4;

    border-radius: 17px;

    background:
        rgba(255, 255, 255, .98);

    box-shadow:
        0 18px 50px
        rgba(22, 74, 119, .055);
}


/* ==========================================================
   FORM
========================================================== */

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

    gap: 23px;
}


/* ==========================================================
   TWO COLUMN ROW
========================================================== */

.contact-form-row {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 25px;
}


/* ==========================================================
   FIELD
========================================================== */

.contact-field {
    min-width: 0;
}


.contact-field label {
    display: block;

    margin-bottom: 9px;

    color: #10284a;

    font-size: 13px;
    line-height: 1.2;

    font-weight: 800;
}


.contact-field label span {
    color: #db4054;
}


/* ==========================================================
   INPUT WRAPPER
========================================================== */

.contact-input-wrap {
    position: relative;

    display: grid;

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

    min-height: 57px;

    overflow: hidden;

    border:
        1px solid
        #c9dff1;

    border-radius: 10px;

    background: #ffffff;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


.contact-input-wrap:focus-within {
    border-color: #168fe8;

    box-shadow:
        0 0 0 4px
        rgba(11, 143, 239, .09);
}


/* ==========================================================
   INPUT ICON
========================================================== */

.contact-input-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    border-right:
        1px solid
        #d9e6f1;

    color: #7483ad;

    background:
        #f7fbff;

    font-size: 16px;
}


.contact-input-wrap:focus-within
.contact-input-icon {
    color: #0b8fee;

    background: #eef8ff;
}


/* ==========================================================
   INPUTS / SELECT
========================================================== */

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

    border: 0;
    outline: 0;

    color: #173554;

    background: transparent;

    font-family: inherit;

    font-size: 13.5px;
}


.contact-input-wrap input {
    min-height: 55px;

    padding:
        0 16px;
}


.contact-input-wrap select {
    min-height: 55px;

    padding:
        0 42px
        0 16px;

    cursor: pointer;

    appearance: auto;
}


.contact-input-wrap input::placeholder,
.contact-input-wrap textarea::placeholder {
    color: #8696ac;

    opacity: 1;
}


/* ==========================================================
   TEXTAREA
========================================================== */

.contact-textarea-wrap {
    grid-template-columns:
        56px
        minmax(0, 1fr);

    min-height: 190px;

    align-items: stretch;
}


.contact-textarea-wrap
.contact-input-icon {
    align-items: flex-start;

    padding-top: 21px;
}


.contact-input-wrap textarea {
    min-height: 188px;

    padding:
        18px 18px
        36px;

    line-height: 1.65;

    resize: vertical;
}


/* ==========================================================
   CHARACTER COUNT
========================================================== */

.contact-character-count {
    position: absolute;

    right: 14px;
    bottom: 11px;

    color: #7183a0;

    font-size: 10px;

    font-weight: 600;

    pointer-events: none;
}


/* ==========================================================
   SUBMIT BUTTON
========================================================== */

.contact-submit-button {
    width: fit-content;

    min-width: 205px;
    min-height: 52px;

    padding:
        0 25px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border: 0;

    border-radius: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #149df7,
            #087bea
        );

    box-shadow:
        0 10px 24px
        rgba(6, 124, 226, .18);

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}


.contact-submit-button:hover {
    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #078eed,
            #056ed6
        );

    box-shadow:
        0 14px 28px
        rgba(6, 124, 226, .22);
}


.contact-submit-button:active {
    transform:
        translateY(0);
}


.contact-submit-button i {
    font-size: 14px;
}


/* ==========================================================
   ALERTS
========================================================== */

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

    padding:
        14px 16px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 10px;

    font-size: 12.5px;
    line-height: 1.5;

    font-weight: 700;
}


.contact-alert-success {
    border:
        1px solid
        #bce6d3;

    color: #176d50;

    background: #effbf6;
}


.contact-alert-success i {
    color: #20a66f;
}


.contact-alert-error {
    border:
        1px solid
        #f0c9cf;

    color: #a93d4c;

    background: #fff5f6;
}


.contact-alert-error i {
    color: #d94c60;
}


/* ==========================================================
   HONEYPOT
========================================================== */

.contact-honeypot {
    position: absolute !important;

    left: -9999px !important;
    top: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/* ==========================================================
   FOCUS ACCESSIBILITY
========================================================== */

.contact-submit-button:focus-visible {
    outline:
        3px solid
        rgba(10, 145, 240, .30);

    outline-offset: 3px;
}


/* ==========================================================
   AUTOFILL
========================================================== */

.contact-input-wrap input:-webkit-autofill,
.contact-input-wrap input:-webkit-autofill:hover,
.contact-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color:
        #173554;

    -webkit-box-shadow:
        0 0 0 1000px
        #ffffff
        inset;

    transition:
        background-color
        9999s ease-in-out
        0s;
}


/* ==========================================================
   1366PX DESKTOP
========================================================== */

@media
(min-width: 981px)
and
(max-width: 1400px) {

    .contact-container {
        width:
            min(
                1000px,
                calc(100% - 46px)
            );
    }


    .contact-hero {
        padding:
            52px 0
            32px;
    }


    .contact-title {
        font-size:
            clamp(
                42px,
                4.5vw,
                57px
            );
    }


    .contact-form-panel {
        padding:
            33px;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {

    .contact-container {
        width:
            min(
                760px,
                calc(100% - 36px)
            );
    }


    .contact-hero {
        padding:
            50px 0
            31px;
    }


    .contact-title {
        font-size:
            clamp(
                40px,
                7vw,
                53px
            );
    }


    .contact-form-panel {
        padding:
            30px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 680px) {

    .contact-container {
        width:
            calc(100% - 28px);
    }


    .contact-hero {
        padding:
            39px 0
            27px;
    }


    .contact-title {
        font-size: 37px;
    }


    .contact-lead {
        font-size: 14px;

        line-height: 1.6;
    }


    .contact-form-section {
        padding-bottom: 48px;
    }


    .contact-form-panel {
        padding:
            21px;

        border-radius: 14px;
    }


    .contact-form {
        gap: 19px;
    }


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

        gap: 19px;
    }


    .contact-input-wrap {
        grid-template-columns:
            48px
            minmax(0, 1fr);

        min-height: 54px;
    }


    .contact-input-wrap input,
    .contact-input-wrap select {
        min-height: 52px;

        font-size: 13px;
    }


    .contact-textarea-wrap {
        grid-template-columns:
            48px
            minmax(0, 1fr);

        min-height: 180px;
    }


    .contact-input-wrap textarea {
        min-height: 178px;

        font-size: 13px;
    }


    .contact-submit-button {
        width: 100%;

        min-height: 50px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {

    .contact-title {
        font-size: 33px;
    }


    .contact-form-panel {
        padding:
            17px;
    }


    .contact-input-wrap {
        grid-template-columns:
            44px
            minmax(0, 1fr);
    }


    .contact-textarea-wrap {
        grid-template-columns:
            44px
            minmax(0, 1fr);
    }


    .contact-field label {
        font-size: 12px;
    }

}