:root {
    --contact-green: #69a96d;
    --contact-green-dark: #477c4d;
    --contact-green-soft: #edf7ed;
    --contact-orange: #e5a257;
    --contact-orange-soft: #fff5e8;
    --contact-blue: #6f94bd;
    --contact-blue-soft: #edf4fb;
    --contact-purple: #8e79a8;
    --contact-purple-soft: #f5f0f9;
    --contact-text: #344054;
    --contact-muted: #7c8797;
    --contact-border: #e3e8ee;
    --contact-surface: #ffffff;
    --contact-background: #f5f7f4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.contact-page {
    min-height: 100vh;
    margin: 0;
    color: var(--contact-text);
    background:
        radial-gradient(
            circle at 8% 4%,
            rgba(229, 162, 87, .12),
            transparent 24rem
        ),
        radial-gradient(
            circle at 92% 12%,
            rgba(105, 169, 109, .13),
            transparent 25rem
        ),
        var(--contact-background);
    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.contact-topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid rgba(215, 222, 228, .9);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(16px);
}

.contact-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--contact-text);
    text-decoration: none;
}

.contact-brand-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe3cf;
    border-radius: 14px;
    background: var(--contact-green-soft);
    font-size: 22px;
}

.contact-brand > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-brand strong {
    color: #385f3c;
    font-size: 20px;
    font-weight: 900;
}

.contact-brand small {
    color: var(--contact-muted);
    font-size: 10px;
    font-weight: 700;
}

.contact-topbar-mail {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #d8e5d8;
    border-radius: 11px;
    color: #477b4c;
    background: #f4faf4;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.contact-main {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 60px;
}

.contact-hero {
    min-height: 245px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 30px;
    padding: 38px 44px;
    overflow: hidden;
    border: 1px solid #dce7db;
    border-radius: 26px;
    background:
        linear-gradient(
            120deg,
            rgba(255, 255, 255, .97),
            rgba(238, 248, 236, .95)
        );
    position: relative;
}

.contact-hero::after {
    content: "";
    position: absolute;
    right: -100px;
    bottom: -145px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(229, 162, 87, .13);
}

.contact-hero-copy {
    position: relative;
    z-index: 1;
}

.contact-eyebrow,
.contact-section-heading small,
.contact-support-card > small {
    color: #69906c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
}

.contact-hero h1 {
    max-width: 720px;
    margin: 10px 0 12px;
    color: #304337;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.contact-hero p {
    max-width: 680px;
    margin: 0;
    color: #718078;
    font-size: 15px;
    line-height: 1.7;
}

.contact-hero-art {
    min-height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.contact-hero-art span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(205, 220, 202, .9);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    font-size: 36px;
    transform: rotate(-5deg);
}

.contact-hero-art span:nth-child(2) {
    border-color: #ebd8c1;
    transform: translateY(20px) rotate(5deg);
}

.contact-hero-art span:nth-child(3) {
    border-color: #d8dfea;
    transform: rotate(8deg);
}

.contact-search-card,
.contact-ticket-section,
.contact-faq-section {
    margin-top: 22px;
    padding: 26px;
    border: 1px solid var(--contact-border);
    border-radius: 22px;
    background: var(--contact-surface);
}

.contact-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-section-heading.compact {
    align-items: center;
}

.contact-section-icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce3eb;
    border-radius: 14px;
    background: #f7f9fb;
    font-size: 21px;
}

.contact-section-icon.blue {
    border-color: #d1dfed;
    background: var(--contact-blue-soft);
}

.contact-section-icon.orange {
    border-color: #ecd9c3;
    background: var(--contact-orange-soft);
}

.contact-section-icon.green {
    border-color: #d4e5d4;
    background: var(--contact-green-soft);
}

.contact-section-heading h2,
.contact-support-card h2 {
    margin: 3px 0 5px;
    color: #344054;
    font-size: 20px;
    font-weight: 900;
}

.contact-section-heading p,
.contact-support-card p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.6;
}

.contact-search-form {
    margin-top: 22px;
}

.contact-search-form > label,
.contact-ticket-form label > span {
    display: block;
    margin-bottom: 8px;
    color: #536071;
    font-size: 11px;
    font-weight: 850;
}

.contact-search-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.contact-search-control input,
.contact-ticket-form input,
.contact-ticket-form select,
.contact-ticket-form textarea {
    width: 100%;
    border: 1px solid #dfe4eb;
    border-radius: 12px;
    outline: none;
    color: var(--contact-text);
    background: #fbfcfd;
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background-color .16s ease;
}

.contact-search-control input {
    min-height: 54px;
    padding: 0 17px;
    font-size: 14px;
}

.contact-search-control input:focus,
.contact-ticket-form input:focus,
.contact-ticket-form select:focus,
.contact-ticket-form textarea:focus {
    border-color: #89ad8d;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(105, 169, 109, .11);
}

.contact-search-control button {
    min-width: 150px;
    min-height: 54px;
    padding: 0 20px;
    border: 1px solid #5e9e64;
    border-radius: 12px;
    color: #ffffff;
    background: #69a96d;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.contact-search-control button:disabled,
.contact-form-submit:disabled {
    opacity: .6;
    cursor: wait;
}

.contact-search-help {
    display: block;
    margin-top: 9px;
    color: #8993a1;
    font-size: 10px;
}

.contact-result-status {
    min-height: 20px;
    margin-top: 18px;
    color: var(--contact-muted);
    font-size: 11px;
    font-weight: 750;
}

.contact-result-status.success {
    color: #4d8553;
}

.contact-result-status.error {
    color: #ae4e4e;
}

.contact-result-status.loading {
    color: #657f9a;
}

.contact-result-status.empty {
    padding: 18px;
    border: 1px dashed #dce1e7;
    border-radius: 12px;
    background: #fafbfc;
    text-align: center;
}

.contact-canteen-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-canteen-card {
    min-width: 0;
    padding: 17px;
    border: 1px solid #dfe6dd;
    border-top: 3px solid var(--contact-green);
    border-radius: 16px;
    background: #fcfefc;
}

.contact-canteen-card:nth-child(even) {
    border-top-color: var(--contact-orange);
    background: #fffdf9;
}

.contact-canteen-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contact-canteen-logo {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4e4d4;
    border-radius: 13px;
    background: var(--contact-green-soft);
    font-size: 20px;
}

.contact-canteen-code {
    display: inline-flex;
    margin-bottom: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #54765a;
    background: #edf6ee;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .06em;
}

.contact-canteen-top h3 {
    margin: 0 0 4px;
    color: #344054;
    font-size: 16px;
    font-weight: 900;
}

.contact-canteen-top p {
    margin: 0;
    color: #7f8998;
    font-size: 10px;
}

.contact-canteen-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 15px;
}

.contact-canteen-info > div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px;
    border: 1px solid #eaedf1;
    border-radius: 10px;
    background: #ffffff;
}

.contact-canteen-info p {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
}

.contact-canteen-info small {
    color: #929baa;
    font-size: 8px;
}

.contact-canteen-info strong {
    overflow: hidden;
    color: #4a5667;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-canteen-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.contact-canteen-actions a,
.contact-canteen-actions button {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 11px;
    border: 1px solid #dce2e8;
    border-radius: 9px;
    color: #536275;
    background: #ffffff;
    font-size: 9px;
    font-weight: 850;
    text-decoration: none;
    cursor: pointer;
}

.contact-canteen-actions .whatsapp {
    color: #3e7d48;
    border-color: #cee3d1;
    background: #f0f8f1;
}

.contact-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.contact-support-card {
    min-height: 245px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
    border: 1px solid var(--contact-border);
    border-top: 3px solid var(--contact-purple);
    border-radius: 20px;
    background: #ffffff;
}

.contact-support-card.ticket {
    border-top-color: var(--contact-orange);
}

.contact-support-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 13px;
    border: 1px solid #ded5e7;
    border-radius: 14px;
    background: var(--contact-purple-soft);
    font-size: 21px;
}

.contact-support-card.ticket .contact-support-icon {
    border-color: #ead8c3;
    background: var(--contact-orange-soft);
}

.contact-support-card p {
    margin-bottom: 18px;
}

.contact-action-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
    padding: 0 15px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.contact-action-button.primary {
    border: 1px solid #d58f45;
    color: #ffffff;
    background: var(--contact-orange);
}

.contact-action-button.secondary {
    border: 1px solid #d8cee3;
    color: #6c5785;
    background: var(--contact-purple-soft);
}

.contact-support-email {
    margin-top: 10px;
    color: #778292;
    font-size: 10px;
}

.contact-selected-canteen {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 14px;
    border: 1px solid #d5e5d5;
    border-radius: 12px;
    background: #f2f8f2;
}

.contact-selected-canteen[hidden] {
    display: none;
}

.contact-selected-canteen div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-selected-canteen small {
    color: #849086;
    font-size: 8px;
}

.contact-selected-canteen strong {
    overflow: hidden;
    color: #496c4d;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-selected-canteen button {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #cfdacf;
    border-radius: 8px;
    color: #607464;
    background: #ffffff;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
}

.contact-ticket-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.contact-ticket-form input,
.contact-ticket-form select {
    min-height: 48px;
    padding: 0 13px;
    font-size: 12px;
}

.contact-ticket-form textarea {
    min-height: 125px;
    padding: 13px;
    resize: vertical;
    font-size: 12px;
    line-height: 1.5;
}

.contact-ticket-wide {
    grid-column: 1 / -1;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.contact-form-message {
    min-height: 20px;
    color: var(--contact-muted);
    font-size: 11px;
    font-weight: 750;
}

.contact-form-message.success {
    padding: 12px;
    border: 1px solid #cfe3d0;
    border-radius: 10px;
    color: #42764a;
    background: #eef8ef;
}

.contact-form-message.error {
    padding: 12px;
    border: 1px solid #eccdcd;
    border-radius: 10px;
    color: #a04646;
    background: #fff1f1;
}

.contact-ticket-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.contact-ticket-actions button {
    min-height: 42px;
    padding: 0 17px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    cursor: pointer;
}

.contact-form-cancel {
    border: 1px solid #dfe3e8;
    color: #6d7785;
    background: #ffffff;
}

.contact-form-submit {
    border: 1px solid #5f9e65;
    color: #ffffff;
    background: var(--contact-green);
}

.contact-faq-list {
    display: grid;
    gap: 9px;
    margin-top: 18px;
}

.contact-faq-list details {
    border: 1px solid #e4e8ed;
    border-radius: 12px;
    background: #fbfcfd;
}

.contact-faq-list summary {
    padding: 15px 17px;
    color: #4a5667;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.contact-faq-list p {
    margin: 0;
    padding: 0 17px 16px;
    color: #7c8796;
    font-size: 11px;
    line-height: 1.65;
}

.contact-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    min-height: 80px;
    padding: 18px;
    border-top: 1px solid #dfe4e8;
    color: #89939f;
    background: #ffffff;
    font-size: 10px;
}

.contact-footer strong {
    color: #4d7951;
    font-size: 13px;
}

.contact-footer a {
    color: #6d5d87;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 850px) {

    .contact-hero {
        grid-template-columns: 1fr;
    }

    .contact-hero-art {
        display: none;
    }

    .contact-canteen-grid,
    .contact-support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {

    .contact-topbar {
        min-height: 68px;
        padding: 11px 16px;
    }

    .contact-topbar-mail {
        width: 42px;
        min-width: 42px;
        padding: 0;
        overflow: hidden;
        color: transparent;
        font-size: 0;
    }

    .contact-topbar-mail::before {
        content: "✉️";
        color: #477b4c;
        font-size: 16px;
    }

    .contact-main {
        width: min(100% - 20px, 1180px);
        margin-top: 12px;
    }

    .contact-hero {
        min-height: 220px;
        padding: 28px 22px;
        border-radius: 20px;
    }

    .contact-hero h1 {
        font-size: 32px;
    }

    .contact-search-card,
    .contact-ticket-section,
    .contact-faq-section {
        padding: 18px;
        border-radius: 17px;
    }

    .contact-search-control {
        grid-template-columns: 1fr;
    }

    .contact-search-control button {
        width: 100%;
    }

    .contact-canteen-info,
    .contact-ticket-form {
        grid-template-columns: 1fr;
    }

    .contact-ticket-wide {
        grid-column: auto;
    }

    .contact-ticket-actions {
        flex-direction: column-reverse;
    }

    .contact-ticket-actions button {
        width: 100%;
    }

    .contact-canteen-actions a,
    .contact-canteen-actions button {
        flex: 1 1 calc(50% - 7px);
    }
}
