/* =========================================================
   Contact Page - Prism in the Space
========================================================= */


/* =========================================================
   1. Contact Shell
========================================================= */

.page-contact-shell {
    position: relative;
    z-index: 10;

    min-height: 100vh;

    padding: 112px 0 120px;
}

.contact-container {
    width: min(920px, calc(100vw - 72px));
    margin: 0 auto;
}


/* =========================================================
   2. Contact Header
========================================================= */

.contact-header {
    margin-bottom: 48px;
}

.contact-header__en {
    display: inline-flex;
    align-items: center;
    gap: 18px;

    margin: 0 0 18px;

    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.24em;
    line-height: 1.4;

    color: rgba(255, 220, 150, 0.72);

    text-transform: uppercase;
}

.contact-header__en::after {
    content: "";

    display: block;

    width: 96px;
    height: 1px;

    background:
        linear-gradient(
            to right,
            currentColor,
            transparent
        );

    opacity: 0.6;
}

.contact-header__title {
    margin: 0;

    font-size: clamp(42px, 5vw, 82px);
    line-height: 1.05;
    letter-spacing: 0.04em;

    color: rgba(235, 242, 255, 0.78);
}


/* =========================================================
   3. Contact Lead
========================================================= */

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

    margin-bottom: 56px;

    color: rgba(235, 242, 255, 0.76);
}

.contact-lead p {
    margin: 0 0 1.5em;

    font-size: 0.98rem;
    line-height: 2.05;
    letter-spacing: 0.05em;
}

.contact-lead p:last-child {
    margin-bottom: 0;

    color: rgba(255, 220, 150, 0.76);
}


/* =========================================================
   4. Form Wrap
========================================================= */

.contact-form-wrap {
    position: relative;

    padding: 48px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 20, 52, 0.46),
            rgba(0, 9, 28, 0.72)
        );

    border: 1px solid rgba(0, 242, 255, 0.18);

    box-shadow:
        0 0 28px rgba(0, 242, 255, 0.1),
        inset 0 0 28px rgba(0, 242, 255, 0.05);
}

.contact-form-wrap::before {
    content: "";

    position: absolute;
    inset: 14px;

    border: 1px solid rgba(255, 220, 150, 0.08);

    pointer-events: none;
}


/* =========================================================
   5. Comm Form Base
========================================================= */

.tpocs-comm-form {
    position: relative;
    z-index: 2;
}

.tpocs-comm-form__message {
    margin-bottom: 28px;
    padding: 16px 18px;

    font-size: 0.88rem;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

.tpocs-comm-form__message--success {
    color: rgba(210, 255, 235, 0.88);
    border: 1px solid rgba(80, 255, 190, 0.24);
    background: rgba(0, 80, 56, 0.18);
}

.tpocs-comm-form__message--error {
    color: rgba(255, 210, 210, 0.9);
    border: 1px solid rgba(255, 90, 90, 0.24);
    background: rgba(120, 0, 24, 0.18);
}

.tpocs-comm-form__body {
    display: grid;
    gap: 24px;
}

.tpocs-comm-form__field {
    margin: 0;
}

.tpocs-comm-form__field label {
    display: block;

    margin-bottom: 10px;

    font-family: var(--font-display);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    line-height: 1.4;

    color: rgba(255, 220, 150, 0.76);
}

.tpocs-comm-form__field label span {
    margin-left: 8px;

    font-size: 0.68rem;
    letter-spacing: 0.12em;

    color: rgba(0, 242, 255, 0.68);
}

.tpocs-comm-form__field input,
.tpocs-comm-form__field select,
.tpocs-comm-form__field textarea {
    width: 100%;
    box-sizing: border-box;

    padding: 14px 16px;

    color: rgba(245, 250, 255, 0.9);
    background: rgba(0, 8, 24, 0.56);

    border: 1px solid rgba(0, 242, 255, 0.18);
    border-radius: 0;

    font-size: 0.95rem;
    line-height: 1.7;
    letter-spacing: 0.04em;

    outline: none;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.tpocs-comm-form__field textarea {
    resize: vertical;
    min-height: 180px;
}

.tpocs-comm-form__field input:focus,
.tpocs-comm-form__field select:focus,
.tpocs-comm-form__field textarea:focus {
    background: rgba(0, 14, 38, 0.72);
    border-color: rgba(255, 220, 150, 0.42);

    box-shadow:
        0 0 14px rgba(0, 242, 255, 0.12),
        0 0 28px rgba(255, 220, 150, 0.08);
}


/* =========================================================
   6. Comm Form Notice / Privacy Link
========================================================= */

.tpocs-comm-form__notice {
    margin: 8px 0 0;
    padding: 18px 20px;

    color: rgba(255, 220, 150, 0.78);
    background: rgba(197, 160, 89, 0.08);

    border: 1px solid rgba(255, 220, 150, 0.16);
}

.tpocs-comm-form__notice p {
    margin: 0;

    font-size: 0.82rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.tpocs-comm-form__agree {
    margin: 8px 0 0;

    color: rgba(235, 242, 255, 0.72);

    font-size: 0.82rem;
    line-height: 1.8;
    letter-spacing: 0.04em;
}

.tpocs-comm-form__agree label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.tpocs-comm-form__agree input {
    margin-top: 0.45em;
}

.tpocs-comm-form__agree span {
    display: inline-block;
}

.tpocs-comm-form__agree a {
    color: rgba(0, 242, 255, 0.78);
    text-decoration: none;

    border-bottom: 1px solid rgba(0, 242, 255, 0.34);

    transition:
        opacity 0.3s ease,
        border-color 0.3s ease;
}

.tpocs-comm-form__agree a:hover {
    opacity: 0.76;
    border-color: rgba(255, 220, 150, 0.42);
}


/* =========================================================
   7. Submit
========================================================= */

.tpocs-comm-form__submit {
    margin: 16px 0 0;
}

.tpocs-comm-form__submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 220px;
    min-height: 54px;

    padding: 0 32px;

    color: rgba(255, 245, 220, 0.92);
    background:
        linear-gradient(
            135deg,
            rgba(197, 160, 89, 0.22),
            rgba(0, 242, 255, 0.08)
        );

    border: 1px solid rgba(255, 220, 150, 0.36);
    border-radius: 0;

    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.18em;

    cursor: pointer;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        background 0.3s ease;
}

.tpocs-comm-form__submit button:hover {
    opacity: 0.88;

    transform: translateY(-2px);

    border-color: rgba(0, 242, 255, 0.42);

    box-shadow:
        0 0 18px rgba(0, 242, 255, 0.16),
        0 0 34px rgba(197, 160, 89, 0.12);
}

.tpocs-comm-form__submit button:disabled,
.tpocs-comm-form__submit button.is-disabled {
    opacity: 0.34;
    cursor: not-allowed;

    transform: none;

    color: rgba(235, 242, 255, 0.42);
    background: rgba(255, 255, 255, 0.04);

    border-color: rgba(255, 255, 255, 0.14);

    box-shadow: none;
}

.tpocs-comm-form__submit button:disabled:hover,
.tpocs-comm-form__submit button.is-disabled:hover {
    opacity: 0.34;

    transform: none;

    border-color: rgba(255, 255, 255, 0.14);

    box-shadow: none;
}

.tpocs-comm-form__submit button.is-sending {
    opacity: 0.56;
    cursor: wait;

    color: rgba(255, 245, 220, 0.72);
    background:
        linear-gradient(
            135deg,
            rgba(197, 160, 89, 0.14),
            rgba(0, 242, 255, 0.08)
        );

    border-color: rgba(0, 242, 255, 0.22);

    box-shadow:
        0 0 14px rgba(0, 242, 255, 0.08);
}


/* =========================================================
   8. Responsive
========================================================= */

@media (max-width: 768px) {
    .page-contact-shell {
        padding: 88px 0 96px;
    }

    .contact-container {
        width: calc(100vw - 32px);
    }

    .contact-header {
        margin-bottom: 38px;
    }

    .contact-header__en {
        gap: 12px;

        font-size: 0.72rem;
        letter-spacing: 0.2em;
    }

    .contact-header__en::after {
        width: 54px;
    }

    .contact-header__title {
        font-size: clamp(36px, 11vw, 54px);
    }

    .contact-lead {
        margin-bottom: 42px;
    }

    .contact-lead p {
        font-size: 0.9rem;
        line-height: 1.95;
    }

    .contact-form-wrap {
        padding: 34px 20px;
    }

    .contact-form-wrap::before {
        inset: 10px;
    }

    .tpocs-comm-form__body {
        gap: 22px;
    }

    .tpocs-comm-form__field input,
    .tpocs-comm-form__field select,
    .tpocs-comm-form__field textarea {
        padding: 13px 14px;

        font-size: 0.9rem;
    }

    .tpocs-comm-form__notice {
        padding: 16px 16px;
    }

    .tpocs-comm-form__notice p {
        font-size: 0.78rem;
        line-height: 1.75;
    }

    .tpocs-comm-form__agree {
        font-size: 0.78rem;
        line-height: 1.75;
    }

    .tpocs-comm-form__submit button {
        width: 100%;
        min-width: 0;
    }
}
