:root {
    --yellow: #ffd200;
    --black: #111111;
    --ink: #202020;
    --muted: #6f747b;
    --line: #dedede;
    --surface: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.76)),
        url("https://hk-slavijajr.si/wp-content/uploads/2026/01/HK-Slavija-SPLETNA-STRAN-banner-1910x700-2026.jpg");
    background-position: center;
    background-size: cover;
}

.app-shell {
    width: min(100% - 32px, 760px);
    min-height: 100vh;
    display: grid;
    align-items: center;
    margin: 0 auto;
    padding: 32px 0;
}

.panel {
    background: var(--surface);
    border-top: 8px solid var(--yellow);
    border-radius: 8px;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
    overflow: visible;
}

.brand {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 28px;
    background: var(--black);
    color: #ffffff;
}

.brand p,
.brand h1 {
    margin: 0;
}

.brand p {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.brand h1 {
    margin-top: 4px;
    font-size: 30px;
    line-height: 1.1;
}

.brand-logo {
    width: 160px;
    max-width: 38vw;
    height: auto;
    flex: 0 0 auto;
    padding: 8px 10px;
    border-radius: 6px;
    background: #ffffff;
}

.invite-form {
    display: grid;
    gap: 18px;
    padding: 28px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

label span {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
}

select,
input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 0 14px;
    color: var(--ink);
    font: inherit;
    background: #ffffff;
}

select:focus,
input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.28);
    outline: none;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.date-picker {
    position: relative;
}

.picker-trigger {
    width: 100%;
    justify-content: flex-start;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #ffffff;
    text-align: left;
}

.picker-trigger span {
    color: var(--ink);
    font-size: 16px;
    font-weight: 400;
    text-transform: none;
}

.calendar {
    position: absolute;
    z-index: 1000;
    top: calc(100% + 8px);
    left: 0;
    width: min(320px, 100vw - 64px);
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
}

.calendar-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.calendar-header strong {
    text-align: center;
}

.icon-button {
    width: 40px;
    min-height: 40px;
    padding: 0;
}

.weekdays,
.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.weekdays span {
    display: grid;
    min-height: 28px;
    place-items: center;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.days span,
.days button {
    min-width: 0;
    min-height: 36px;
    padding: 0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
}

.days span {
    display: block;
}

.days button {
    border: 1px solid transparent;
    background: #f4f4f4;
}

.days button.selected {
    border-color: var(--black);
    background: var(--yellow);
}

.time-picker {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
}

.time-picker span {
    color: var(--ink);
    font-size: 22px;
    font-weight: 800;
}

.actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.actions .send-action {
    display: none !important;
}

button {
    min-height: 52px;
    border: 0;
    border-radius: 6px;
    color: var(--black);
    font: inherit;
    font-weight: 800;
    background: var(--yellow);
    cursor: pointer;
}

button:hover {
    filter: brightness(0.96);
}

button.secondary {
    border: 2px solid var(--black);
    color: var(--black);
    background: #ffffff;
}

.notice {
    margin: 24px 28px 0;
    padding: 14px 16px;
    border-radius: 6px;
}

.notice p {
    margin: 0;
}

.notice p + p {
    margin-top: 6px;
}

.error {
    border: 1px solid #f0b5b5;
    background: #fff0f0;
}

.success {
    border: 1px solid #a7d6a7;
    background: #eef9ee;
}

@media (max-width: 620px) {
    .brand {
        align-items: flex-start;
        padding: 22px;
    }

    .brand h1 {
        font-size: 25px;
    }

    .brand-logo {
        width: 116px;
        max-width: 34vw;
        padding: 6px 8px;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .actions {
        grid-template-columns: 1fr;
    }

    .invite-form {
        padding: 22px;
    }
}
