* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: #333;
    background: #fff;
    font-family: Ubuntu, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.zd-page {
    width: min(100% - 32px, 760px);
    margin: 48px auto;
}

.zd-form {
    width: 100%;
}

.ticket-form {
    transition: opacity 160ms ease;
}

.zd-page.is-loading .ticket-form {
    opacity: .35;
    pointer-events: none;
}

.form-selector {
    margin-bottom: 28px;
}

.zd-field {
    margin-bottom: 20px;
}

.zd-field.is-hidden {
    display: none;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.required,
.field-error {
    color: #eb0029;
}

.hint {
    margin: -2px 0 8px;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font: inherit;
}

textarea {
    min-height: 132px;
    padding-top: 12px;
    resize: vertical;
}

select[multiple] {
    min-height: 132px;
    padding: 8px 14px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #eb0029;
}

input:focus,
select:focus,
textarea:focus,
.button:focus {
    outline: 2px solid #0066de;
    outline-offset: 4px;
}

.button {
    display: inline-block;
    min-width: 150px;
    height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 24px;
    background: #eb0029;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
}

.button:hover {
    background: #a6192e;
}

.message {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 4px;
    font-weight: 700;
}

.message.error {
    border: 1px solid #eb0029;
    background: #fff5f6;
    color: #a6192e;
}

.message.success {
    border: 1px solid #43b02a;
    background: #f2fbf0;
    color: #236915;
}

.field-error {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 700;
}

.loading-indicator {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-weight: 700;
}

.zd-page.is-loading .loading-indicator {
    display: flex;
}

.spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #d7d7d7;
    border-top-color: #eb0029;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

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

@media (max-width: 600px) {
    .zd-page {
        width: min(100% - 24px, 760px);
        margin: 28px auto;
    }

    .button {
        width: 100%;
    }
}
