table, th, td{
	width: 100%;
}

.instruction-active {
    font-weight: bold;
    color: #235d8e;
}

.form-group .input-group-addon {
    cursor: pointer;
}

.form-group{
	margin-bottom: 0px !important;
}

.form-control{
	height: 40px;
}

/* ADA compliance: btn-lg override — Bootstrap default is 18px, too wide for button */
.btn-lg {
    font-size: 16px;
    padding: 10px 16px;
}

.btn-next {
    text-transform: uppercase;
}

/* Bootstrap scaffolding sets a:hover/focus to a dark link color, which bleeds through
   onto button-styled anchors. Override here since inline styles can't cover pseudo-states. */
a.w3-button:hover,
a.w3-button:focus,
a.btn:hover,
a.btn:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}


.input-group .form-control{
	/* border-radius: 3px !important; */
}


#nomination strong {
    display: block;
    width: auto;
    float: left;
    margin-right: 20px;
    margin-top: 5px;
}
#nomination span.input-group-addon {
    width: 30px;
    border-left: 1px solid #ccc;
}

.text-center.page-header{
	margin: 0px 0px 21px 0px !important;
}

#start .container h2 {
    font-size: 24px;
    line-height: 35px;
}




/* Global Stylings for progress */
:root {
  --primary-color: rgb(11, 78, 179);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}


label {
  display: block;
  margin-bottom: 0.5rem;
}

.width-50 {
  width: 50%;
}

.ml-auto {
  margin-left: auto;
}

.text-center {
  text-align: center;
}

/* Progressbar */
.progressbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  counter-reset: step;
  margin: 1rem 2rem 7rem;
}

.progressbar::before,
.progress {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background-color: #dcdcdc;
  z-index: 0;
}

.progress {
  background-color: var(--primary-color);
  width: 0%;
  transition: 0.3s;
}
 

.progress-step {
  width: 4rem;
  height: 4rem;
  background-color: #dcdcdc;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.progress-step::before {
  counter-increment: step;
  content: counter(step);
}

.progress-step::after {
  content: attr(data-title);
  position: absolute;
  top: calc(100% + 0.5rem);
  font-size: 1.2rem;
  color: #666;
}

.progress-step-active {
  background-color: var(--primary-color);
  color: #f3f3f3;
}

/* Form */
.form-step {
  display: none;
  transform-origin: top;
  animation: animate 0.5s;
}

.form-step-active {
  display: block;
}

.input-group {
  margin:0 0 2rem 0;
}

@keyframes animate {
  from {
    transform: scale(1, 0);
    opacity: 0;
  }
  to {
    transform: scale(1, 1);
    opacity: 1;
  }
}

/* Button */
.btns-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}	


/* next step delay */	
.next-step {
    width: 0; /* Start with a width of 0 */
    transition: width 1.5s; /* Transition the width property over 2 seconds */
}

/* Add this if you want to keep the width at 35% after the transition */ 
.next-step.expanded {
    width: 35%; /* Set the final width after the transition */
}	



/* third step delay */	
.third-step {
    width: 35%; /* Start with a width of 0 */
    transition: width 1.5s; /* Transition the width property over 2 seconds */
}

/* Add this if you want to keep the width at 35% after the transition */
.third-step.expanded {
    width: 65%; /* Set the final width after the transition */
}	

.third-final-step{
    width:65%; /* Start with a width of 0 */
    transition: width 1.5s; /* Transition the width property over 2 seconds */
}
/* Add this if you want to keep the width at 35% after the transition */
.third-final-step.expanded {
    width: 65%; /* Set the final width after the transition */
}


/* fourth step */
.fourth-step {
    width: 65%; /* Start with a width of 0 */
    transition: width 1.5s; /* Transition the width property over 2 seconds */
}

/* Add this if you want to keep the width at 35% after the transition */
.fourth-step.expanded {
    width: 100%; /* Set the final width after the transition */
}

/* #modalQuestionBox position/size/display are all set via inline styles
   in positionModal() (app.js) so Bootstrap's own inline styles cannot win.
   Only z-index and overflow live here as safe stylesheet-only properties. */
#modalQuestionBox {
  z-index: 1050;
  overflow-y: auto;
}

#modalQuestionBox .modal-dialog {
  margin: 0;
  width: 100%;
  max-width: 600px;
  position: relative;
}

@media (max-width: 767px) {
    /* Remove Bootstrap column gutter so progress step labels aren't clipped */
    .col-md-8.col-md-offset-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Shrink progressbar margins and center labels under each step circle */
    .progressbar {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .progress-step::after {
        font-size: 1rem;
        transform: translateX(0%);
    }

    /* Allow long submit button text to wrap instead of clipping */
    .btn-next.btn-block {
        white-space: normal;
    }
}

