/* /assets/css/trap.css */

body.page--trap {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--trap .site-shell {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    align-items: start;
}

body.page--trap .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--trap .site-footer {
    min-height: auto;
    height: auto;
}

.trap-page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) 0 clamp(2rem, 5vw, 4rem);
}

.trap-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(38, 74, 46, 0.22);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 250, 239, 0.94), rgba(241, 232, 211, 0.96)),
        url("/assets/images/container5.png") center center / cover no-repeat;
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.18);
    padding: clamp(1.1rem, 3vw, 2rem);
}

.trap-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(246, 240, 226, 0.72);
    pointer-events: none;
}

.trap-panel > * {
    position: relative;
    z-index: 1;
}

.trap-panel__header {
    max-width: 760px;
    margin-bottom: 1.35rem;
}

.trap-panel__eyebrow {
    margin: 0 0 0.45rem;
    color: var(--color-primary);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.trap-panel h1 {
    margin: 0;
    color: var(--color-primary);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.15rem, 5vw, 3.65rem);
    line-height: 0.98;
}

.trap-panel__header p {
    max-width: 720px;
    margin: 0.8rem 0 0;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.trap-alert {
    margin: 0 0 1rem;
    border-radius: 14px;
    padding: 0.9rem 1rem;
    font-weight: 800;
}

.trap-alert--success {
    border: 1px solid rgba(38, 74, 46, 0.24);
    background: rgba(221, 244, 224, 0.92);
    color: #1d5f28;
}

.trap-alert--error {
    border: 1px solid rgba(128, 35, 35, 0.22);
    background: rgba(255, 228, 226, 0.94);
    color: #8a2424;
}

.trap-form {
    display: grid;
    gap: 1.1rem;
}

.trap-form__company {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.trap-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.trap-form label {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.trap-form label span {
    color: var(--color-primary);
    font-size: 0.92rem;
    font-weight: 800;
}

.trap-form input,
.trap-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(38, 74, 46, 0.22);
    border-radius: 12px;
    background: rgba(255, 252, 244, 0.94);
    color: var(--color-text);
    padding: 0.82rem 0.9rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transition: border-color 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.trap-form textarea {
    resize: vertical;
}

.trap-form input:focus,
.trap-form textarea:focus {
    border-color: rgba(185, 146, 31, 0.82);
    background: #fffdf6;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.74),
        0 0 0 3px rgba(185, 146, 31, 0.18);
}

.trap-form__wide {
    grid-column: 1 / -1;
}

.trap-recaptcha {
    min-height: 78px;
}

.trap-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: min(100%, 360px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9px;
    background: rgba(12, 14, 15, 0.78);
    color: #f5ead7;
    cursor: pointer;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 22px rgba(0, 0, 0, 0.22);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.trap-submit:hover,
.trap-submit:focus-visible {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(20, 23, 24, 0.92);
    color: #ffffff;
    transform: translateY(-1px);
}

@media (max-width: 760px) {
    .trap-form__grid {
        grid-template-columns: 1fr;
    }

    .trap-submit {
        width: 100%;
    }
}

/* Page flow/footer correction */

body.page--trap {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--trap .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--trap .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--trap .site-footer {
    min-height: auto;
    height: auto;
}
