/* General Reset for Modal Only */
.pharmaping-modal * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* Body Styles for Modal Only */
.pharmaping-modal {
    background-color: #f8f8f8;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Modal (Popup) - Scoped to `.pharmaping-modal` */
.pharmaping-modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999; /* High z-index value to ensure modal is always on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Black background with transparency */
    padding-top: 60px;
}

/* Modal Content - Scoped to `.pharmaping-modal-content` */
.pharmaping-modal .pharmaping-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative; /* Allow close icon to position within modal */
}

/* Close Button (Cancel) inside the form modal */
.pharmaping-modal .pharmaping-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    transition: color 0.3s;
}

.pharmaping-modal .pharmaping-close:hover,
.pharmaping-modal .pharmaping-close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Heading */
.pharmaping-modal h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Subheading */
.pharmaping-modal p {
    font-size: 16px;
    color: #777;
    margin-bottom: 20px;
}

/* Input Fields - Scoped to `.pharmaping-modal` */
.pharmaping-modal .pharmaping-input-group {
    margin-bottom: 20px;
}

.pharmaping-modal .pharmaping-input-group input,
.pharmaping-modal .pharmaping-input-group textarea,
.pharmaping-modal .pharmaping-input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
}

.pharmaping-modal .pharmaping-input-group input:focus,
.pharmaping-modal .pharmaping-input-group textarea:focus,
.pharmaping-modal .pharmaping-input-group select:focus {
    border-color: #5AABAF;
    outline: none;
}

/* Submit Button - Scoped to `.pharmaping-modal` */
.pharmaping-modal .pharmaping-submit-button {
    width: 100%;
    padding: 12px;
    background-color: #5AABAF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.pharmaping-modal .pharmaping-submit-button:hover {
    background-color: #5A91AF;
}

/* Confirmation Message */
.pharmaping-modal #confirmation-message {
    font-size: 16px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}
