body {
    font-family: 'Arial', sans-serif;
    background: #f3f3f3;
    margin: 0;
    padding: 20px;
}

input,
select {
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #999;
    font-size: 14px;
    flex: 1 1 0px;
    box-sizing: border-box;
}

.form-container {
    width: 210mm;
    max-width: 100%;
    background: #fff;
    margin: auto;
    padding: 25px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 20px;
}

.header img {
    width: 85px;
    margin-bottom: 8px;
}

.header h1 {
    font-size: 26px;
    margin: 0;
    font-weight: bold;
}

.section-title {
    font-size: 20px;
    margin: 20px 0 10px;
    font-weight: bold;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.label {
    font-weight: bold;
    flex-shrink: 0;
}

.notes-box {
    background: #fcfcfc;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 8px;
}

.notes-box p {
    margin: 4px 0;
    font-size: 15px;
}

button {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    margin-top: 20px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.required::after {
    content: " *";
    color: red;
    font-weight: bold;
}

@media (max-width: 450px) {
    .stack-mobile {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .stack-mobile .label {
        margin-bottom: 4px;
    }

    .stack-mobile-row input,
    .stack-mobile select,
    .stack-mobile.dl input {
        width: 100%;
    }

    .dl-row {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .dl-row .label {
        margin-top: 6px;
    }

    .checkbox-group,
    .radio-group {
        flex-direction: column !important;
        width: 100%;
        gap: 6px !important;
        line-height: 30px;
    }
}

@media print {
    body {
        margin: 0;
        padding: 0;
    }

    .form-container {
        width: 210mm;
        height: 277mm;
        padding: 0mm 5mm 0mm 5mm;
        box-shadow: none;
        border-radius: 0;
        page-break-inside: avoid;
        overflow: hidden;
    }

    .header {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        /* logo and title inline */
        margin-bottom: 15px;
    }

    .header img {
        width: 60px;
        margin-right: 15px;
    }

    .header h1 {
        font-size: 20px;
        margin: 0;
    }

    .notes-box {
        padding: 6px;
        font-size: 12px;
        line-height: 1.1;
        margin-bottom: 0;
        break-inside: avoid;
    }

    input,
    select,
    textarea {
        font-size: 12px;
    }

    button {
        display: none !important;
    }
}