:root {
    --mgqs-tint-color: #172A47;
    --mgqs-lighter-tint-color: #657C9F;
}

.mgqs-survey-container {
    width: 800px;
    margin: auto;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.mgqs-progress-indicator {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
}
.mgqs-progress-dots {
    float: right;
}
.mgqs-question-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 5px;
}
.mgqs-question-subtitle {
    font-size: 18px;
    color: gray;
    margin-bottom: 20px;
}
.mgqs-answers {
    margin: 20px 0;
}
.mgqs-answer-button.mgqs-active, .mgqs-answer-button:hover {
    background-color: #007BFF;
    color: white;
}
.mgqs-navigation-buttons {
    text-align: center;
}
.mgqs-next-button, .mgqs-prev-button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.mgqs-next-button.inactive {
    background-color: #ccc; /* Light gray for inactive state */
    color: #666;
    cursor: not-allowed;
}
.mgqs-answer-button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    margin: 5px 0;
    background-color: #f1f1f1;
    border: none;
    border-radius: 20px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    outline: none; /* Ensures no outline is shown when focused */
}
.mgqs-answer-button:hover, .mgqs-answer-button.active {
    background-color: #007BFF; /* Bright blue background for hover and active */
    color: white; /* White text for readability */
}
.mgqs-answer-button:focus {
    outline: none; /* Remove focus outline */
}
.mgqs-progress-label {
    color: var(--mgqs-tint-color) !important;
    font-weight: 700;
    width: 90px;
}
.mgqs-progress-dots {
    display: flex;
    justify-content: center;
    padding: 5px 0;
    margin-left: 15px;
    float: none;
}
.mgqs-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 3px;
    background-color: transparent;
    border: 1px solid var(--mgqs-tint-color);
}







.mgqs-dot.completed {
    background-color: var(--mgqs-tint-color);
    border-color: var(--mgqs-tint-color);
}
.mgqs-dot.current {
    background-color: var(--mgqs-lighter-tint-color);
    border-color: var(--mgqs-tint-color);
    width: 23px;
	border-radius: 15px;
}






.mgqs-question-title {
    font-size: 26px;
    line-height: 120% !important;
    font-weight: 800 !important;
}
.mgqs-question-subtitle {
    font-size: 15px;
    color: #626262 !important;
    margin-bottom: 20px;
}
body[data-button-style*="slightly_rounded"] button.mgqs-answer-button {
    border-radius: 10px !important;
}
.mgqs-answers {
    display: flex;
    flex-wrap: wrap;
    margin: 20px 0;
}
.mgqs-answer-button {
    display: block;
    width: 280px;
    height: 46px;
    padding: 8px 13px;
    margin: 0px 8px 8px 0px;
    background-color: #f1f1f1;
    border: none;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #626262;
    border: 1px solid #9F9F9F;
    line-height: 100%!important;
}

.goog-custom-button .goog-custom-button-inner-box {
	padding: 8px 10px !important;
}

.mgqs-answer-button:hover, .mgqs-answer-button.active {
    background-color: #172A47;
    color: white;
    border: 1px solid #172A47;
}
.mgqs-answer-button.mgqs-active, .mgqs-answer-button:hover {
    background-color: #657C9F !important;
    color: #ffffff;
    border: 1px solid #9F9F9F;
}
.mgqs-answer-button.active:hover {
    background-color: #172A47 !important;
    border: 1px solid #172A47;
}
.mgqs-navigation-buttons {
    text-align: left;
    margin-top: 40px;
}
.mgqs-nav-button {
    padding: 12px 25px;
    margin: 0px;
    margin-right: 10px;
    font-size: 12px;
    background-color: var(--mgqs-tint-color);
    text-transform: uppercase;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity .45s cubic-bezier(0.25,1,0.33,1),transform .45s cubic-bezier(0.25,1,0.33,1),border-color .45s cubic-bezier(0.25,1,0.33,1),color .45s cubic-bezier(0.25,1,0.33,1),background-color .45s cubic-bezier(0.25,1,0.33,1),box-shadow .45s cubic-bezier(0.25,1,0.33,1);
}
a.mgqs-nav-button {
    display: inline-block;
    padding: 8px 20px;
}
.mgqs-nav-button:not(.inactive):hover {
    background-color: var(--mgqs-lighter-tint-color);
}
.mgqs-survey-overview {
    display: flex;
    flex-wrap: nowrap;
    gap: 60px;
}
.mgqs-maincontent {
    flex: 2;
}
.mgqs-reportcontent {
    flex: 1;
}
.mgqs-reportcontent-content {
    padding: 20px;
    border-radius: 10px;
    background-color: #EDEDED !important;
}
.mgqs-reportcontent-content .mgqs-navigation-buttons {
    margin-top: 0px;
}
.mgqs-survey-overview h1,
.mgqs-survey-overview h2,
.mgqs-survey-overview h3 {
    font-family: 'Montserrat', Arial, sans-serif;
}
.mgqs-survey-overview h1 {
    text-transform: none !important;
    font-size: 28px;
    font-weight: 800 !important;
}
.mgqs-survey-overview h2 {
    text-transform: none !important;
    font-size: 24px;
    font-weight: 800 !important;
    color: var(--mgqs-tint-color);
}
.mgqs-survey-overview h3 {
    text-transform: none !important;
    font-size: 18px;
    font-weight: 800 !important;
    line-height: 130%;
    color: var(--mgqs-tint-color);
}
.mgqs-survey-overview p {
    line-height: 150% !important;
}
.mgqs-survey-overview p strong {
    font-weight: 700;
}
.mgqs-result-meter {
    position: relative;
    width: 100%;
    max-width: 100%;
}
.mgqs-progress-bar {
    position: relative;
    height: 12px;
    background-color: #E0E0E0;
    border-radius: 10px;
    margin-top: 70px;
}
.mgqs-progress-fill {
    height: 100%;
    background-color: var(--mgqs-tint-color);
    border-radius: 10px;
}
.mgqs-score-bubble {
    position: absolute;
    top: -45px;
    background-color: var(--mgqs-tint-color);
    color: white !important;
    padding: 7px 10px;
    min-width: 38px;
    text-align: center;
    font-weight: 800;
    border-radius: 20px;
    transform: translateX(-50%);
}
.mgqs-score-bubble::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    border-width: 5px;
    border-style: solid;
    border-color: var(--mgqs-tint-color) transparent transparent transparent;
    transform: translateX(-50%);
}
.mgqs-scale {
    display: flex;
    justify-content: space-between;
    padding-top: 5px;
    margin-bottom: 20px;
}
.mgqs-scale span {
    font-size: 14px;
    color: #333;
    font-weight: 800;
}

/* Amount answer input with stepper buttons */
.mgqs-input-stepper {
    display: flex;
}
.mgqs-amount-input {
    border: none;
    text-align: center;
    font-size: 18px !important;
    font-weight: 700;
    padding: 10px 30px !important;
    background: transparent;
    color: #333;
    border-radius: 14px !important;
    -moz-appearance: textfield;
    appearance: textfield;
    border: 2px solid #9F9F9F !important;
    width: 140px !important;
    margin-left: -15px;
}
.mgqs-stepper-button {
    margin-top: 8px;
    width: 30px !important;
    height: 30px !important;
    line-height: 34px !important;
    font-size: 0 !important;
    text-align: center;
    background-color: var(--mgqs-tint-color);
    border-radius: 20px !important;
    color: #ffffff !important;
    cursor: pointer;
    text-decoration: none !important;
    user-select: none;
    z-index: 999;
}
.mgqs-decrease {
    transform: translatex(0);
}
.mgqs-increase {
    transform: translatex(-50%);
}
.mgqs-stepper-button i {
    vertical-align: middle;
    font-size: 16px !important;
    font-weight: 200 !important;
}
.mgqs-stepper-button:active {
    background-color: var(--mgqs-lighter-tint-color) !important;
    color: #ffffff;
}
.mgqs-amount-input::-webkit-inner-spin-button,
.mgqs-amount-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* Loader spinner */
#mgqs-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.mgqs-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #172A47;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Survey Answers Table Styles */
.mgqs-answers-table-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.mgqs-answers-table-container .google-visualization-table {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mgqs-answers-table-container .google-visualization-table-table {
    border-collapse: collapse;
    width: 100%;
}

.mgqs-answers-table-container .google-visualization-table-tr-head {
    background-color: #f5f5f5;
}

.mgqs-answers-table-container .google-visualization-table-th {
    padding: 12px 8px;
    border-bottom: 2px solid #ddd;
    font-weight: 600;
    text-align: left;
    color: #333;
}

.mgqs-answers-table-container .google-visualization-table-tr-odd,
.mgqs-answers-table-container .google-visualization-table-tr-even {
    transition: background-color 0.2s ease;
}

.mgqs-answers-table-container .google-visualization-table-tr-odd:hover,
.mgqs-answers-table-container .google-visualization-table-tr-even:hover {
    background-color: #f8f8f8;
}

.mgqs-answers-table-container .google-visualization-table-td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.mgqs-answers-table-container .google-visualization-table-tr-odd {
    background-color: #ffffff;
}

.mgqs-answers-table-container .google-visualization-table-tr-even {
    background-color: #fafafa;
}

.mgqs-answers-table-container .google-visualization-table-div-page {
    margin: 15px 0;
    text-align: center;
}

.mgqs-answers-table-container .google-visualization-table-page-numbers {
    display: inline-block;
    margin: 0 10px;
}

.mgqs-answers-table-container .google-visualization-table-page-number {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #666;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mgqs-answers-table-container .google-visualization-table-page-number:hover {
    background-color: #f5f5f5;
    color: #333;
}

.mgqs-answers-table-container .google-visualization-table-page-number.current {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: white;
}

.mgqs-answers-table-container .google-visualization-table-seq {
    color: #888;
}
