@font-face {
    font-family: 'EB Garamond';
    src: url("../../fonts/EBGaramond-VariableFont_wght.1c2afe8dc74d.ttf") format('truetype');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crimson Text';
    src: url("../../fonts/CrimsonText-Regular.c8eaeb3ab46e.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Crimson Text';
    src: url("../../fonts/CrimsonText-Bold.92e8dfc1d9c8.ttf") format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body.support-page {
    margin: 0;
    min-height: 100%;
}

body.support-page {
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    color: #0c1f3d;
    background: #E0F2F1;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
}

.support-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    color: #0c1f3d;
}

.support-brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.support-brand-name {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.support-header-link {
    color: #0c1f3d;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
}

.support-header-link:hover {
    background: rgba(12, 31, 61, 0.06);
}

.support-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0.5rem 1.25rem 2.5rem;
}

.support-card {
    width: 100%;
    max-width: 36rem;
    background: #fff;
    color: #1a1a1a;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 8px 40px rgba(0, 0, 0, 0.18),
        0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 2rem 1.75rem 1.75rem;
}

.support-title {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-size: 2.35rem;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 0.45rem;
    color: #0c1f3d;
}

.support-lead {
    margin: 0 0 1.5rem;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #4a5568;
}

.support-lead a {
    color: #0c1f3d;
}

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

.support-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.support-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.support-field label {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a1a1a;
}

.support-input {
    width: 100%;
    font-family: inherit;
    font-size: 1.05rem;
    color: #1a1a1a;
    background: #f8fafc;
    border: 1px solid rgba(12, 31, 61, 0.16);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    appearance: none;
}

.support-select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%230c1f3d' d='M1 1.5l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.2rem;
}

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

.support-input:focus {
    outline: none;
    border-color: #16365c;
    box-shadow: 0 0 0 3px rgba(22, 54, 92, 0.16);
    background: #fff;
}

.support-field-error,
.support-errors {
    color: #b91c1c;
    font-size: 0.98rem;
    margin: 0;
}

.support-submit {
    position: relative;
    overflow: visible;
    margin-top: 0.35rem;
    align-self: flex-start;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.28);
    border-radius: 50px;
    padding: 0.75rem 1.8rem;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

.support-burst-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    animation: support-burst 0.4s ease-out forwards;
}

@keyframes support-burst {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--burst-x), var(--burst-y)) scale(0.2);
        opacity: 0;
    }
}

.support-submit:hover {
    background: #b91c1c;
}

.support-submit:active {
    transform: scale(0.97);
}

.support-thanks {
    background: #E0F2F1;
    border-radius: 12px;
    padding: 1.15rem 1.2rem;
    text-align: center;
}

.checkmark-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #28a745;
    animation: checkmark-fill 0.4s ease-in-out 0.4s forwards, checkmark-scale 0.3s ease-in-out 0.9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #28a745;
    fill: none;
    animation: checkmark-circle-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-path {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    stroke-width: 3;
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    animation: checkmark-path-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmark-circle-stroke {
    0% { stroke-dashoffset: 166; }
    100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-path-stroke {
    0% { stroke-dashoffset: 48; }
    100% { stroke-dashoffset: 0; }
}

@keyframes checkmark-scale {
    0%, 100% { transform: none; }
    50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes checkmark-fill {
    100% { box-shadow: inset 0px 0px 0px 30px #28a745; }
}

@media (prefers-reduced-motion: reduce) {
    .support-burst-dot {
        animation: none;
        display: none;
    }

    .checkmark,
    .checkmark-circle,
    .checkmark-path {
        animation: none;
    }

    .checkmark {
        box-shadow: inset 0px 0px 0px 30px #28a745;
    }

    .checkmark-circle,
    .checkmark-path {
        stroke-dashoffset: 0;
    }
}

.support-thanks-title {
    font-family: 'Crimson Text', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: #0c1f3d;
}

.support-thanks p {
    margin: 0;
    color: #334155;
    font-size: 1.1rem;
}

.support-footer {
    padding: 0 1.5rem 1.6rem;
    text-align: center;
    color: rgba(12, 31, 61, 0.65);
    font-size: 1.05rem;
}

.support-footer a {
    color: #0c1f3d;
    text-decoration: none;
}

.support-footer a:hover {
    text-decoration: underline;
}

.support-footer span {
    margin: 0 0.45rem;
}

.support-honeypot-wrap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .support-card {
        padding: 1.5rem 1.15rem 1.25rem;
    }

    .support-title {
        font-size: 2rem;
    }

    .support-field-row {
        grid-template-columns: 1fr;
    }

    .support-submit {
        width: 100%;
        text-align: center;
    }
}
