.zonkey-tec-form {
    --ztec-border: #cfd4d9;
    --ztec-border-strong: #8b949e;
    --ztec-bg: #ffffff;
    --ztec-bg-muted: #f6f7f9;
    --ztec-text: #1f2328;
    --ztec-text-muted: #57606a;
    --ztec-accent: #2463eb;
    --ztec-accent-hover: #1a4fc0;
    --ztec-error: #b42318;
    --ztec-error-bg: #fef3f2;
    --ztec-success: #0a7d32;
    --ztec-success-bg: #effbf3;
    --ztec-radius: 4px;
    --ztec-spacing: 1.25rem;

    color: var(--ztec-text);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 720px;
}

.zonkey-tec-form *,
.zonkey-tec-form *::before,
.zonkey-tec-form *::after {
    box-sizing: border-box;
}

.zonkey-tec-form .zonkey-tec-flash {
    padding: .75rem 1rem;
    border-radius: var(--ztec-radius);
    margin-bottom: var(--ztec-spacing);
    border: 1px solid transparent;
}

.zonkey-tec-form .zonkey-tec-flash--success {
    background: var(--ztec-success-bg);
    border-color: var(--ztec-success);
    color: var(--ztec-success);
}

.zonkey-tec-form .zonkey-tec-flash--error {
    background: var(--ztec-error-bg);
    border-color: var(--ztec-error);
    color: var(--ztec-error);
}

.zonkey-tec-form .zonkey-tec-flash--info {
    background: #eff4fb;
    border-color: var(--ztec-accent);
    color: #1a4fc0;
}

.zonkey-tec-form .zonkey-tec-flash ul {
    margin: .25rem 0 0 1.25rem;
    padding: 0;
}

.zonkey-tec-form .zonkey-tec-fieldset {
    border: 1px solid var(--ztec-border);
    border-radius: var(--ztec-radius);
    padding: 1rem 1.25rem 1.25rem;
    margin: 0 0 var(--ztec-spacing);
}

.zonkey-tec-form .zonkey-tec-fieldset > legend {
    padding: 0 .5rem;
    font-weight: 600;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--ztec-text-muted);
}

.zonkey-tec-form .zonkey-tec-field {
    margin-bottom: var(--ztec-spacing);
    display: block;
}

.zonkey-tec-form .zonkey-tec-field:last-child {
    margin-bottom: 0;
}

.zonkey-tec-form .zonkey-tec-field > label,
.zonkey-tec-form .zonkey-tec-checkboxes > label {
    display: block;
    font-weight: 600;
    margin-bottom: .35rem;
}

.zonkey-tec-form .zonkey-tec-field--inline > label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 400;
}

.zonkey-tec-form input[type="text"],
.zonkey-tec-form input[type="url"],
.zonkey-tec-form input[type="email"],
.zonkey-tec-form input[type="date"],
.zonkey-tec-form input[type="time"],
.zonkey-tec-form input[type="number"],
.zonkey-tec-form select,
.zonkey-tec-form textarea {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--ztec-border);
    border-radius: var(--ztec-radius);
    background: var(--ztec-bg);
    color: var(--ztec-text);
    font: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.zonkey-tec-form input:focus,
.zonkey-tec-form select:focus,
.zonkey-tec-form textarea:focus {
    outline: none;
    border-color: var(--ztec-accent);
    box-shadow: 0 0 0 3px rgba(36, 99, 235, .15);
}

.zonkey-tec-form textarea {
    resize: vertical;
    min-height: 8rem;
}

.zonkey-tec-form .zonkey-tec-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .zonkey-tec-form .zonkey-tec-row {
        grid-template-columns: 1fr;
    }
}

.zonkey-tec-form .zonkey-tec-combo {
    position: relative;
}

.zonkey-tec-form .zonkey-tec-combo__control {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--ztec-border);
    border-radius: var(--ztec-radius);
    background: var(--ztec-bg);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.zonkey-tec-form .zonkey-tec-combo__control:focus-within {
    border-color: var(--ztec-accent);
    box-shadow: 0 0 0 3px rgba(36, 99, 235, .15);
}

.zonkey-tec-form .zonkey-tec-combo__input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .6rem .75rem;
    font: inherit;
    line-height: 1.4;
    width: 100%;
    box-shadow: none;
}

.zonkey-tec-form .zonkey-tec-combo__input:focus {
    outline: none;
    box-shadow: none;
    border-color: transparent;
}

.zonkey-tec-form .zonkey-tec-combo__input[aria-invalid="true"] {
    box-shadow: inset 3px 0 0 var(--ztec-error);
}

.zonkey-tec-form .zonkey-tec-combo__toggle {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    padding: 0 .85rem;
    cursor: pointer;
    color: var(--ztec-text-muted);
    font-size: 0.9em;
}

.zonkey-tec-form .zonkey-tec-combo__toggle:hover {
    color: var(--ztec-text);
}

.zonkey-tec-form .zonkey-tec-combo__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--ztec-border);
    border-radius: var(--ztec-radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
    max-height: 280px;
    overflow-y: auto;
}

.zonkey-tec-form .zonkey-tec-combo__list[hidden] {
    display: none;
}

.zonkey-tec-form .zonkey-tec-combo__list li {
    padding: .55rem .85rem;
    cursor: pointer;
    line-height: 1.3;
    color: var(--ztec-text);
}

.zonkey-tec-form .zonkey-tec-combo__list li:hover,
.zonkey-tec-form .zonkey-tec-combo__list li[aria-selected="true"] {
    background: #eff4fb;
    color: #1a4fc0;
}

.zonkey-tec-form .zonkey-tec-combo__list li[hidden] {
    display: none;
}

.zonkey-tec-form .zonkey-tec-combo__list li[data-id="0"] {
    color: var(--ztec-text-muted);
    font-style: italic;
    border-bottom: 1px solid var(--ztec-border);
}

.zonkey-tec-form .zonkey-tec-suggest-toggle {
    margin-top: .5rem;
    background: var(--ztec-bg-muted);
    border: 1px solid var(--ztec-border);
    border-radius: var(--ztec-radius);
    padding: .5rem .75rem;
}

.zonkey-tec-form .zonkey-tec-suggest-toggle > summary {
    cursor: pointer;
    font-size: .9rem;
    color: var(--ztec-accent);
    font-weight: 500;
    user-select: none;
}

.zonkey-tec-form .zonkey-tec-suggest-toggle[open] > summary {
    margin-bottom: .5rem;
    color: var(--ztec-text);
}

.zonkey-tec-form .zonkey-tec-suggest-toggle__body {
    padding-top: .25rem;
}

.zonkey-tec-form .zonkey-tec-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .4rem 1rem;
    padding: .5rem .75rem;
    border: 1px solid var(--ztec-border);
    border-radius: var(--ztec-radius);
    background: var(--ztec-bg-muted);
}

.zonkey-tec-form .zonkey-tec-checkboxes label {
    font-weight: 400;
    margin: 0;
    display: inline-flex;
    gap: .5rem;
    align-items: center;
}

.zonkey-tec-form .zonkey-tec-field--error > input,
.zonkey-tec-form .zonkey-tec-field--error > select,
.zonkey-tec-form .zonkey-tec-field--error > textarea {
    border-color: var(--ztec-error);
    box-shadow: inset 3px 0 0 var(--ztec-error);
}

.zonkey-tec-form .zonkey-tec-error {
    color: var(--ztec-error);
    font-size: .875rem;
    margin: .35rem 0 0;
}

.zonkey-tec-form .zonkey-tec-static {
    margin: 0;
    padding: .5rem .75rem;
    border-radius: var(--ztec-radius);
    background: var(--ztec-bg-muted);
    color: var(--ztec-text-muted);
}

.zonkey-tec-form .required {
    color: var(--ztec-error);
    font-weight: 700;
}

.zonkey-tec-form .description {
    color: var(--ztec-text-muted);
    font-size: .875rem;
    margin: .35rem 0 0;
}

.zonkey-tec-form .zonkey-tec-button {
    padding: .7rem 1.25rem;
    font: inherit;
    font-weight: 600;
    border: 1px solid var(--ztec-accent);
    background: var(--ztec-accent);
    color: #fff;
    border-radius: var(--ztec-radius);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.zonkey-tec-form .zonkey-tec-button:hover,
.zonkey-tec-form .zonkey-tec-button:focus-visible {
    background: var(--ztec-accent-hover);
    border-color: var(--ztec-accent-hover);
}

.zonkey-tec-notice {
    padding: 1rem 1.25rem;
    border: 1px solid #cfd4d9;
    border-radius: 4px;
    background: #f6f7f9;
    color: #57606a;
    max-width: 720px;
}

.zonkey-tec-my-events {
    max-width: 720px;
    color: #1f2328;
}

.zonkey-tec-my-events__group {
    margin-bottom: 1.75rem;
}

.zonkey-tec-my-events__heading {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.zonkey-tec-my-events__pill {
    display: inline-block;
    padding: .15rem .55rem;
    color: #fff;
    font-size: .82rem;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.zonkey-tec-my-events__count {
    color: #57606a;
    font-size: .85rem;
}

.zonkey-tec-my-events__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e5e9;
    border-radius: 4px;
    overflow: hidden;
}

.zonkey-tec-my-events__item {
    padding: .85rem 1rem;
    border-bottom: 1px solid #e2e5e9;
    background: #fff;
}

.zonkey-tec-my-events__item:last-child {
    border-bottom: 0;
}

.zonkey-tec-my-events__meta {
    color: #57606a;
    font-size: .9rem;
    margin-top: .15rem;
}

.zonkey-tec-my-events__reason {
    margin-top: .5rem;
    padding: .5rem .75rem;
    background: #fef3f2;
    border-left: 3px solid #b42318;
    color: #b42318;
    font-size: .9rem;
    border-radius: 0 3px 3px 0;
}

.zonkey-tec-my-events__actions {
    margin-top: .5rem;
    display: flex;
    gap: .75rem;
}

.zonkey-tec-my-events__action {
    font-size: .9rem;
    text-decoration: none;
    color: #2463eb;
}

.zonkey-tec-my-events__action:hover,
.zonkey-tec-my-events__action:focus-visible {
    text-decoration: underline;
}

.zonkey-tec-my-events__cta {
    margin-top: 1.5rem;
}

.zonkey-tec-button {
    display: inline-block;
    padding: .7rem 1.25rem;
    font-weight: 600;
    border: 1px solid #2463eb;
    background: #2463eb;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.zonkey-tec-button:hover,
.zonkey-tec-button:focus-visible {
    background: #1a4fc0;
    border-color: #1a4fc0;
    color: #fff;
    text-decoration: none;
}
