@font-face {
  font-family: Barlow-Bold;
  src: url(../fonts/Barlow-Bold.ttf);
}
@font-face {
  font-family: Barlow-SemiBold;
  src: url(../fonts/Barlow-SemiBold.ttf);
}
@font-face {
  font-family: Barlow-Medium;
  src: url(../fonts/Barlow-Medium.ttf);
}
@font-face {
  font-family: Barlow-Regular;
  src: url(../fonts/Barlow-Regular.ttf);
}

body {
  font-family: Barlow-Bold;
  background-color: #fff;
  margin: 0;
  padding: 0;
  /* min-height: 100vh; */
  /* overflow: hidden; */
}

/* log-in */
.login-container {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 3;
}
.login-wrapper {
  position: relative;
  background-color: transparent;
  padding: 40px;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.login-header {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.login-header img {
  width: 100%;
}
.login-header-rp {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 20px;
}

.login-header-rp img {
  width: 35%;
}
.login-header h1 {
  font-size: 5rem;
  color: #545654;
  margin: 0;
}

.error-message {
  border: 1px solid #f5b7b1;
  padding: 12px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

.input-group {
  position: relative;
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  text-align: left;
  margin-bottom: 8px;
  margin-left: 25px;
  font-size: 0.9em;
  font-family: Barlow-Bold;
  color: #365b4e;
}

.input-group .loginIcons {
  position: absolute;
  width: 3%;
  left: 18px;
  top: 50%;
  transform: translateY(25%);
  color: #66a284;
}

.input-group .input-field {
  width: 100%;
  padding: 18px 18px 18px 50px;
  border: 1px solid #90cb98;
  border-radius: 30px;
  box-sizing: border-box;
  font-size: 1em;
  background-color: #e8efe8;
  color: #365b4e;
  transition: #365b4e 0.3s, box-shadow 0.3s;
}
.input-group .input-field:focus {
  outline: none;
  border-color: #90cb98;
  box-shadow: 0 0 0 1px rgba(165, 214, 167, 0.584);
}
.input-group .input-field::placeholder {
  color: #365b4e;
}

.input-group .toggle-password {
  position: absolute;
  right: 20px;
  top: 55%;
  width: 5%;
  transform: translateY(25%);
  cursor: pointer;
}

.options-group {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 30px;
  margin-left: 25px;
}
.options-group input[type='checkbox'] {
  display: none;
}
.options-group .custom-checkbox {
  width: 20px;
  height: 20px;
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 1px 8px 20px rgba(59, 109, 87, 0.666);
  border: 2px solid transparent;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  cursor: pointer;
  margin-right: 20px;
  transition: background-color 0.2s;
}
.options-group input[type='checkbox']:checked + .custom-checkbox {
  background-color: #fff;
}
.options-group input[type='checkbox']:checked + .custom-checkbox::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 14px;
}
.options-group label {
  font-size: 0.9em;
  cursor: pointer;
  color: #365b4e;
}
.options-group a {
  color: #4a884e;
  text-decoration: underline;
}
.options-group a:hover {
  text-decoration: underline;
}
.form-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 30px;
  background-image: linear-gradient(to bottom right, #74b67f, #3c6b54);
  color: #fff;
  font-size: 1.1em;
  font-family: Barlow-SemiBold;
  cursor: pointer;
  transition: 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 2px 10px 15px #2e6b5f8b;
}

.back-link {
  display: block;
  margin-top: 20px;
  color: #4a864e;
  text-decoration: none;
  font-size: 0.9em;
}
.login-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 30px;
  background-image: linear-gradient(to bottom right, #74b67f, #3c6b54);
  color: #fff;
  font-size: 1.1em;
  font-family: Barlow-SemiBold;
  cursor: pointer;
  transition: 0.3s, transform 0.2s, box-shadow 0.3s;
  box-shadow: 5px 12px 40px #2e6b5f8b;
}
.login-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 5px 12px 40px #2e6b5f8b;
}
.login-button:disabled {
  cursor: not-allowed;
  box-shadow: 5px 12px 40px #2e6b5f8b;
}
/* forgot password css */
.forgot-password-link {
  display: block;
  margin-top: 20px;
  color: #4a864e;
  font-size: 0.9em;
  text-decoration: none;
  cursor: pointer;
}
.forgot-password-link:hover {
  text-decoration: underline;
}

.modal-overlay-fp {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}
.modal-content-fp {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 30px;
  width: 25%;
  height: auto;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  animation: slideIn 0.4s ease-out;
}
.modal-overlay-rp {
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}
.modal-content-rp {
  width: 100%;
  max-width: 450px;
  text-align: center;
  position: relative;
  animation: slideIn 0.4s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close-btn-fp {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
}
.modal-content-fp h2 {
  font-size: 1.8rem;
  color: #1b5749;
  font-family: Barlow-SemiBold;
  margin: 10px 0;
}
.modal-content-fp p {
  color: #365b4e;
  font-family: Barlow-Medium;
  margin-bottom: 30px;
}
.modal-content-fp .input-field {
  background-color: #8fc996;
  border: 1px solid transparent;
}
.modal-content-fp .input-group .input-field {
  width: 100%;
  padding: 18px 18px 18px 50px;
  border: 1px solid #8fc996;
  border-radius: 30px;
  box-sizing: border-box;
  font-size: 1em;
  background-color: #e8efe8;
  color: #365b4e;
  transition: #365b4e 0.3s, box-shadow 0.3s;
}
.modal-content-fp .form-button {
  border-radius: 30px;
  padding: 18px;
  font-size: 1em;
  font-family: Barlow-Medium;
  background-image: linear-gradient(to bottom right, #74b67f, #3c6b54);
  box-shadow: 2px 10px 15px #2e6b5f8b;
}
.modal-content-fp a.back-button {
  display: block;
  border-radius: 30px;
  padding: 18px;
  text-decoration: none;
  color: #ffff;
  text-align: center;
  font-size: 1em;
  font-family: Barlow-Medium;
  background-image: linear-gradient(to bottom right, #74b67f, #3c6b54);
  box-shadow: 2px 10px 15px #2e6b5f8b;
}
.change-password-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.change-password-container h2 {
  color: #1b5749;
  font-family: Barlow-SemiBold;
  margin: 5vh 0;
}
.resend-info {
  margin-top: 25px;
  font-size: 0.9em;
  color: #666;
}
.resend-link {
  color: #1b5749;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.resend-link.disabled {
  color: #aaa;
  cursor: not-allowed;
  text-decoration: none;
}

/* Dashboard */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding: 50px 40px;
  padding-bottom: 0;
  /* background-color: #E5CEC6; */
}
.modal-overlay-rp .header-bar {
  padding: 0;
}
.header-bar img {
  width: 13%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-icon-placeholder {
  font-size: 1.8em;
  margin-right: 10px;
  color: #5d4037;
}

.logo-text {
  font-size: 1.8em;
  color: #66a486;
}

.logout-button {
  color: #cb6562;
  text-decoration: none;
  font-size: 1em;
  padding: 8px 15px;
  border-radius: 5px;
}
/* Privacy Policy */
.policy-container h1 {
  font-size: 2.5em;
  color: #365b4e;
  margin-bottom: 0;
}
.policy-container {
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.policy-content-wrapper {
  width: 43%;
  background-color: #daeada;
  border-radius: 20px;
  padding: 1em 2em;
  padding-right: 1.5em;
  margin: 1em auto;
  margin-bottom: 0;
  height: 45vh;
  color: #257746;
  font-family: Barlow-Regular;
  font-size: 0.9em;
  text-align: start;
  line-height: 20px;
}
.backToLogin-btn {
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 1px 8px 20px #4b8368bc;
  color: #fff;
  padding: 1em 3em;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-family: Barlow-SemiBold;
  font-size: 0.95em;
  margin-top: 1.5rem;
}
.welcome-container, .policy-container {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.welcome-container h1 {
  font-size: 2.5em;
  color: #282828;
  margin-bottom: 0;
}

.welcome-container p {
  font-size: 1.1em;
  color: #66a486;
}
.dashboard-wrapper {
  position: relative;
  z-index: 2;
}
/*.main-content {*/
/*    margin-bottom: 20px;*/
/*}*/
/* info content */
.info-container {
  align-items: center;
  text-align: center;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 10px;
}
.info-tabs {
  background-color: #f1f1f1;
  width: 45%;
  padding: 0.3em;
  border-radius: 15px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  overflow: overlay;
}

.tab-link {
  width: 100%;
  background-color: transparent;
  color: #66a486;
  font-family: Barlow-SemiBold;
  font-size: 0.95em;
  border-radius: 15px;
  border: none;
  padding: 0.5em 1.5em;
  cursor: pointer;
}
.tab-link.active {
  background-image: linear-gradient(to bottom right, #5b9579, #4b8368);
  box-shadow: 1px 8px 20px rgba(59, 109, 87, 0.666);
  color: #fff;
}
.info-content-wrapper {
  width: 43%;
  background-color: #daeada;
  border-radius: 20px;
  padding: 1em;
  padding-right: 1.5em;
  margin: 1em auto;
  margin-bottom: 0;
  height: 35vh;
}
.info-content {
  width: 100%;
  height: 35vh;
  overflow-y: auto;
}
.policy-content-wrapper .info-content {
  height: 45vh;
}
.info-content::-webkit-scrollbar {
  width: 5px;
}

.info-content::-webkit-scrollbar-thumb {
  background-color: #a8cca8;
  border-radius: 4px;
}
.info-content {
  scroll-behavior: smooth;
}
.tab-content {
  display: none;
  padding: 0 1em;
  color: #257746;
  font-family: Barlow-Regular;
  font-size: 0.9em;
  text-align: start;
  line-height: 20px;
}
.tab-content.active {
  display: block;
}
.start-button-container {
  align-items: center;
  text-align: center;
  justify-content: center;
}
.start-button {
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 1px 8px 20px #4b8368bc;
  color: #fff;
  padding: 1em;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-family: Barlow-SemiBold;
  font-size: 0.95em;
  margin-top: 1.5rem;
}
.start-button img {
  margin-left: 25px;
  width: 20px;
}
/* action section */
.action-section {
  display: none;
  text-align: center;
}

.action-buttons-container {
  margin-top: 2vh;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px;
  /* flex-wrap: wrap; */
}
.action-button {
  width: 40%;
  border-radius: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 10px 15px 30px #3b6d57d9;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  z-index: 2;
}

.action-button:active:not(.disabled) {
  box-shadow: inset 5px 5px 10px #e3e2e2, inset -5px -5px 10px #e3e2e2;
  transform: translateY(2px);
}

.button-icon {
  width: 100%;
}

/* Participants Table */
.paticipants-table-container {
  width: 45%;
  height: 35%;
  margin: 0 auto;
  padding: 15px;
  background-color: #eae9e9;
  border-radius: 20px;
  text-align: left;
}
.participants-table {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 40vh; 
  overflow-y: scroll; 
}

.table-header,
.participant-row {
  display: grid;
  grid-template-columns: 2fr 2fr 3fr 2fr;
  align-items: center;
}

.table-header {
  font-family: Barlow-Bold;
  font-weight: 900;
  color: #2e8c47;
  font-size: 0.8em;
  background-color: #cde7d0;
  border-radius: 8px;
  padding: 10px 15px;
  margin-bottom: 10px;
}

.participant-row {
  /* transition: background-color 0.2s; */
  background-color: #ffffff;
  font-size: 0.8em;
  color: #2d564a;
  font-family: Barlow-Regular;
  border-radius: 8px;
  border: 1px solid #27ae60;
  padding: 15px;
  margin: 5px 0;
  cursor: pointer;
}
.participant-row:hover {
  background-color: #f9fafb;
}

.cell {
  padding: 0 5px;
}

.participant-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dateTime-update-container {
  display: flex;
  height: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  line-height: 0.1vh;
  color: #727272;
  font-size: 0.9em;
  font-family: Barlow-Regular;
}
.dateTime-update-container p {
  margin: 1.5vh 0;
}
.bold {
  font-family: Barlow-Bold;
}

.fill-survey-btn {
  background-color: transparent;
}
/* .fill-survey-btn .button-icon {
    filter: brightness(0) invert(1); 
} */

.edit-survey-btn {
  background-color: transparent;
  box-shadow: none;
}

/* .edit-survey-btn .button-icon { filter: opacity(0.6); } */

.action-button.disabled {
  background-color: #efebe9;
  color: #bdbdbd;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}
.action-button.disabled:active {
  transform: none;
  box-shadow: none;
}
.action-button.disabled .button-icon {
  opacity: 0.4;
}

.backgroundWave {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 35%;
  z-index: 1;
}

/* Fill up survey */

.survey-container {
  width: 80%;
  margin: 20px auto;
  background-color: #fff;
  padding: 30px 0;
}

.survey-header {
  margin-bottom: 25px;
  width: 13%;
}

.back-to-home {
  text-decoration: none;
  color: #1b5749;
  font-size: 1em;
  display: flex;
  align-items: center;
}

.back-to-home img {
  margin-right: 12px;
  width: 12%;
}

.back-to-home:hover {
  color: #4a884e;
}

/* Progress Bar */
.progress-bar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 15px;
  background-image: linear-gradient(to bottom right, #5a5b5a, #474747);
  box-shadow: 10px 15px 25px #54565469;
  border-radius: 15px;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.progress-dot {
  width: 15px;
  height: 15px;
  background-color: #fff;
  border-radius: 50%;
  border: 3px solid #fff;
  transition: all 0.3s ease;
  background-image: url(/images/check.png);
  background-repeat: round;
  /* content:url(/images/check.png); */
}

.progress-step.active .progress-dot {
  background-color: #7fcb84;
  border-color: #7fcb84;
}

.progress-line {
  flex-grow: 1;
  height: 2px;
  background-color: #e0e0e0;
  margin: 0 10px;
}
.progress-step.active + .progress-line,
.progress-step.completed + .progress-line {
  background-color: #7fcb84;
}

.survey-part h2 {
  font-size: 1.6em;
  color: #1b5749;
  font-family: Barlow-SemiBold;
  margin-bottom: 30px;
  margin-top: 0.5em;
}

.form-grid {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.form-group {
  margin-bottom: 10px;
  width: 25vw;
}
.form-group-cpg {
  width: 100%;
}
.form-group-bottom {
  width: 20vw;
}
#role_others_specify_group {
  width: 25vw;
}

.form-group label {
  display: block;
  margin: 8px 0;
  font-size: 0.9em;
  color: #1b5749;
}
.form-group.full-width {
  width: 45vw;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon img {
  width: 15px;
  position: absolute;
  left: 15px;
}

.input-with-icon i {
  position: absolute;
  left: 15px;
  color: #95a5a6;
  font-size: 0.95em;
}

.input-with-icon input[type='text'],
.input-with-icon input[type='email'],
.input-with-icon input[type='tel'],
.input-with-icon input[type='date'] {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #7fcf95;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95em;
  font-family: 'Barlow-Medium';
  background-color: #fdfdfd;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-with-icon input[type='text']:focus,
.input-with-icon input[type='email']:focus,
.input-with-icon input[type='tel']:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

/* .input-with-icon input:not(:placeholder-shown) + label,
.input-with-icon input:focus + label {
   
} */

.form-navigation {
  margin-top: 40px;
  text-align: right;
}

.next-button {
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 2px 7px 15px #4b8368bf;
  color: #fff;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: 25px;

  cursor: pointer;
  font-size: 0.9em;
  font-family: Barlow-Bold;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.3s ease;
}

.next-button img {
  margin-left: 55px;
  width: 20px;
}

.next-button:hover {
  border-color: #1b5749;
}

/* @media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr; 
    }
    .survey-container {
        padding: 20px;
    }
    .progress-bar-container {
        
    }
} */

/* css for Part 2 */

.survey-part {
  padding-top: 1px;
}
.form-section {
  background-color: #f1f1f1;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 30px;
  border: 1px solid #eee;
}
.form-section-cpg {
  height: auto;
  overflow-y: scroll;
}
.top-section {
  background-color: #daeada;
  max-width: 280px;
  margin-bottom: 20px;
  border-radius: 10px;
}
.form-container {
  max-width: 500px;
  background-color: #daeada;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 1px solid #daeada;
}
.form-section .disclaimer {
  font-family: Barlow-Medium;
  font-size: 0.9em;
}
.section-sub-label {
  display: block;
  font-size: 1.2em;
  color: #1b5749;
  margin-bottom: 15px;
}

.form-group .advocacy-lobby {
  display: block;
  position: relative;
  padding: 3px 0;
  padding-left: 35px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 17px;
  color: #008d3e;
  align-items: center;
  justify-content: center;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.advocacy-lobby input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #b8d8b8;
  border-radius: 5px;
}

.advocacy-lobby input:checked ~ .checkmark {
  background-color: #b8d8b8;
}

.checkmark:after {
  content: '';
  position: absolute;
  display: none;
}

.advocacy-lobby input:checked ~ .checkmark:after {
  display: block;
}

.advocacy-lobby .checkmark:after {
  left: 9px;
  top: 5px;
  width: 5px;
  height: 10px;
  border: solid #ffff;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

.form-container .input-with-icon i {
  position: absolute;
  left: 15px;
  color: #6fad6f;
  font-size: 0.95em;
}

.form-container .input-with-icon input[type='text'],
.form-container .input-with-icon input[type='email'],
.form-container .input-with-icon input[type='tel'] {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #b8d8b8;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95em;
  color: #578e57;
  background-color: #b8d8b8;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-container .input-with-icon input[type='text']::placeholder {
  color: #578e57;
}
.cpg-icon {
  width: 23px;
}
/* Role Options Grid */

.role-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.radio-option {
  background-color: #fff;
  border: 1px solid #7fcf95;
  border-radius: 8px;
  height: 4vh;
  padding: 12px 15px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.radio-option:hover {
  border-color: #4caf50;
}
.radio-option input[type='radio'] {
  margin-right: 10px;
  color: #1b5749;
  accent-color: #4caf50;
  width: 18px;
  height: 18px;
  cursor: pointer;
}
.radio-option {
  font-size: 0.9em;
  color: #1b5749;
  cursor: pointer;
  margin-bottom: 0;
}
.radio-option input[type='radio']:checked + label {
  font-weight: 500;
}
.radio-option.selected {
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}
#role_others_specify_group label {
  color: #757575;
  margin-left: 20px;
}
#role_others_specify_group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #7fcf95;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95em;
  background-color: #fdfdfd;
  min-height: 40px;
}
#role_others_specify_group textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.cpg-roles-container {
  border: 1px solid #eee;
  border-radius: 20px;
  padding: 20px;
  background-color: #f1f1f1;
  /* min-height: 300px; */
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cpg-roles-display-area {
  display: flex;
  /* flex-direction: column; */
  gap: 10px;
}

.cpg-role-item {
  max-width: 20vw;
  width: 15vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* align-items: center; */
  background-color: #daeada;
  padding: 15px 20px;
  border-radius: 10px;
}

.cpg-role-info {
  align-items: start;
  display: flex;
  flex-direction: column;
  margin-bottom: 2vh;
}
.cpg-role-actions {
  text-align: end;
}
.cpg-role-title {
  font-family: Barlow-Bold;
  font-size: 1.1em;
  display: block;
  color: #1b5749;
}

.cpg-role-subtitle {
  font-size: 0.9em;
  font-family: Barlow-Regular;
  color: #008d3e;
}

.cpg-role-actions button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}
.cpg-role-actions button:hover {
  color: #39796b;
}

.add-role-button {
  align-self: flex-start;
  background-image: linear-gradient(to bottom right, #5a5b5a, #474747);
  box-shadow: 10px 15px 25px #54565469;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9em;
  font-family: Barlow-SemiBold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
}
.add-role-button:hover {
  background-color: #333;
}

.input-with-icon .input-field {
  width: 100%;
  padding: 12px 15px 12px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95em;
  background-color: #b8d8b8;
  color: #578e57;
  font-family: Barlow-Bold;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 20px;
}

.cancel-btn {
  background-color: #dee0df;
  color: #1b5749;
  padding: 12px 26px;
  border-radius: 25px;
  font-family: Barlow-Bold;
  font-size: 0.9em;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.save-btn {
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 2px 7px 15px #4b8368bf;
  color: #fff;
  padding: 12px 30px;
  border-radius: 25px;
  font-family: Barlow-Bold;
  font-size: 0.9em;
  cursor: pointer;
  border: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Part 3-6 */

#part2 .form-container,
#part3 .form-container,
#part4 .form-container,
#part5 .form-container,
#part6 .form-container {
  max-width: 100%;
  color: #008d3e;
}

.subsection-title {
  font-size: 1.2em;
  color: #1b5749;
  margin: 0;
}

.question-text {
  font-size: 1em;
  line-height: 1.5;
  margin-bottom: 15px;
}
.cvTitle {
  font-size: 1em;
  line-height: 1.5;
  margin: 0;
}
.cvText {
  font-size: 0.9em;
  font-family: Barlow-Medium;
  margin: 0.5vh 0;
}
.uploadCvBtn {
  font-size: 1em;
  color: #008d3e;
}
.upload-cv-btn {
  background-image: linear-gradient(to bottom right, #545654, #4b4c4b);
  color: #ffff;
  padding: 10px 25px;
  border: 1px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1em;
  font-family: Barlow-Bold;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  transition: 0.3s ease, 0.3s ease;
}
.upload-cv-btn img {
  width: 13%;
}

#part2 .form-container ol,
#part3 .form-container ol,
#part4 .form-container ol {
  padding-left: 20px;
  font-size: 0.9em;
  font-family: Barlow-Medium;
}

#part2 .form-container li,
#part3 .form-container li,
#part4 .form-container li {
  margin-bottom: 5px;
}

.yes-no-options {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.yes-no-options .radio-option {
  flex-grow: 1;
  justify-content: flex-start;
}
#part2 .form-group,
#part3 .form-group,
#part4 .form-group,
#part5 .form-group {
  width: 75vw;
}
#financial_conflict_details_group label {
  color: #757575;
  margin-left: 15px;
}

/* Textarea with Expand Icon */
textarea {
  background-color: #d6d6d6;
}
.textarea-with-icon {
  position: relative;
  width: 75%;
}

.textarea-with-icon textarea {
  width: 100%;
  padding: 10px 40px 10px 15px;
  border: 1px solid #7fcf95;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 0.95em;
  background-color: #fdfdfd;
  resize: vertical;
}
.textarea-with-icon textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.expand-icon {
  width: 3%;
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
}

.advocacy-textarea {
  margin-top: 10px;
  display: none;
}
.advocacy-textarea.active {
  display: block;
}
.checkbox-group {
  display: flex;
  padding: 10px;
  background: #daeada;
  width: 49%;
  border-radius: 8px;
}
.checkbox-group input {
  background-color: #b8d8b8;
  width: 20px;
}
.checkbox-group input[type='checkbox'] {
  accent-color: #b8d8b8;
}
.checkbox-label {
  margin-bottom: 0;
}
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 25px;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}
/* .cpg-modal-content {
  height: auto;
} */
.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  color: #888;
  cursor: pointer;
}
.modal-close-btn:hover {
  color: #333;
}

#modalTextarea {
  flex-grow: 1;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 15px;
  font-size: 1em;
  line-height: 1.6;
  resize: none;
  box-sizing: border-box;
}
#modalTextarea:focus {
  outline: none;
  border-color: transparent;
}

/* Summary Section */
.summary-container {
  background-color: #f1f1f1;
  border: 1px solid #f1f1f1;
  border-radius: 15px;
  padding: 25px;
}

.summary-section {
  width: 90%;
  background-color: #e0e2e0;
  border: 1px solid #e0e2e0;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 25px;
}
#summary_part1 {
  background-color: #cde7d0;
}
.summary-section h4 {
  font-size: 1.4em;
  color: #1b5749;
  font-family: Barlow-Bold;
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
}

/* Part 1 Summary Grid */
.summary-grid-part1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  width: 85%;
}
.summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.summary-item img {
  width: 30px;
}
.summary-label {
  display: block;
  font-family: Barlow-Bold;
  font-size: 0.85em;
  color: #1b5749;
  margin-bottom: 1em;
}
.summary-grid-part1 .summary-label {
  color: #2e8c47;
}
.summary-value {
  font-size: 0.85em;
  color: #2d564a;
}

/* Part 2 Summary Grid */
.summary-grid-part2 {
  width: 95%;
  /* display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px; */
}
.summary-box {
  background-image: linear-gradient(to bottom right, #5a5b5a, #474747);
  padding: 15px;
  width: 180px;
  border-radius: 12px;
  font-family: Barlow-Bold;
  color: #ffff;
}

.summary-roles-container {
  display: flex;
  gap: 5px;
}

/* Part 3 Summary */
.summary-item-long {
  width: 80%;
  padding-bottom: 20px;
  margin-bottom: 20px;
}
.dotted-bottom {
  border-bottom: 1px dotted #c1c1c1;
}
.summary-item-long .summary-label {
  font-size: 1.1em;

  margin-bottom: 5px;
}
.summary-item-long p {
  font-size: 0.9em;
  color: #008d3e;
  margin-top: 0;
}

.summary-answer-box {
  width: 6%;
  font-size: 0.8em;
  color: #ffff;
  margin-bottom: 10px;
  background-image: linear-gradient(to bottom right, #5a5b5a, #474747);
  padding: 10px 15px;
  border-radius: 20px;
}
.text-danger {
  color: #e46a6a;
}
.text-success {
  color: #7fcb84;
}
.summary-answer-box i {
  margin-right: 5px;
}
.summary-details-box {
  position: relative;
  background-image: linear-gradient(to bottom right, #5a5b5a, #474747);
  padding: 15px;
  border-radius: 12px;
  white-space: pre-wrap;
  font-size: 0.9em;
  color: #ffff;
  font-family: Barlow-Regular;
}
.expand-icon-summary {
  position: absolute;
  top: 15px;
  right: 15px;
  color: #777;
  cursor: pointer;
  transition: color 0.2s ease;
}

.expand-icon-summary:hover {
  color: #333;
}

.advocacy-details div {
  color: #008d3e;
  display: block;
  margin-top: 15px;
  margin-bottom: 25px;
}
.advocacy-details i {
  font-size: 20px;
}

.summary-details-content {
  color: #fff;
  line-height: 1.5;
}

.review-cv-button {
  background-image: linear-gradient(to bottom right, #408c6a, #20774a);
  box-shadow: 2px 7px 15px #4b8368bf;
  color: #ffff;
  padding: 1em 4em;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 1em;
  font-family: Barlow-SemiBold;
}

/* Save Button */
.submit-button {
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  color: #ffff;
  padding: 12px 23px;
  box-shadow: 2px 7px 15px #4b8368bf;
  border: 1px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9em;
  font-family: Barlow-Bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.3s ease;
}

.submit-button img {
  margin-left: 55px;
  width: 18px;
}

.submit-button:hover {
  border-color: #1b5749;
}

@media (max-width: 768px) {
  .summary-grid-part2 {
    grid-template-columns: 1fr;
  }
}

/* Navigation Buttons Styling */

.form-navigation {
  display: flex;
  justify-content: end;
  gap: 10px;
  align-items: center;
  margin-top: 10vh;
}
#part6 .form-navigation {
  margin-top: 25vh;
}
.previous-button {
  background-color: #dee0df;
  color: #1b5749;
  padding: 12px 25px;
  border: 1px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  font-size: 0.9em;
  font-family: Barlow-Bold;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.previous-button img {
  margin-right: 25.5px;
  width: 20px;
}
.previous-button:hover {
  background-color: #e0e0e0;
  border-color: #bbb;
}

.submit-button {
  background-color: #28a745;
}

.progress-step.completed .progress-dot {
  background-color: #7fcb84;
  border-color: #7fcb84;
  content: '';
}
.progress-line.active-line {
  background-color: #7fcb84 !important;
}

/* modal/prompt */

.submission-modal-content {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 25px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.submission-modal-content h3 {
  font-size: 1.5em;
  font-family: Barlow-Bold;
  color: #2d564a;
  margin-top: 0;
  margin-bottom: 15px;
}

.submission-modal-content p {
  color: #7c7c7c;
  line-height: 1.6;
  margin-bottom: 30px;
  font-family: Barlow-Regular;
}
.submission-modal-content p .save-as-draft {
  color: #383838;
  font-family: Barlow-Bold;
}
.submission-modal-content p .save-and-submit {
  color: #008d3e;
  font-family: Barlow-Bold;
}
.submission-modal-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.draft-btn,
.submit-btn {
  width: 28% !important;
}

.modal-button {
  /* flex-grow: 1; */
  width: 10%;
  padding: 10px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-family: Barlow-Bold;
  font-size: 0.9em;
  color: #fff;
  transition: all 0.2s ease;
}

.draft-btn {
  background-image: linear-gradient(to bottom right, #545654, #4b4c4b);
  box-shadow: 2px 7px 15px rgba(0, 0, 0, 0.378);
}
.draft-btn:hover {
  border-color: #bbb;
}

.submit-btn {
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 2px 7px 15px #4b8368bf;
}
.submit-btn:hover {
  border-color: #1b5749;
}

/* Styles for the status/thank you modal on the dashboard */
.status-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 30, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.status-modal-content {
  background-color: #f2f2f2;
  padding: 30px 40px;
  border-radius: 16px;
  text-align: center;
  max-width: 400px;
}

.status-modal-content h3 {
  margin: 0;
  font-size: 1.6em;
  color: #2d564a;
}
.status-modal-content p {
  color: #7c7c7c;
}

.status-modal-close-btn {
  margin-top: 5px;
  padding: 7px 40px;
  border: none;
  border-radius: 20px;
  background-image: linear-gradient(to bottom right, #74b67d, #4b8368);
  box-shadow: 1px 8px 20px rgba(59, 109, 87, 0.666);
  color: #ffff;
  font-size: 0.9em;
  font-family: Barlow-Bold;
  cursor: pointer;
}

.final-warning-modal {
  max-width: 550px;
}

.final-warning-modal .warning-text {
  color: #cb6562;
  font-family: Barlow-Bold;
  margin: 1vh 0;
  margin-bottom: 0;
}
.final-warning-modal p {
  color: #7c7c7c;
  line-height: 1.6;
  margin: 0;
  margin-bottom: 30px;
  font-family: Barlow-Regular;
}

/* Edit personal information */
.edit-button {
  text-align: center;
  color: #3d8a47;
  font-family: Barlow-Bold;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background-color: transparent;
}
.modal-overlay-editInfo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  z-index: 9999;
}

.modal-overlay-editInfo .modal-content {
  background-color: #efefef;
  padding: 30px;
  border-radius: 25px;
  width: 90%;
  height: auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
  animation: fadeIn 0.3s ease;
}

.modal-overlay-editInfo .modal-content h2 {
  font-size: 1.5rem;
  margin: 0;
  margin-bottom: 2rem;
  color: #1b5749;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: #008d3e;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

