/*
 * Simple single-card pages: Contact and About (resources/views/frontend/pages/contact.blade.php,
 * about.blade.php).
 *
 * Hand-written like the other public pages: the site's Tailwind bundle is purged from an old
 * build. Same language as List your space and Find spaces: the soft blue/teal wash, Plus
 * Jakarta Sans headings, one raised white card, light-filled fields.
 */

.ct {
    --ct-ink: #0f172a;
    --ct-ink-2: #334155;
    --ct-muted: #64748b;
    --ct-brand: #2563eb;
    --ct-brand-ink: #1d4ed8;
    --ct-ease: cubic-bezier(0.16, 1, 0.3, 1);

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background:
        radial-gradient(55% 45% at 10% 0%, rgba(37, 99, 235, 0.11), rgba(37, 99, 235, 0) 60%),
        radial-gradient(45% 40% at 90% 8%, rgba(13, 148, 136, 0.1), rgba(13, 148, 136, 0) 60%),
        linear-gradient(180deg, #f5f9ff 0%, #ffffff 520px);
    color: var(--ct-ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.ct-main {
    flex: 1;
    padding: 136px 0 96px;
}

.ct-wrap {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.ct-title {
    margin: 0 0 2rem;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: var(--type-title);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-align: center;
    animation: ct-rise 0.6s var(--ct-ease) both;
}

.ct-card {
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius-xl, 24px);
    background: #fff;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 30px 60px -28px rgba(15, 23, 42, 0.28);
    animation: ct-rise 0.6s var(--ct-ease) 0.08s both;
}

.ct-wrap--wide {
    max-width: 48rem;
}

/* A short statement in the card, set large. */
.ct-lead {
    margin: 0;
    color: var(--ct-ink-2);
    font-size: var(--type-lead);
    line-height: 1.65;
    text-align: center;
    text-wrap: pretty;
}

.ct-card--lead {
    padding: 2.5rem;
}

.ct-form {
    display: grid;
    gap: 1.25rem;
}

.ct-field {
    display: grid;
    gap: 0.5rem;
}

.ct-label {
    color: var(--ct-ink-2);
    font-size: var(--type-small);
    font-weight: 600;
}

.ct-input {
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md, 14px);
    background: #f1f5f9;
    color: var(--ct-ink);
    font: 400 var(--type-ui)/1.5 'Inter', system-ui, sans-serif;
    box-sizing: border-box;
    transition: background-color 0.2s var(--ct-ease), border-color 0.2s var(--ct-ease), box-shadow 0.2s var(--ct-ease);
}

.ct-input--area {
    height: auto;
    min-height: 9.5rem;
    padding: 0.75rem 1rem;
    resize: vertical;
}

.ct-input:hover {
    background: #e9eef5;
}

.ct-input:focus {
    border-color: var(--ct-brand);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.ct-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 3.25rem;
    margin-top: 0.25rem;
    border: 0;
    border-radius: var(--radius-full, 9999px);
    background: linear-gradient(180deg, #3b82f6, #2563eb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 22px -10px rgba(37, 99, 235, 0.8);
    color: #fff;
    font: 600 var(--type-ui)/1 'Inter', system-ui, sans-serif;
    cursor: pointer;
    transition: filter 0.2s var(--ct-ease), transform 0.1s ease-out;
}

.ct-submit svg {
    width: 17px;
    height: 17px;
    transition: transform 0.2s var(--ct-ease);
}

.ct-submit:hover {
    filter: brightness(1.06);
}

.ct-submit:hover svg {
    transform: translateX(3px);
}

.ct-submit:active {
    transform: scale(0.98);
}

.ct-submit:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

@keyframes ct-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
}

@media (max-width: 639px) {
    .ct-main {
        padding: 104px 0 64px;
    }

    .ct-title {
        margin-bottom: 1.5rem;
    }

    .ct-card,
    .ct-card--lead {
        padding: 1.25rem;
        border-radius: var(--radius-lg, 20px);
    }

    /* 16px keeps iOS from zooming in on focus. */
    .ct-input {
        font-size: var(--type-body);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ct-title,
    .ct-card {
        animation: none;
    }

    .ct-submit,
    .ct-submit svg,
    .ct-input {
        transition: none;
    }
}
