/* Utility classes for CSP compliance */
.text-error {
    color: #d61325;
}

.order-modal.modal-initially-visible {
    display: block !important;
}

/* Pikaday date picker z-index fix - ensure it appears above modals */
.pika-single {
    z-index: 10001 !important;
}

#modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.modal-container {
    width: 500px;
    height: 250px;
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: fit-content;
}

.modal-button {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    border: none;
    padding: 15px 32px;
}

.modal-header {
    margin: 20px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.modal-title {
    font-size: 28px;
}

.modal-close-button {
    border: none;
    color: white;
    padding: 15px 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 100px;
    margin-top: 25px;
    text-decoration: none;
    background-color: var(--imprimed-error-red);
    pointer-events: auto;
}

.modal-close-button:hover {
    background-color: var(--imprimed-error-red-hover);
    cursor: pointer;
}

.modal-print-button {
    border: none;
    color: white;
    padding: 15px 40px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 100px;
    margin-top: 25px;
    text-decoration: none;
    background-color: var(--imprimed-success-green);
    pointer-events: auto;
}

.modal-print-button:hover {
    background-color: var(--imprimed-success-green-hover);
    cursor: pointer;
}

.order-modal {
    display: none;
    height: 100vh;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(151, 150, 150, 0.25);
    z-index: 10000;
    transition: all 0.3s;
}

.order-modal-content {
    display: flex;
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 10px;
    overflow: auto;
    flex-direction: column;
    justify-content: space-between;
}

.submit-test-modal-content {
    height: 550px;
    width: 600px;
}

.start-test-modal-content {
    height: 540px;
    padding: 20px;
    width: 650px;
}

.modal-container-header {
    padding: 0px 32px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.modal-header-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.modal-container-title {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
    font-weight: 700;
    font-size: 30px;
    svg {
        width: 32px;
        height: 32px;
        color: #750550;
    }
}

.modal-footer-button {
    width: 100%;
    height: 50px;
    background-color: var(--imprimed-pioneer-navy);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    margin: 0 -20px -20px -20px;
    padding: 0 20px;
    position: relative;
}

.modal-footer-select-button {
    width: 100%;
    height: 50px;
    background-color: var(--imprimed-pioneer-navy);
    border: none;
    color: white;
    display: flex;
    justify-content: center;
    flex-direction: row;
    position: relative;
}

.order-modal-continue-button {
    position: absolute;
    height: 100%;
    width: 100%;
    border: none;
    color: white;
    font-size: 20px;
    padding: 0;
    pointer-events: auto;
    background-color: var(--imprimed-pioneer-navy);
}

.select-button {
    flex: 1;
    height: 100%;
    border: none;
    color: white;
    font-size: 20px;
    padding: 0;
    pointer-events: auto;
    background-color: var(--imprimed-pioneer-navy);
    cursor: pointer;
}

.select-button:hover {
    background-color: var(--imprimed-pioneer-navy-hover);
}

.order-modal-continue-button:hover {
    cursor: pointer;
    background-color: var(--imprimed-pioneer-navy-hover);
}

.cancel-button {
    background-color: var(--imprimed-pioneer-navy-medium);
}

.order-modal-close-button:hover {
    cursor: pointer;
    background-color: var(--imprimed-pioneer-navy-hover);
}

.modal-cancel-icon {
    background-color: white !important;
    cursor: pointer;
    border: none;
    position: absolute;
    right: 0;
    top: 0;
}

.modal-centered-text {
    margin-top: 30px;
}

.submit-test-modal-centered {
    max-height: 300px;
    overflow-y: auto;
    padding: 0 20px;
}

.order-modal-text-section1 {
    font-size: 17px;
    text-align: center;
    margin-bottom: 30px;
}

.order-modal-text-section2 {
    font-size: 17px;
    text-align: left;
    padding-left: 40px;
    margin-bottom: 50px;
}

#about-ndmm-modal {
    height: 600px;
    width: 700px;
}

.modal-listed-text ul {
    list-style: none;
}

.modal-listed-text li {
    display: flex;
    justify-content: start;
    align-items: flex-start;
    margin-bottom: 10px;
}

.modal-listed-text li div {
    width: 140px;
    font-weight: bold;
}

.modal-listed-text li p {
    width: 480px;
    margin: 0;
}

#about-ndmm-1-modal .modal-footer-button {
    margin: 0;
    padding: 0;
}

#register-patient-form {
    padding: 24px 32px 51px;
    overflow-y: auto;
}
#register-patient-form input {
    padding: 5px;
}

#register-patient-form label {
    width: 140px;
}

/* Delete Account Modal */
.delete-account-modal-content {
    width: 600px;
    height: 300px;
    padding: 20px;
}

.delete-account-modal-text {
    font-size: 18px;
    text-align: center;
    line-height: 1.8;
    color: var(--imprimed-pioneer-navy);
}

.delete-confirm-button {
    background-color: var(--imprimed-error-red);
}

.delete-confirm-button:hover {
    background-color: var(--imprimed-error-red-hover);
}
