.mva-application-form-block {
    max-width: 670px;
    margin: 2em auto;
    padding: 2em;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    font-family: inherit;
    font-size: clamp(14px, 1.5vw, 16px);
}

.mva-step-title{
    margin:30px 0 !important;
    display:block;
    font-size:clamp(20px, 2.5vw, 25px) !important;
    text-align:center;
}

.mva-application-form-block h2{
    margin:30px 0 30px;
    font-size: clamp(18px, 2.5vw, 20px);
    color:#000;
    font-weight:bold;
}
.mva-application-form-block h3,
.mva-application-form-block h4,
.mva-application-form-block h5,
.mva-application-form-block h6{
    margin:15px 0 15px;
    font-size: clamp(16px, 2.5vw, 18px);
    color:#5a5a5a;
    font-weight:bold;
}

.mva-application-form-block p,
.mva-application-form-block li{
    margin:15px 0;
    line-height:1.6;
    color:#333;
    font-size:clamp(14px, 1.2vw, 16px);
}

.mva-application-form-block ul,
.mva-application-form-block ol{
    margin-left:20px;
}

@media(min-width:991.98px){
    .mva-application-form-block ul,
    .mva-application-form-block ol{
        margin-left:40px;
    }
}
.mva-application-form-block ol{
    list-style-type: decimal;
}
.mva-application-form-block li:before{
    display:none;
}
.mva-application-form-block ul{
    list-style-type: disc;
}

.mva-application-form-block .mva-step-number{
    text-align:center;
    font-size: clamp(12px, 1.2vw, 13px);
    color:#666;
}

.mva-application-form-block label {
    display: block;
    margin-top: 1em;
    margin-bottom: 0.25em;
    font-weight: 500;
    color: #222;
    font-size:clamp(14px, 1.2vw, 16px);
    line-height:1.6;
}
.mva-application-form-block input[type="checkbox"],
.mva-application-form-block input[type="radio"]{ /* override custom theme's styles */
    position:relative !important;
    opacity:1 !important;
    z-index:1 !important;
    width:auto !important;
    height:auto !important;
    margin-right:5px !important;
}
.mva-application-form-block input[type="text"],
.mva-application-form-block input[type="email"],
.mva-application-form-block input[type="date"],
.mva-application-form-block input[type="phone"],
.mva-application-form-block select {
    width: 100%;
    min-width:100%;
    max-width:100%;
    padding: 0.5em;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    font-size: 1em;
    margin-bottom: 0.5em;
    box-sizing: border-box;
}

.mva-application-form-block input[type="file"] {
    margin-top: 0.5em;
    margin-bottom: 1em;
}

.mva-application-form-block button {
    /* Remove background and color so settings can override */
    /* background: #b5121b; */
    /* color: #fff; */
    padding: 0.6em 1.5em;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s;
}

.mva-application-form-block button[disabled] {
    /* background: #b3b3b3; */
    cursor: not-allowed;
}
.mva-application-form-block button:hover:not([disabled]) {
    /* background: #8e0e15; */
}

.mva-application-form-block a{
    /*color: #b5121b;*/
    text-decoration: underline;
}
.mva-application-form-block button:hover:not([disabled]) {
    background: #8e0e15;
}

.mva-success {
    background: #e6ffed;
    color: #155724;
    border: 1px solid #b7eb8f;
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    text-align:center;
    font-size:14px;
}

.mva-error {
    background: #fff1f0;
    color: #a8071a;
    border: 1px solid #ffa39e;
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    text-align:center;
    font-size:14px;
}

.mva-application-form-block .mva-legal-content {
    background: #f8fafc;
    border: 1px solid #e0e0e0;
    padding: 1em;
    border-radius: 4px;
    margin-bottom: 1em;
    font-size: 0.98em;
}

.mva-application-form-block .mva-legal-print {
    padding: 0.3em 0.9em;
    background: #f2f2f2!important;
    color: #444!important;
    border: 1px solid #f2f2f2!important;
    border-radius: 3px;
    font-size: 0.92em;
    cursor: pointer;
    margin-bottom: 1em;
    margin-right: 0.7em;
    margin-top: 0.5em;
    box-shadow: none;
    order: 3;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    padding-left: 2em;
}

.mva-application-form-block .mva-legal-print::before {
    content: '';
    display: inline-block;
    position: absolute;
    left: 0.7em;
    top: 50%;
    transform: translateY(-50%);
    width: 1em;
    height: 1em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="4" y="2" width="12" height="5" rx="1" fill="%23333"/><rect x="3" y="7" width="14" height="7" rx="2" fill="%23333"/><rect x="6" y="14" width="8" height="4" rx="1" fill="%23333"/><rect x="7" y="9" width="2" height="2" rx="1" fill="white"/></svg>');
    pointer-events: none;
}

.mva-application-form-block .mva-step-legal button.mva-next-step,
.mva-application-form-block .mva-step-legal button.mva-prev-step {
    /* Increase visual hierarchy for nav buttons */
    font-weight: 600;
    font-size: 1em;
    margin-right: 0.5em;
    margin-top: 1em;
    margin-bottom: 1em;
    order: 1;
}

.mva-application-form-block .mva-fields {
    margin-top: 1em;
}

.mva-file-dropzone {
    border: 2px dashed #b3b3b3;
    border-radius: 6px;
    background: #f8fafc;
    padding: 1.5em;
    text-align: center;
    cursor: pointer;
    margin-bottom: 1em;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mva-file-dropzone.dragover {
    border-color: #b5121b;
    background: #e6f7ff;
}
.mva-dropzone-icon {
    font-size: 2.5em;
    color: #b3b3b3;
    display: block;
    margin-bottom: 0.5em;
}
.mva-dropzone-text {
    color: #666;
    font-size: 1em;
    margin-bottom: 0.5em;
}
.mva-dropzone-files {
    margin-top: 0.5em;
    width: 100%;
    text-align: left;
}
.mva-dropzone-file {
    background: #f1f1f1;
    border-radius: 3px;
    padding: 0.3em 0.7em;
    margin-bottom: 0.3em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.98em;
}
.mva-dropzone-remove {
    background: none;
    border: none;
    color: #a8071a;
    font-size: 1.2em;
    cursor: pointer;
    margin-left: 0.5em;
    line-height: 1;
    padding: 0;
}
.mva-dropzone-remove:hover {
    color: #ff4d4f;
}

.mva-signature-wrapper {
    margin-top: 1.5em;
    margin-bottom: 1em;
    text-align: left;
    background: #f8fafc;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.2em 1.5em 1.5em 1.5em;
}
.mva-signature-choice {
    display: flex;
    gap: 2em;
    margin-bottom: 1em;
    align-items: center;
}
.mva-signature-choice label {
    margin: 0;
    font-weight: 500;
    color: #222;
    font-size: 1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5em;
}
#mva-signature-draw-area,
#mva-signature-upload-area {
    margin-top: 0.5em;
}
#mva-signature-canvas {
    width: 100%;
    max-width: 400px;
    height: 120px;
    background: #fff;
    border: 1px solid #b3b3b3;
    border-radius: 4px;
    display: block;
    margin-bottom: 0.5em;
    touch-action: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
#mva-signature-clear {
    background: #b3b3b3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.4em 1em;
    font-size: 0.95em;
    cursor: pointer;
    margin-left: 0;
    margin-top: 0.5em;
    transition: background 0.2s;
}
#mva-signature-clear:hover {
    background: #a8071a;
}
#mva-signature-upload-area input[type="file"] {
    display: inline-block;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    font-size: 1em;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #b3b3b3;
    padding: 0.4em;
    width: auto;
}
.mva-signature-instructions {
    color: #666;
    font-size: 0.95em;
    margin-top: 0.5em;
    margin-bottom: 0;
}

.mva-step-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 1.5em;
    margin-bottom: 1em;
}