/* ===== Popup Styles ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    padding: 10px;
}
.modal-content {
    background: white;
    border-radius: 12px;
    width: 400px;
    max-width: 100%;
    padding: 20px;
    text-align: left;
    position: relative;
    box-shadow: 0px 4px 20px rgba(0,0,0,0.2);
}
form input,
form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  /* margin: 8px 0;*/
  border: 1px solid #ccc; 
  border-radius: 8px; 
  box-sizing: border-box;
  font-size: 14px;
  /* font-family: inherit; */
  /* resize: none; prevents stretching */
}

.close-btn {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}
.close-btn:hover { color: black; }
.modal-content h2 { font-size: 20px; margin-top: 0; }
.modal-content p { font-size: 14px; color: #666; margin-bottom: 15px; }
.modal-content input, .modal-content select {
    width: 100%; padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}
.modal-content button {
    background-color: #007b5e;
    color: white;
    border: none;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.modal-content button:hover { background-color: #e3ece7; color: #555;}
@media screen and (max-width: 500px) {
    .modal-content { padding: 15px; }
    .modal-content input, .modal-content select, .modal-content button {
        font-size: 14px; padding: 10px;
    }
}

/* ===== Success Overlay ===== */
.success-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.success-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 300px;
}
.success-box h3 { color: green; margin: 0 0 10px; }
.success-close {
    position: absolute;
    top: 5px; right: 10px;
    cursor: pointer;
    font-size: 18px;
}
