/*
 * Contact page stitch layout.
 * Centered message card on the lavender canvas, with the return-home header
 * and the slim Nomadis footer from the contact stitch export.
 * Tokens follow the Nümi wellness stitch (indigo on #fcf8ff).
 */

body.contact-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fcf8ff;
    color: #1b1b23;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 22px;
    -webkit-font-smoothing: antialiased;
}

body.contact-page * {
    box-sizing: border-box;
}

body.contact-page ::selection {
    background: #e1e0ff;
    color: #4648d4;
}

body.contact-page a {
    color: inherit;
    text-decoration: none;
}

body.contact-page .material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 24;
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* ----- Header ----- */

.contact-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.contact-nav-inner {
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (min-width: 640px) {
    .contact-nav-inner {
        padding: 0 1.5rem;
    }
}

.contact-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    flex-shrink: 0;
}

.contact-brand:hover .contact-mark {
    transform: scale(1.05);
}

.contact-mark {
    width: 2.25rem;
    height: 2.25rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(to top right, #4648d4, #8b5cf6);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.contact-mark .material-symbols-outlined {
    font-size: 18px;
    margin-left: 1px;
}

.contact-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-wordmark-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    line-height: 1;
}

.contact-wordmark {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #4648d4;
}

.contact-beta {
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #4648d4;
    background: #f5f3ff;
    border: 1px solid rgba(199, 196, 215, 0.4);
    border-radius: 999px;
    padding: 0.15rem 0.4rem;
}

.contact-tagline {
    margin-top: 0.15rem;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
}

.contact-return {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 18px;
    color: #64748b;
    white-space: nowrap;
    transition: color 0.15s ease, background 0.15s ease;
}

.contact-return .material-symbols-outlined {
    font-size: 16px;
}

.contact-return:hover {
    color: #4648d4;
    background: #f5f3ff;
}

/* ----- Card ----- */

.contact-main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 1rem 3rem;
}

@media (min-width: 640px) {
    .contact-main {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.contact-card {
    width: 100%;
    max-width: 36rem;
    margin-top: auto;
    margin-bottom: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow:
        0 4px 24px -4px rgba(99, 102, 241, 0.08),
        0 2px 8px -1px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.contact-card-head {
    padding: 2rem 1.5rem 1rem;
    text-align: center;
}

@media (min-width: 640px) {
    .contact-card-head {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.contact-mail {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.75rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4648d4;
    background: #f5f3ff;
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06);
}

.contact-mail .material-symbols-outlined {
    font-size: 24px;
}

.contact-card-head h1 {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 36px;
    letter-spacing: -0.02em;
    color: #0f172a;
}

.contact-card-head p {
    max-width: 28rem;
    margin: 0.5rem auto 0;
    color: #64748b;
    font-size: 14px;
    line-height: 22px;
}

.contact-card-body {
    padding: 0.5rem 1.5rem 2rem;
}

@media (min-width: 640px) {
    .contact-card-body {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.contact-section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: #0f172a;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-group label {
    display: block;
    margin-bottom: 0.375rem;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    letter-spacing: 0.01em;
    color: #0f172a;
}

.contact-req {
    color: #f43f5e;
}

.contact-field {
    position: relative;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
    font-family: Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 22px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form select {
    appearance: none;
    padding-right: 2.5rem;
    cursor: pointer;
}

.contact-form textarea {
    resize: vertical;
    min-height: 8.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(100, 116, 139, 0.6);
}

.contact-form select:invalid {
    color: rgba(100, 116, 139, 0.7);
}

.contact-form select option {
    color: #0f172a;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #4648d4;
    box-shadow: 0 0 0 3px rgba(70, 72, 212, 0.2);
}

.contact-chevron {
    position: absolute;
    top: 50%;
    right: 0.85rem;
    transform: translateY(-50%);
    pointer-events: none;
    color: #64748b;
    font-size: 20px;
}

.contact-submit {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 0;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #4648d4;
    color: #fff;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(70, 72, 212, 0.25);
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-submit-icon {
    font-size: 20px;
    transition: transform 0.15s ease;
}

.contact-submit:hover {
    background: #6063ee;
    box-shadow: 0 6px 20px rgba(70, 72, 212, 0.35);
}

.contact-submit:hover .contact-submit-icon {
    transform: translateX(2px);
}

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

.contact-submit:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

.contact-submit.is-busy .contact-submit-icon {
    animation: contact-spin 0.8s linear infinite;
}

.contact-submit:focus-visible,
.contact-return:focus-visible,
.contact-brand:focus-visible,
.contact-footer-links a:focus-visible {
    outline: 2px solid #4648d4;
    outline-offset: 2px;
}

@keyframes contact-spin {
    to {
        transform: rotate(360deg);
    }
}

.form-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    font-size: 13px;
    line-height: 18px;
    text-align: center;
    color: #0f172a;
}

.form-status.is-on {
    display: flex;
}

.form-status.success {
    background: #d1fae5;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.form-status.error {
    background: #ffe4e6;
    border: 1px solid rgba(244, 63, 94, 0.35);
}

.form-status.loading {
    background: #f5f3ff;
    border: 1px solid rgba(70, 72, 212, 0.2);
}

.contact-note {
    margin: 0.5rem 0 0;
    text-align: center;
    font-size: 13px;
    line-height: 18px;
    font-style: italic;
    color: #64748b;
}

/* ----- Footer ----- */

.contact-footer {
    border-top: 1px solid rgba(226, 232, 240, 0.4);
    padding: 1.5rem 1rem;
}

.contact-footer-inner {
    max-width: 64rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 18px;
}

@media (min-width: 640px) {
    .contact-footer-inner {
        flex-direction: row;
        text-align: left;
    }
}

.contact-footer-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-footer-name {
    font-weight: 500;
    color: #0f172a;
}

.contact-version {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    line-height: 1.2;
    color: #767586;
    background: #efecf8;
    border-radius: 0.25rem;
    padding: 0.125rem 0.5rem;
}

.contact-footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.contact-footer-links a {
    color: #64748b;
    transition: color 0.15s ease;
}

.contact-footer-links a:hover,
.contact-footer-links a[aria-current="page"] {
    color: #4648d4;
}

.contact-footer-links a[aria-current="page"] {
    font-weight: 600;
}
