body {
    font-family: Arial, sans-serif;
    margin: 20px;
    line-height: 1.6;
    color: #333;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #1b2573;
    padding-bottom: 10px;
}

.form-section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.section-title {
    background-color: #1b2573;
    color: white;
    padding: 8px 15px;
    margin: -15px -15px 15px -15px;
    border-radius: 5px 5px 0 0;
    font-weight: bold;
}

.form-row {
    display: flex;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
    margin-right: 20px;
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"], 
input[type="date"],
input[type="time"], 
select, 
textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;

}

textarea {
    height: 100px;
    resize: vertical;
}

.asterisk {
    color: #fe570d;
    margin-left: 2px;
    font-weight: bold;
    font-size: 110%;
}

.value {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    min-height: 20px;
    white-space: pre-wrap;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
    flex-wrap: wrap;
}

.radio-option {
    display: flex;
    align-items: center;
}

.radio-option input {
    margin-right: 8px;
    margin-top: 0;
    vertical-align: middle;
}

.radio-option label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.photo-upload {
    margin-bottom: 10px;
}

.photo-upload label {
    display: inline-block;
    margin-right: 10px;
}

.file-button {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.photo-preview, .photo-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    align-items: flex-end;
}

.photo-wrapper {
    position: relative;
    display: inline-block;
}

.photo-thumbnail {
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: block;
}

.photo-thumbnail[orientation="landscape"] {
    width: 225px;
    height: 150px;
}

.photo-thumbnail[orientation="portrait"] {
    width: 150px;
    height: 225px;
}

.photo-actions {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: flex;
    gap: 5px;
}

.photo-btn {
    background-color: rgb(255, 255, 255);
    border: 1px solid #bbb;
    border-radius: 3px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.photo-btn i {
    font-size: 18px;
    margin: 0;
}

.view-btn {
    color: black;
}

.delete-btn {
    color: red;
}

.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.photo-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.photo-modal-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

.photo-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.print-btn {
    background-color: #6c757d;
    color: white;
}

.html-btn {
    background-color: #3747da;
    color: white;
}



.submit-btn {
    background-color: #fe570d;
    color: white;
}

i {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

@media print {
    .button-group {
        display: none;
    }
    body {
        margin: 0;
        padding: 0;
        font-size: 12pt;
    }
    .form-section {
        border: none;
        padding: 0;
        margin-bottom: 15px;
        background-color: white;
    }
    .section-title {
        background-color: white;
        color: black;
        border-bottom: 1px solid #000;
        border-radius: 0;
    }
}
