* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: #f3f7fb;
    color: #17202a;
}


.site-header {
    background: #0b6bcb;
    color: white;
    padding: 18px 20px;
}


.header-content {
    max-width: 1000px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;
}


.brand {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
}


.page {
    width: min(1000px, calc(100% - 30px));
    margin: 35px auto;
}


.card {
    background: white;

    border-radius: 14px;

    padding: 28px;

    margin-bottom: 25px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.08);
}


.hidden {
    display: none !important;
}


h1,
h2 {
    margin-top: 0;
}


.intro {
    color: #667085;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;
}


label {
    display: flex;
    flex-direction: column;

    gap: 8px;

    font-weight: 600;
}


label span,
legend span {
    color: #d92d20;
}


input,
select,
textarea {
    width: 100%;

    padding: 12px 13px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    font-size: 15px;

    background: white;
}


input:focus,
select:focus,
textarea:focus {
    outline: none;

    border-color: #0b6bcb;

    box-shadow:
        0 0 0 3px rgba(11, 107, 203, 0.12);
}


.slot-fieldset {
    margin: 25px 0;

    border: 1px solid #d8e0e8;

    border-radius: 10px;

    padding: 20px;
}


.slots {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(110px, 1fr));

    gap: 10px;

    margin-top: 15px;
}


.slot-button {
    border: 1px solid #0b6bcb;

    background: white;

    color: #0b6bcb;

    padding: 11px;

    border-radius: 8px;

    cursor: pointer;

    font-weight: 600;
}


.slot-button:hover,
.slot-button.selected {
    background: #0b6bcb;

    color: white;
}


.primary-button {
    width: 100%;

    border: none;

    border-radius: 9px;

    padding: 14px;

    background: #0b6bcb;

    color: white;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    margin-top: 20px;
}


.primary-button:hover {
    background: #0959a8;
}


.primary-button:disabled {
    opacity: 0.6;

    cursor: not-allowed;
}


.file-input {
    margin-top: 20px;
}


.help-text {
    font-size: 13px;

    color: #667085;
}


.message {
    margin-top: 18px;

    font-weight: 600;
}


.message.success {
    color: #087443;
}


.message.error {
    color: #b42318;
}


.amount {
    font-size: 30px;

    font-weight: 800;

    color: #0b6bcb;
}


.qr-code {
    display: block;

    width: 280px;

    max-width: 100%;

    margin: 20px auto;

    border: 1px solid #ddd;

    padding: 10px;
}


.preview {
    display: block;

    width: min(500px, 100%);

    max-height: 500px;

    object-fit: contain;

    margin: 20px auto;

    border-radius: 10px;

    border: 1px solid #ddd;
}


.loading {
    color: #667085;
}


.error {
    color: #b42318;
}


@media (max-width: 700px) {

    .form-grid {
        grid-template-columns: 1fr;
    }


    .header-content {
        flex-direction: column;

        align-items: flex-start;
    }


    .card {
        padding: 20px;
    }
}