
html,body{
  font-family: Poppins !important;
  font-size: 1rem;
  height: 100%;
  margin: 0;
}

.main-header{
  background-color: #297382;
  color: #fff;
  height: 8rem;
  position: relative;
}

.logo {
  position: absolute;
  height: 4rem;
  margin-top: 1vw;
  left: 2.5vw;
  
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 97.5vh;
}

#footer {
  font-size: 85%;
  background-color: #297382;
  color: #fff;
  text-align: center;
  padding: 2px;
  margin-top:3px;
}

 /* Styling for the questionnaire container */
.questionnaire-container {
    max-width: 80vw;
    margin: auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display:flex;
    flex-direction: column;
}

/* Row Styling */
.question-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
}

/* Alternate Background Colors for Rows */
.question-row:nth-child(odd) {
    background-color: #f5f7f9; 
}

.question-row:nth-child(even) {
    background-color: #e1f2f0; 
}

/* Question Styling */
.question {
    flex: 2;
    font-size: 16px;
    font-weight: 400;
    margin-right: 20px;
    color: #2E2E2E;
}

/* Answer Choices Styling */
.answer-choices {
    flex: 1;
    display: flex;
    flex-direction: row;
    gap: 15px; /* Space between choices */
    color: #2E2E2E;
    margin-left: 20px;
}

/* Radio Buttons and Dropdowns */
.answer-choices input[type="radio"] + label,
.answer-choices select {
    font-size: 14px;
    cursor: pointer;
}

input[type="radio"] {
        appearance: none;
        -webkit-appearance: none; /* Safari */
        -moz-appearance: none; /* Firefox */
        border: 2px solid #ccc;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        outline: none;
        cursor: pointer;
        transition: 0.3s;
}

/* Default unselected state */
input[type="radio"]:hover {
    border-color: #297382;
}

/* Selected state */
input[type="radio"]:checked {
    border-color: #297382;
    background-color: #297382;
}

/* Optional: Style the associated label */
input[type="radio"]:checked + label {
    font-weight: bold;
    color: #297382;
}

.answer-choices select {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width:75%;
}

#button-container{
	align-self: flex-end;
}

 /* Button Styling */
#question-submit-id {
    background-color: #297382;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top:10px;
}

#question-submit-id:hover {
    background-color: #1f5d65; /* Darker shade of #297382 */
}

#question-submit-id:active {
    background-color: #163f45; /* Even darker shade for active state */
}

#error-msg{
	color:red;
	display:none;
}

#submitted-msg{
  color:#297382;
  display:none;
}

.invalid-input {
    border: 2px solid red !important;
}

.print-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
}

.print-button {
    background: #f1f1f1;
    padding: 10px 20px;
    font-size: 15px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 6px;
}

.print-button:hover {
    background: #e3e3e3;
}

@media print {
    @page {
        margin: 10mm;
    }

    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }

    .questionnaire-container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 10mm !important;   /* adjust if you want less space */
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    /* Hide bottom buttons */
    #button-container,
    .print-container,
    #question-submit-id,
    #print-btn {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    
}