/* Jupoma Kontaktformular */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter+Tight:wght@400;500;600;700&display=swap');

@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype-variations"),
         url("fonts/JetBrainsMono-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("fonts/JetBrainsMono-Italic-VariableFont_wght.ttf") format("truetype-variations"),
         url("fonts/JetBrainsMono-Italic-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 800;
    font-style: italic;
    font-display: swap;
}

.jupoma-contact-form-container,
.jupoma-contact-form-container * {
    box-sizing: border-box;
}

.jupoma-contact-form-container {
    --paper: #f4efe4;
    --linen: #ece6d8;
    --field: #fffaf2;
    --sand: #d8cfba;
    --gravel: #8c8070;
    --soil: #3a3228;
    --ink: #1a160f;
    --amber: #d97706;
    --toast: #b45e00;
    --moss: #3a6349;
    --moss-soft: #d4edd9;
    --brick: #9a2e1e;
    --brick-soft: #f5d4cf;
    --rule: rgba(26, 22, 15, .12);
    --rule-md: rgba(26, 22, 15, .2);
    --rule-strong: rgba(26, 22, 15, .34);
    --font-display: "Space Grotesk", "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(.2, .8, .2, 1);

    max-width: 1040px;
    margin: 32px auto;
    padding: 31px;
    color: var(--soil);
    background-color: var(--paper);
    background-image:
        linear-gradient(var(--rule) 1px, transparent 1px),
        linear-gradient(90deg, var(--rule) 1px, transparent 1px);
    background-size: 32px 32px;
    border: 1px solid var(--rule-md);
    border-radius: 0;
    box-shadow: none;
    font-family: var(--font-sans);
    line-height: 1.55;
}

.jupoma-contact-header {
    padding-bottom: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--rule-strong);
}

.jupoma-contact-kicker,
.jupoma-contact-section-head span,
.jupoma-topic-card,
.jupoma-field-group label,
.jupoma-field-hint,
.jupoma-result-label,
.jupoma-contact-button,
.jupoma-contact-result a,
.jupoma-faq-item a,
.jupoma-contact-inline-action {
    font-family: var(--font-mono);
}

.jupoma-contact-kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--toast);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.jupoma-contact-header h2,
.jupoma-contact-section-head h3,
.jupoma-contact-result h4,
.jupoma-faq-item h4 {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    letter-spacing: 0;
}

.jupoma-contact-header h2 {
    max-width: 760px;
    margin-bottom: 10px;
    font-size: clamp(34px, 6vw, 58px);
    font-weight: 700;
    line-height: .98;
}

.jupoma-contact-header p {
    max-width: 62ch;
    margin: 0;
    color: var(--soil);
    font-size: 16px;
}

.jupoma-contact-form {
    display: grid;
    gap: 24px;
}

.jupoma-contact-section {
    padding: 23px;
    background: rgba(236, 230, 216, .96);
    border: 1px solid var(--rule-md);
}

.jupoma-contact-section[hidden],
.jupoma-contact-honeypot,
.jupoma-faq-item[hidden] {
    display: none !important;
}

.jupoma-contact-section-head {
    display: flex;
    gap: 14px;
    align-items: baseline;
    margin-bottom: 20px;
}

.jupoma-contact-section-head span {
    color: var(--toast);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
}

.jupoma-contact-section-head h3 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.14;
}

.jupoma-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--rule-md);
    background: var(--paper);
}

.jupoma-topic-card {
    position: relative;
    min-height: 64px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-right: 1px solid var(--rule-md);
    border-bottom: 1px solid var(--rule-md);
    color: var(--ink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.35;
    text-transform: uppercase;
    transition: background-color 120ms var(--ease), color 120ms var(--ease);
}

.jupoma-topic-card:nth-child(3n) {
    border-right: 0;
}

.jupoma-topic-card:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.jupoma-topic-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.jupoma-topic-card:has(input:checked),
.jupoma-topic-card.is-selected {
    background: var(--ink);
    color: var(--paper);
}

.jupoma-topic-card:has(input:focus-visible) {
    outline: 2px solid var(--amber);
    outline-offset: 2px;
}

.jupoma-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

.jupoma-field-group {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    align-content: start;
}

.jupoma-field-group:last-child {
    margin-bottom: 0;
}

.jupoma-field-group label {
    color: var(--gravel);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: none;
}

.jupoma-field-group input,
.jupoma-field-group textarea {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 12px 13px;
    border: 1px solid var(--rule-strong);
    border-radius: 0;
    background: var(--field);
    color: var(--ink);
    font: inherit;
    line-height: 1.45;
}

.jupoma-field-group textarea {
    min-height: 160px;
    resize: vertical;
}

.jupoma-file-field {
    padding: 15px;
    border: 1px solid var(--rule-md);
    background: rgba(244, 239, 228, .72);
}

.jupoma-file-field input[type="file"] {
    min-height: 48px;
    background: var(--field);
    color: var(--soil);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.jupoma-file-field input[type="file"]::file-selector-button {
    min-height: 32px;
    margin: 0 12px 0 0;
    padding: 8px 12px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jupoma-file-field input[type="file"]::-webkit-file-upload-button {
    min-height: 32px;
    margin: 0 12px 0 0;
    padding: 8px 12px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.jupoma-field-group input:focus,
.jupoma-field-group textarea:focus {
    border-color: var(--toast);
    outline: 2px solid rgba(217, 119, 6, .18);
    outline-offset: 0;
}

.jupoma-field-hint {
    margin: -2px 0 0;
    color: var(--gravel);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.jupoma-privacy-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0 0 20px;
    color: var(--soil);
    font-size: 14px;
    line-height: 1.45;
}

.jupoma-privacy-field input {
    width: 16px;
    height: 16px;
    margin: 3px 0 0;
    accent-color: var(--ink);
}

.jupoma-privacy-field a {
    color: var(--ink);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.jupoma-contact-result {
    padding: 18px;
    border: 1px solid var(--rule-md);
    background: var(--paper);
}

.jupoma-contact-result.is-match {
    border-color: var(--moss);
    background: var(--moss-soft);
}

.jupoma-contact-result.is-miss {
    border-color: var(--brick);
    background: var(--brick-soft);
}

.jupoma-result-label {
    display: block;
    margin-bottom: 8px;
    color: var(--toast);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.jupoma-contact-result h4 {
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 600;
}

.jupoma-contact-result p {
    margin: 0;
}

.jupoma-contact-result a,
.jupoma-faq-item a {
    display: inline-flex;
    margin-top: 14px;
    color: var(--ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.jupoma-contact-inline-action {
    display: block;
    width: max-content;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.jupoma-faq-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--rule-md);
    background: var(--paper);
}

.jupoma-faq-item {
    padding: 18px;
    border-right: 1px solid var(--rule-md);
    border-bottom: 1px solid var(--rule-md);
}

.jupoma-faq-item:nth-child(2n) {
    border-right: 0;
}

.jupoma-faq-item h4 {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.jupoma-faq-item p {
    margin: 0;
    color: var(--soil);
}

.jupoma-contact-button {
    min-height: 48px;
    padding: 14px 20px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
    transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}

.jupoma-contact-button:hover,
.jupoma-contact-button:focus-visible {
    background: var(--toast);
    border-color: var(--toast);
}

.jupoma-contact-button:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}

.jupoma-contact-notice {
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid var(--rule-md);
    background: var(--paper);
}

.jupoma-contact-notice strong {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 20px;
}

.jupoma-contact-notice p,
.jupoma-contact-notice ul {
    margin: 0;
}

.jupoma-contact-notice ul {
    padding-left: 18px;
}

.jupoma-contact-success {
    border-color: var(--moss);
    background: var(--moss-soft);
}

.jupoma-contact-error {
    border-color: var(--brick);
    background: var(--brick-soft);
}

@media (max-width: 820px) {
    .jupoma-contact-form-container {
        margin: 20px 0;
        padding: 19px;
    }

    .jupoma-topic-grid,
    .jupoma-contact-grid,
    .jupoma-faq-list {
        grid-template-columns: 1fr;
    }

    .jupoma-topic-card,
    .jupoma-topic-card:nth-child(3n),
    .jupoma-topic-card:nth-last-child(-n + 3),
    .jupoma-faq-item,
    .jupoma-faq-item:nth-child(2n) {
        border-right: 0;
        border-bottom: 1px solid var(--rule-md);
    }

    .jupoma-topic-card:last-child,
    .jupoma-faq-item:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .jupoma-contact-form-container,
    .jupoma-contact-section {
        padding: 15px;
    }
}
