body {
    font-family: "Times New Roman", Times, serif;
}

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

.w-80 {
    width: 80%;
    margin: 0 auto;
    border: solid 1px #cdcdcd;
}

.container {
    padding: 10px;
    margin-top: 10px;
}

.page-title {
    /* uppercase */
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.4em;
    /* 20px */
    border: 1px solid #000;
    width: 80%;
    margin: 0 auto;
    padding: 10px;
    font-family: engravers-gothic, sans-serif;
}

.form-item {
    background-color: #dcdddf;
    padding: 10px 5px; 
    /* rounded corners */
    border-radius: 8px;
}

.form-item label {
    font-weight: bold;
    display: flex;
    align-items: center;
    font-size: 1.1em;
}

.form-group {
    margin-bottom: 30px;
}

.form-item input {
    border-radius: 8px;
}

#searchbox {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
}

.btn-custom {
    background-color: #fff;
    color: black;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    border: solid 3px black;
    text-transform: uppercase;
}

.btn-custom:hover {
    background-color: #dcdddf;
}

.signature-pad-container {
    background-color: #e6e6e6;
    padding: 20px 5px; 
    border-radius: 5px;
    width: 40%;
    margin: 0 auto;
}

.signature-pad-form .form-item {
    background-color: transparent;
}

canvas#signature-pad {
    background: #fff;
    width: 85%; 
    height: auto;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc; /* Optional: add a subtle border directly to canvas */
}

button#clear {
    height: 100%;
    color: blue;
    font-weight: 200;
    cursor: pointer;
}

p#clear {
    color: blue;
    font-weight: 200;
    cursor: pointer;
    margin-top: 8px;
    margin-left: 7.4%; 
    padding: 4px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f9fa;
    display: inline-block;
}

.highlight-error {
    animation: pulse-error 2s;
}

@keyframes pulse-error {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

p#clear:hover {
    background-color: #e2e6ea;
}

.certify {
    border: 2px solid #dcdddf;
    border-radius: 12px;
    background-color: #f9f9f9;
}

.big_checkbox {
    transform: scale(1.5);
    margin-top: 0;
}

.checkbox-container {
    display: flex;
    align-items: center; 
    min-width: 36px; 
    padding-top: 0; 
}

@media (max-width: 576px) {
    .certify .form-check {
        padding-left: 0;
    }
    
    .certify .form-check-label {
        font-size: 0.95em;
    }
    
    .checkbox-container {
        margin-left: 16px !important; 
        margin-right: 8px !important; 
    }
    
    .d-flex.align-items-center {
        flex-wrap: nowrap; 
    }
}

.question-text {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
}

#payment-message {
    font-size: 1.1em;
    font-weight: bold;
    margin: 0;
    text-transform: capitalize;
    color: red;
}