/* NOTE: in HPE site (WP) the url would be '/wp-content/uploads/2023/05/Holligate-Signature-Demo.ttf' */
@font-face{
    font-family: 'Holligate Signature Demo';
    src: url('../fonts/Holligate Signature Demo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
.loading-overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* Semi-transparent black */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it appears on top of everything */
}
.vin-loader{
    border: 4px solid #ebebeb; /* Light grey */
    border-top: 4px solid #af2924; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.warranty-form{
    width: 100%;
    font-family: 'FF Mark', sans-serif;
    display: grid;
    row-gap: 30px;
}
.about-title{
    font-weight: 600;
    font-size: 32px;
    margin: 30px 0px;
}
.warranty-title{
    font-weight: 600;
    font-size: 16px;
    margin: 30px 0px;
}
.warranty-content{
    font-weight: 400;
    font-size: 8pt;
    margin: 0px;
}
.required{
    color: red;
    padding-left: 3px;
}
.form-label, .form-input-box{
    display: block;
    box-sizing: border-box;
    font-size: 16px;
}
.form-input-box{
    width: 100%;
    border-color: #c3cad8bf;
    margin-top: 10px;
    border-radius: 4px;
    padding: 0px 10px;
    height: 2.5rem;
}
.validate-vin-btn{
    height: 2.5rem;
    width: 50%;
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    color: white;
    background-color: #af2924;
    border: 2px solid #af2924;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
}
.vin-btn-container{
    width: 100%;
    display: grid;
    grid-template-columns: 100%;
    justify-content: center;
}
.vin-validated{
    color: green;
    display: none;
}
.vin-invalid{
    color: red;
    display: none;
}
.acknowledge-label{
    display: block;
    box-sizing: border-box;
    font-size: 16px;
    padding-top: 20px;
}
.acknowledge-text{
    color: #6d6d6d;
    display: inline;
}
#acknowledgement{
    display: inline-block;
}
.submit-container{
    display: grid;
    justify-content: center;
    padding-top: 30px;
    padding-right: 10%;
    padding-left: 10%;
}
.signature-container{
    display: grid;
    max-width: 420px;
    padding-top: 15px;
}
.submit-btn{
    color: white;
    background-color: #af2924;
    border: 2px solid #af2924;
    border-radius: 4px;
    font-size: 16px;
    height: 48px;
    width: 180px;
    font-weight: 400;
    justify-self: center;
}
.form-submitted{
    color: green;
    font-size: 20px;
    font-weight: 400;
}
.missing-fields-note{
    display: none;
    color: red;
}
.show-missing-fields-note{
    display: grid;
    justify-self: center;
}
.read-only{
    background-color: #c3cad8bf;
}
#signature{
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 10px;
    width: 100%;
    height: 80px;
    color: black;
}
.non-dealer{
    display: none;
}

/* Hide spinner arrows for number input */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0; /* Optional: Ensure that the spinner arrows don't cause any layout changes */
}

@media only screen and (min-width: 768px){
    .warranty-form{
        grid-template-columns: 47% 47%;
        column-gap: 6%;
    }
    .about-title, .warranty-title, .warranty-content, .acknowledge-label, .submit-container, .signature-container{
        grid-column: 1 / 3;
    }
    .submit-btn:hover, .validate-vin-btn:hover{
        cursor: pointer;
        background-color: #af2924cc;
        border-color: #af2924cc;
    }
    .vin-validated, .vin-invalid{
        margin-left: 25px;
    }
    .show-vin-validated, .show-vin-invalid{
        display: inline;
    }
}

@media only screen and (max-width: 767px){
    .warranty-form{
        grid-template-columns: 100%;
    }
    .show-vin-validated, .show-vin-invalid{
        display: block;
        margin-top: 0.45rem;
        margin-bottom: 0.45rem;
        font-size: 16px;
    }
    .acknowledge-label{
        padding-top: 0px;
    }
}