:root {
    --brand-primary: var(--mud-palette-primary);
    --brand-secondary: var(--mud-palette-secondary);
}

body, html {
    background: var(--mud-palette-background);
}

.form-layout-main {
    padding: 32px 0 64px;
}

.form-container {
    margin-bottom: 32px;
}

.site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.site-header {
    background: var(--mud-palette-surface);
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.site-header-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 72px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-logo {
    max-height: 48px;
    max-width: 240px;
}

.site-brand-text {
    color: var(--brand-primary);
    font-size: 1.35rem;
    font-weight: 500;
}

.site-hero {
    --site-hero-gradient: linear-gradient(90deg, color-mix(in srgb, var(--brand-primary) 94%, transparent), color-mix(in srgb, var(--brand-primary) 60%, transparent));
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-color: var(--brand-primary);
    background-image: var(--site-hero-gradient), var(--site-hero-image, none);
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 40px 0;
}

.site-hero-slides {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.site-hero-slides::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--site-hero-gradient);
}

.site-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: var(--site-hero-animation) var(--site-hero-cycle) linear var(--site-hero-delay) infinite;
}

.site-hero-slide:first-child {
    opacity: 1;
}

.site-hero-pause-input:checked ~ .site-hero-slides .site-hero-slide {
    animation-play-state: paused;
}

.site-hero-pause {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
}

.site-hero-pause:hover {
    background: rgba(0, 0, 0, 0.6);
}

.site-hero-pause svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.site-hero-pause-play,
.site-hero-pause-input:checked ~ .site-hero-pause .site-hero-pause-stop {
    display: none;
}

.site-hero-pause-input:checked ~ .site-hero-pause .site-hero-pause-play {
    display: block;
}

.site-hero-pause-input:focus-visible ~ .site-hero-pause {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .site-hero-slide {
        animation: none;
    }

    .site-hero-pause,
    .site-hero-pause-input {
        display: none;
    }
}

.site-hero-tagline {
    margin-top: 8px;
    opacity: 0.9;
}

.site-partners {
    background: color-mix(in srgb, var(--brand-primary) 5%, var(--mud-palette-surface));
    padding: 48px 0;
}

.site-partner-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 32px 48px;
}

.site-partner-logo {
    max-height: 72px;
    max-width: 220px;
}

.site-footer {
    background: var(--brand-primary);
    color: #fff;
    padding: 40px 0 24px;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
}

.site-footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 16px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.simple-text {
    max-width: 75ch;
}

.simple-text ul {
    list-style: disc;
    padding-left: 1.5rem;
}

@media (max-width: 599px) {
    .site-hero {
        padding: 24px 0;
    }

    .site-hero-slideshow {
        padding-bottom: 56px;
    }

    .form-layout-main {
        padding-top: 16px;
    }
}

.outdated-row {
    background-color: rgba(255, 0, 0, 0.08);
}

/*WebApp Styling*/
.outlined-box {
    padding: 4px 16px;
    border-radius: var(--mud-default-borderradius);
    border: 2px solid var(--brand-secondary);
    display: inline-block;
}

.big-btn {
    min-height: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 15px;
}

.record-table-btn {
    min-height: 40px;
    padding: 0 12px;
    white-space: nowrap;
}

.record-table-btn .mud-button-label {
    white-space: nowrap;
}

.field-like-btn {
    height: 56px;
    font-size: 0.9rem;
    margin-top: 4px;
    font-weight: 600;
    border-width: 1px !important;
}

.thicker-boder-textfield {
    max-width: 150px;
}

.big-radio-btn {
    border-radius: var(--mud-default-borderradius) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-height: 80px;
    font-size: 1.2rem;
    padding: 0;
    background: transparent !important;
}

.mud-step-label {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.mud-color-primary {
    color: var(--mud-palette-primary) !important;
}

.mud-color-secondary {
    color: var(--mud-palette-secondary) !important;
}

.mud-backgroundcolor-primary {
    background-color: var(--mud-palette-primary) !important;
}

.mud-backgroundcolor-secondary {
    background-color: var(--mud-palette-secondary) !important;
}

.mud-backgroundcolor-error {
    background-color: var(--mud-palette-error) !important;
}

.my-progress-gradient .mud-progress-linear-bar {
    background: linear-gradient(90deg, var(--brand-secondary) 0%, var(--brand-primary) 100%);
}

@media (max-width: 959px) {
    .mud-typography-h3 {
        font-size: 2rem;
    }

    .mud-typography-h4 {
        font-size: 1.75rem;
    }

    .mud-typography-h5 {
        font-size: 1.25rem;
    }

    .mud-typography-h6 {
        font-size: 1.05rem;
    }

    .mud-typography-subtitle2 {
        font-size: 1rem;
    }
}

.map-pin {
    background: none;
    border: none;
}
