@font-face {
    font-family: "Founders Grotesk Regular";
    src: url("../fonts/founders-grotesk-web-regular.woff") format("woff"),
    url("../fonts/founders-grotesk-web-regular.woff") format("woff");
}

@font-face {
    font-family: "Founders Grotesk";
    src: url("../fonts/founders-grotesk-web-regular.woff2") format("woff2"),
    url("../fonts/founders-grotesk-web-regular.woff") format("woff");
}

@font-face {
    font-family: "Founders Grotesk Bold";
    src: url("../fonts/founders-grotesk-web-medium.woff") format("woff"),
    url("../fonts/founders-grotesk-web-medium.woff2") format("woff2");
    font-weight: 500;
}

@font-face {
    font-family: "GT Super Ds Trial";
    src: url("../fonts/GT-Super-Display-Bold-Trial.otf") format("opentype"),
    url("../fonts/GT-Super-Display-Bold-Trial.otf") format("opentype");
    font-weight: 900;
}
@font-face {
    font-family: "FoundersGrotesk-Light";
    src: url("../fonts/founders-grotesk-web-light.woff2") format("woff2");
}

@font-face {
    font-family: "GTSuperDSTrial";
    src: url("../fonts/GT-Super-Display-Medium-Trial.otf") format("otf"),
    url("../fonts/GT-Super-Display-Medium-Trial.otf");
}

/* message component css */
.panel-flex {
    display: flex;
    flex-direction: row;
}

.panel-buttons-container {
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
}

.panel-buttons-container a:hover {
    text-decoration: none;
}

.panel-body {
    top: 25%;
    position: absolute;
    width: 100%;
}

.inbox_header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.message_index {
    min-width: 40vw;
    width: 70vw;
    border-collapse: collapse;
    border-radius: 10px;
    margin-top: 1rem;
    margin-left: .8rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.message_index th {
    background-color: #1F7F61;
    color: white;
    padding: 12px 15px;
}

.message_index tr {
    background-color: white;
}

.message_index tr td {
    color: #1F7F61;
    text-align: left;
    padding-left: 15px;
    font-size:20px;
}

.message_index tr {
    border-bottom: 1px solid #ddd;
}

.message_index tr:last-of-type {
    border-bottom: none;
}

table { border-collapse: separate; }
td { border: solid 1px #000; }
tr:first-child td:first-child { border-top-left-radius: 10px; }
tr:first-child td:last-child { border-top-right-radius: 10px; }
tr:last-child td:first-child { border-bottom-left-radius: 10px; }
tr:last-child td:last-child { border-bottom-right-radius: 10px; }

.new_msg_header {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#new_msg_textarea{
    margin: none;
    border-radius: 3rem;
    color: #1F7F61;

}

.new_subject {
    color: white;
    margin: 0;
}

.new_msg_input {
    color: #1F7F61;
    display: flex;
    align-items: center;
    margin-top: 10px;
    background: transparent;
}


.body_inbox tr:hover {
  background-color: #4ca590;
  cursor: pointer;
}

.body_inbox td, .body_inbox th {
    font-family: "FoundersGrotesk-Light";
    height: 59.68px;
    font-size: 2.5rem;
    color: #FFFFFF;
    letter-spacing: 0.31px;
    text-align: center;
    border: none;
}

.body_inbox table tr:last-child td:first-child {
    border-bottom-left-radius: 10px;
}

.body_inbox table tr:last-child td:last-child {
    border-bottom-right-radius: 10px;
}

.empty_spacer {
    width: 2vw;
    border-top: none;
}

.message_buttons {
    width: 18.8rem;
    height: 40px;
    border-radius: 4rem;
    margin: 1rem;   
    display: inline-flex;
    justify-content: space-between;
    align-content: center;
    text-align: center;
    outline: #fff;
    background-color: rgb(0,127,97);
    color: #fff;
    border: #fff 1px solid;
    font-family: "FoundersGrotesk-Light";
    text-align: center;
    vertical-align: middle;
    padding: 0 30px;
}

.message_buttons:hover {
    background-color: white;
    color: rgb(0,127,97);
    border: 1px solid rgb(0,127,97);
}

.message_buttons:focus {
    background-color: white;
    color: rgb(0,127,97);
    border: solid 3px #1E7A46;
}

.message_buttons:active {
    background-color: white;
    color: rgb(0,127,97);
    border: solid 3px #1E7A46;
}

.body_inbox table {
    /* border: solid black 5px; */
    padding: 2px;
}
tr {
    border-bottom: none;
}

th, td {
    border: none;
}


.message_button_text {
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 2.5rem;
    font-family: "FoundersGrotesk-Light";
    margin: 0;
}

.new_msg_button {
    margin-top: 3rem;
}

/* new msg component */
.msg_inputs_container {
    display: flex;
    border-bottom: 1px solid black;

}

.msg_inputs {
    display: flex;
    flex-direction: row;
}

.msg_sub_input {
  width: 100%;
  height: 44px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  color: black;
  outline: none;
  box-sizing: border-box;
}


.send_button {
    width: 13rem;
    height: 4.5rem;
    border-radius: 2rem;
    background-color: rgb(0,127,97);
    color: #fff;
    border: #fff 3px solid;
    font-size: 2.7rem;
}

.send_button:hover {
    opacity: .7;
}
/* tag */
.new_msg_container {
    background: transparent;
    min-width: 40vw;
    max-width: 70vw;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
}

.msg_text_area {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 70vw;
    min-width: 30vw
}

.msg_text_input {
    resize: none;
    border: none;
    width: 79.2vw;
}

.msg_send {
    display: flex;
    justify-content: flex-end;
    margin-top: .8rem;
    width: 100%;
    min-width: 30vw;
    outline: #fff;
    background-color: transparent;
}

.msg_text_input:focus {
    outline: #fff !important;
}

.inbox_container {
    border-radius: 1rem;
    width: 70vw;
    min-width: 30vw;
}

.checkbox_container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    align-items: center;
    text-align: center;
}

#remember_label {
    margin: 0px;
    margin-bottom: 0px;
}

#remember_me {
    margin-top: 0px;
    margin-right: .5rem;
}



#errorSpan {
    color: darkred;
    font-weight: bold;
}

/* message detail */
.message_diagnosis {
    margin-top: 3rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
@media only screen and (max-width: 799px) {
    .message_diagnosis {
        flex-direction: column;
        width: 90%;
    }
}
.results_container {
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
    flex-wrap: wrap;    
}
.display_results.pos_display {
    border-left: #d83e2c;
    border-left-style: outset;
    padding-left: 5px;
    color: black;
    font-size: 18px;
    font-weight: bold;
  }
.display_results.not_display {
    border-left: #ffc107;
    border-left-style: outset;
    padding-left: 5px;
    color: black;
    font-size: 18px;
    font-weight: bold;
  }
  .message_not_container {
    width: 100%;
  }
  .message_neg_container {
    width: 100%;
  }
  .message_pos_container {
    width: 100%;
  }
  
  .display_results.neg_display {
    border-left: #33987e;
    border-left-style: outset;
    padding-left: 5px;
    color: black;
    font-size: 18px;
    font-weight: bold;
  }
  .display_results.non_rect_display {
    border-left: #f7b500;
    border-left-style: outset;
    padding-left: 5px;
    color: black;
    font-size: 18px;
    font-weight: bold;
  }
  .display_results.other_display {
    border-left: #007bff;
    border-left-style: outset;
    padding-left: 5px;
    color: black;
    font-size: 18px;
    font-weight: bold;
  }

/* tag open message applied to everything atm */
.open_message {
    border-top-left-radius: 1rem;
    border-top-right-radius: 6rem;
    background-color: white;
    /* margin-left: 1rem; */
    width: 70vw;
    min-width: 40vw;
    min-height: 20vh;
    color: #1F7F61;
    border-radius: 2rem;
    height: auto;
    /* display: inline-block;  */
    /* this is the height to adjust  */
}

#open_message .message-margin {
    height: auto;
}

.chain-start {
    /* height: 50rem; */
    /* same as .message_index */
    min-width: 40vw;
    max-width: 70vw;
}

.replyButton {
    background-color: transparent;
    border: none;
    outline: none;
}

/* tag deals with replies */
.message_container {
    /* display: inline-block; */
    background-color: transparent;
}

.from_header_el {
    margin-left: 1rem;
}

.header-date {
    margin-right: 1rem;
}

.header-date-reply {
    margin-right: 1rem; 
}

.header_font {
    font-family: "GTSuperDSTrial";
    color: black;
    font-size: 8rem;
}

.inbox_header {
    margin-bottom: 2rem;
}

.body_inbox, .body_history {
    background-color: #FEFAF0;
}

.msg_panel {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
}
/* tag TAG */
.message_header {
    background-color: #4ca590;
    display: flex;
    justify-content: space-between;
    color: white;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    height: 60px;
    align-items: center;
    padding: 0 8px;
}

.replyChain_header {
    display: flex;
    justify-content: space-between;
    word-wrap: break-word;
    flex-direction: column;
}

.send_header {
    background-color: #4ca590;
    display: flex;
    align-items: flex-end;
    color: white;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.sendButton {
    background-color: white;
    border-radius: 100px;
    width: 100px;
    height: 30px;
    color: #1F7F61;
    width: 18.8rem;
    height: 40px;
    font-family: 'Founders Grotesk Regular';
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.sendButtonreply {
    background-color: white;
    border-radius: 100px;
    width: 100px;
    height: 30px;
    color: #1F7F61;
    width: 18.8rem;
    height: 40px;
    font-family: 'Founders Grotesk Regular';
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin: 10px;
}

.send_textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.4;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
  color: black;
  outline: none;
  box-sizing: border-box;
  margin-top: 20px;
}

.load_text {
    margin: 0;
    padding: 0;
}

/* message checkbox */

.acknowledge-test-label {
    font-size: 2.5rem;
    font-family: "FoundersGrotesk-Light";
    float: none;
    border-radius: 5rem;
    padding: 1rem;
    background:#b3d9cf;
}

.test-checkbox-container {
    display: flex;
    flex-direction: row;
    margin-top: 2rem;
}

input[type="checkbox"] + #test-checkbox-label:before {
    border-radius: 3px;
    border: 1px solid #1F7F61;
    content: "\00a0";
    display: inline-block;
    /* font: 16px/1em sans-serif; */
    height: 16px;
    width: 16px;
    margin-right: .7rem;
    position: relative;
    bottom: .2rem;
}

input[type="checkbox"]:checked + #test-checkbox-label:before {
    content: "\2713";
    color: #1F7F61;
}

input[type="checkbox"]:focus + #test-checkbox-label:before {
    outline: transparent;
}

/* */
.message-margin {
    margin-top: 2rem;
    margin-bottom: 2rem;
    height: 60rem;
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
}

.root-message {
    background: white;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 40rem;
}

/* input{
    text-indent: 1rem;
} */
/* 
.open_message < .msg_reply {
    display
} */
.test_container_font {
    font-family: "FoundersGrotesk-Light";
    font-size: 2.5rem;
    color: #007F60;
    letter-spacing: 0.31px;
    margin-left: 2rem;
}


.message_text {
    font-family: "FoundersGrotesk-Light";
    font-size: 2.5rem;
    color: #007F60;
    letter-spacing: 0.31px;
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.test_divider_font {
    font-family: "FoundersGrotesk-Light";
    font-size: 2.5rem;
    color: #007F60;
    letter-spacing: 0.31px;
}

.chain-reply-date {
    margin-right: 2rem;
    font-family: "FoundersGrotesk-Light";
}

.new-msg-to-container {
    font-family: "FoundersGrotesk-Light";
  display: flex;
  align-items: center;
  justify-content: center;
      flex-direction: row;
      width: 100%;
}

.modal-acknowledge {
    height: 20rem;
    width: 20rem;
    background: black;
    position: absolute;
}

.hidden-test {
    display: none;
}




.modal-content {
    font-family: "FoundersGrotesk-Light";
    color: white;
    font-size: 25px;
    background: #866BD9;
    border: 2px white solid !important;
}
.modal-header {
    font-family: "GTSuperDSTrial";
    background: #866BD9;
}
.modal-footer {
    background: #866BD9;
}
.modal-body {
    background: #866BD9;
}
.modal-title.h4 {
    font-size: 100px;
}
.btn-primary {
    font-family: "FoundersGrotesk-Light" !important;
    background-color: #866BD9 !important;
    color: white !important;
    border: 2px white solid !important;
    background: #866BD9 !important;
    border-radius: 29px !important;
    font-size: 25px !important;
    outline: transparent !important;
}

.modal-backdrop {
    background-color: transparent !important;
    z-index: -100 !important;
}

.load_message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
    width: 100%;
}

.message_header > div, .message_header > div span {
    width: 100%;
}

@media only screen and (max-width: 991px) {
    .panel-flex {
        flex-direction: column;
    }
    .message_index {
        width: 100%;
        margin: 0;
        margin-top:20px;
    }

    .panel-buttons-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .new_msg_button {
        margin: 1rem;
    }

    .message_buttons {
        margin: 1rem 2rem 1rem 0;
    }

    #new-message-button {
        margin-right: 0;
    }

    .panel-buttons-container {
        margin-right: 0;
    }
    .chain-start {
        max-width: 100%;
        width: 100%;
    }
    .open_message {
        width: 100%;
    }
}

@media only screen and (max-width: 799px) {
    .modal-title.h4 {
        font-size: 50px;
    }

    .msg_panel {
        padding: 1rem;
        width: 100%;
    }

    .header_font {
        font-size: 5rem;
    }
    .results_container {
        display: block;
    }
    .neg_display {
        margin-bottom: 20px;
    }
    .test-checkbox-container {
        display: block;
    }
    .acknowledge-test-label {
        padding: 10px 20px;
        margin: 10px;
    }
    .body_inbox.modal-open .modal {
        position: absolute;
    }
}

@media only screen and (max-width: 450px) {
    .message_index tr td {
        font-size: 15px;
    }
    .message_buttons {
        padding: 0 10px;
    }
    .chain-start {
        width: 100%;
        max-width: 100%;
    }
    .open_message {
        width: 100%;
        margin-top: 30px;
    }

    .new_msg_container {
        max-width: 100%;
        width: 100%;
    }

    .new_msg_button {
        margin-right: 0;
    }

    .msg_inputs {
        width: 100%;
    }

    .msg_sub_input {
        width: 100%;
    }

    .inbox_container {
        width: 100%;
    }

    .send_textarea {
        width: 100%;
    }

    .sendButton {
        width: 100%;
    }

    .new-msg-to-container {
        margin-top: 20px;
    }
}

/* Container */
.new_msg_container {
  width: 100%;
  max-width: 900px;
  padding: 30px;
  background-color: white;
  border-radius: 12px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); */
  border: 1px solid #ddd;
}

/* Form Layout */
.new_msg_form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header Section */
.send-overhead {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  flex-direction: column;
}

.new-msg-to-container {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.new_subject {
  font-weight: 600;
  color: #222;
  margin: 0;
}

/* Subject Input */
.new_msg_input {
  flex-grow: 1;
  width: 100%;
}

.msg_sub_input {
  width: 100%;
  height: 44px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}

.msg_sub_input::placeholder {
  color: #757575;
  
}

/* Textarea Section */
.inbox_container {
  margin-top: 10px;
}

.send_textarea {
  width: 100%;
  min-height: 180px;
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
  font-family: inherit;
}

/* Attachment File List */
.attachment-files {
  display: flex;
  align-items: center;
  background: #f4f4f4;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  font-size: 14px;
}

.file-name-text {
  flex-grow: 1;
  color: #333;
  overflow-wrap: break-word;
}

.fa-times {
  color: #c00;
  font-size: 16px;
  cursor: pointer;
}

/* Send Section */
.send-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.replyButton.sendButton {
  background-color: #007b5e;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.replyButton.sendButton:hover {
  background-color: #005e4d;
}

.cursor-pointer {
  cursor: pointer;
}

.cursor-pointer:hover {
  opacity: 0.8;
}

@media only screen and (max-width: 450px) {
  .new_msg_container {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .send-overhead {
    flex-direction: column;
    gap: 10px;
  }

  .new_msg_input {
    width: 100%;
  }

  .msg_sub_input {
    width: 100%;
    height: 36px;
    font-size: 14px;
    padding: 10px 12px;
  }

  .send_textarea {
    width: 100%;
    font-size: 14px;
    padding: 10px;
  }

  .send-message {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .replyButton.sendButton {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .attach-icon {
    display: flex;
    justify-content: center;
  }
}

/* Label for the dropdown */
.msg_label {
  font-weight: 600;
  margin-right: 10px;
  color: #222;
  font-size: 15px;
  text-align: left;
  vertical-align: middle;
}

/* Styled select dropdown */
.msg_select {
  background-color: white;
  color: black;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px 14px;
  height: 44px;
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.2s ease;
  box-shadow: none;
  outline: none;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.msg_select:focus {
  border-color: #1F7F61;
  box-shadow: 0 0 0 2px rgba(31, 127, 97, 0.15);
}

/* Input focus */
.msg_sub_input:focus {
  border-color: #1F7F61;
  box-shadow: 0 0 0 2px rgba(31, 127, 97, 0.15);
  outline: none;
}

/* Textarea focus */
.send_textarea:focus {
  border-color: #1F7F61;
  box-shadow: 0 0 0 2px rgba(31, 127, 97, 0.15);
  outline: none;
}

/* Dropdown focus */
.msg_select:focus {
  border-color: #1F7F61;
  box-shadow: 0 0 0 2px rgba(31, 127, 97, 0.15);
  outline: none;
}

.secure-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.secure-modal-content {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
}

.secure-modal-close {
  display: block;
  height: 3em;
  width: auto;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  margin: 10px auto 0;
  padding: 6px 14px;
  border: none;
  background: #006653;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}