:root {
    --brand-red: #E40523;
    --brand-dark: #262836;
    --brand-medium: #4E546D;
    --brand-ice: #DFE6F6;
    --brand-black: #1D1D1B;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--brand-black);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", system-ui, sans-serif;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.75;
}

button, input, select, textarea, a {
    transition: all .2s ease;
}

:focus-visible {
    outline: 2px solid var(--brand-dark);
    outline-offset: 2px;
}

::selection {
    background-color: rgba(228, 5, 35, .15);
    color: var(--brand-black);
}

.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, white 1px, transparent 0);
    background-size: 40px 40px;
}

.form-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: flex;
}

.field-error {
    border-color: var(--brand-red) !important;
    box-shadow: 0 0 0 3px rgba(228, 5, 35, .1);
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .75s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
