@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f4f8;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
}

.progress-bar {
    transition: width 0.5s ease-in-out;
}
#overall-progress-bar {
  transition: width 0.5s ease-in-out;
}
.quiz-container {
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.option-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
#overall-score-bg {
    transition: all 0.3s ease;
}

.option-card:hover,
#overall-score-bg:hover{
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.section-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

@media (max-width: 640px) {
    .quiz-container {
        margin: 0 16px;
        border-radius: 8px;
    }
    .tooltip .tooltip-text {
        left: 100% !important;
        transform: translateX(-98%) !important;
    }
    .tooltip .tooltip-text::after {
        left: 95% !important;
        margin-left: -8px !important;
    }
    .g-recaptcha {
        transform:scale(0.90) !important;
        transform-origin:0 0 !important;
    }
}

.result-card {
    transition: all 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.btn-primary {
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-secondary,
#next-btn,
#start-quiz{
    transition: all 0.3s ease;
}

.btn-secondary:hover,
#next-btn:hover,
#start-quiz:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-scale {
    animation: scale 0.5s ease-in-out;
}

@keyframes scale {
    from { transform: scale(0.95); }
    to { transform: scale(1); }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Error message animation */
.error-message {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

*, ::before, ::after {
	--tw-border-spacing-x: 0;
	--tw-border-spacing-y: 0;
	--tw-translate-x: 0;
	--tw-translate-y: 0;
	--tw-rotate: 0;
	--tw-skew-x: 0;
	--tw-skew-y: 0;
	--tw-scale-x: 1;
	--tw-scale-y: 1;
	--tw-pan-x: ;--tw-pan-y:;
	--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;
	--tw-gradient-from-position: ;--tw-gradient-via-position:;
	--tw-gradient-to-position: ;--tw-ordinal:;
	--tw-slashed-zero: ;--tw-numeric-figure:;
	--tw-numeric-spacing: ;--tw-numeric-fraction:;
	--tw-ring-inset: ;--tw-ring-offset-width:0px;
	--tw-ring-offset-color: #fff;
	--tw-ring-color: rgb(59 130 246 / 0.5);
	--tw-ring-offset-shadow: 0 0 #0000;
	--tw-ring-shadow: 0 0 #0000;
	--tw-shadow: 0 0 #0000;
	--tw-shadow-colored: 0 0 #0000;
	--tw-blur: ;--tw-brightness:;
	--tw-contrast: ;--tw-grayscale:;
	--tw-hue-rotate: ;--tw-invert:;
	--tw-saturate: ;--tw-sepia:;
	--tw-drop-shadow: ;--tw-backdrop-blur:;
	--tw-backdrop-brightness: ;--tw-backdrop-contrast:;
	--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate:;
	--tw-backdrop-invert: ;--tw-backdrop-opacity:;
	--tw-backdrop-saturate: ;--tw-backdrop-sepia:;
	--tw-contain-size: ;--tw-contain-layout:;
	--tw-contain-paint: ;--tw-contain-style:;
}

::backdrop {
	--tw-border-spacing-x: 0;
	--tw-border-spacing-y: 0;
	--tw-translate-x: 0;
	--tw-translate-y: 0;
	--tw-rotate: 0;
	--tw-skew-x: 0;
	--tw-skew-y: 0;
	--tw-scale-x: 1;
	--tw-scale-y: 1;
	--tw-pan-x: ;--tw-pan-y:;
	--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;
	--tw-gradient-from-position: ;--tw-gradient-via-position:;
	--tw-gradient-to-position: ;--tw-ordinal:;
	--tw-slashed-zero: ;--tw-numeric-figure:;
	--tw-numeric-spacing: ;--tw-numeric-fraction:;
	--tw-ring-inset: ;--tw-ring-offset-width:0px;
	--tw-ring-offset-color: #fff;
	--tw-ring-color: rgb(59 130 246 / 0.5);
	--tw-ring-offset-shadow: 0 0 #0000;
	--tw-ring-shadow: 0 0 #0000;
	--tw-shadow: 0 0 #0000;
	--tw-shadow-colored: 0 0 #0000;
	--tw-blur: ;--tw-brightness:;
	--tw-contrast: ;--tw-grayscale:;
	--tw-hue-rotate: ;--tw-invert:;
	--tw-saturate: ;--tw-sepia:;
	--tw-drop-shadow: ;--tw-backdrop-blur:;
	--tw-backdrop-brightness: ;--tw-backdrop-contrast:;
	--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate:;
	--tw-backdrop-invert: ;--tw-backdrop-opacity:;
	--tw-backdrop-saturate: ;--tw-backdrop-sepia:;
	--tw-contain-size: ;--tw-contain-layout:;
	--tw-contain-paint: ;--tw-contain-style:;
}

/* ! tailwindcss v3.4.16 | MIT License | https://tailwindcss.com */
*,::after,::before {
	box-sizing: border-box;
	border-width: 0;
	border-style: solid;
	border-color: #e5e7eb;
}

::after,::before {
	--tw-content: '';
}

:host,html {
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
	-moz-tab-size: 4;
	tab-size: 4;
	font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	font-feature-settings: normal;
	font-variation-settings: normal;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	line-height: inherit;
}

hr {
	height: 0;
	color: inherit;
	border-top-width: 1px;
}

abbr:where([title]) {
	-webkit-text-decoration: underline dotted;
	text-decoration: underline dotted;
}

h1,h2,h3,h4,h5,h6 {
	font-size: inherit;
	font-weight: inherit;
}

a {
	color: inherit;
	text-decoration: inherit;
}

b,strong {
	font-weight: bolder;
}

code,kbd,pre,samp {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-feature-settings: normal;
	font-variation-settings: normal;
	font-size: 1em;
}

small {
	font-size: 80%;
}

sub,sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -.25em;
}

sup {
	top: -.5em;
}

table {
	text-indent: 0;
	border-color: inherit;
	border-collapse: collapse;
}

button,input,optgroup,select,textarea {
	font-family: inherit;
	font-feature-settings: inherit;
	font-variation-settings: inherit;
	font-size: 100%;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	color: inherit;
	margin: 0;
	padding: 0;
}

button,select {
	text-transform: none;
}

button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]) {
	-webkit-appearance: button;
	background-color: transparent;
	background-image: none;
}

:-moz-focusring {
	outline: auto;
}

:-moz-ui-invalid {
	box-shadow: none;
}

progress {
	vertical-align: baseline;
}

::-webkit-inner-spin-button,::-webkit-outer-spin-button {
	height: auto;
}

[type=search] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

::-webkit-search-decoration {
	-webkit-appearance: none;
}

::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

summary {
	display: list-item;
}

blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre {
	margin: 0;
}

fieldset {
	margin: 0;
	padding: 0;
}

legend {
	padding: 0;
}

menu,ol,ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

dialog {
	padding: 0;
}

textarea {
	resize: vertical;
}

input::placeholder,textarea::placeholder {
	opacity: 1;
	color: #9ca3af;
}

[role=button],button {
	cursor: pointer;
}

:disabled {
	cursor: default;
}

audio,canvas,embed,iframe,img,object,svg,video {
	display: block;
	vertical-align: middle;
}

img,video {
	max-width: 100%;
	height: auto;
}

[hidden]:where(:not([hidden=until-found])) {
	display: none;
}

.mx-auto {
	margin-left: auto;
	margin-right: auto;
}

.mb-1 {
	margin-bottom: 0.25rem;
}

.mb-2 {
	margin-bottom: 0.5rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.mb-6 {
	margin-bottom: 1.5rem;
}

.mb-8 {
	margin-bottom: 2rem;
}

.ml-3 {
	margin-left: 0.75rem;
}

.mr-2 {
	margin-right: 0.5rem;
}

.mr-4 {
	margin-right: 1rem;
}

.mt-2 {
	margin-top: 0.5rem;
}

.mt-8 {
	margin-top: 2rem;
}

.block {
	display: block;
}

.flex {
	display: flex;
}

.grid {
	display: grid;
}

.hidden {
	display: none;
}

.h-10 {
	height: 2.5rem;
}

.h-16 {
	height: 4rem;
}

.h-2 {
	height: 0.5rem;
}

.h-20 {
	height: 5rem;
}

.h-32 {
	height: 8rem;
}

.h-5 {
	height: 1.25rem;
}

.h-8 {
	height: 2rem;
}

.min-h-screen {
	min-height: 100vh;
}

.w-0 {
	width: 0px;
}

.w-10 {
	width: 2.5rem;
}

.w-16 {
	width: 4rem;
}

.w-20 {
	width: 5rem;
}

.w-32 {
	width: 8rem;
}

.w-5 {
	width: 1.25rem;
}

.w-8 {
	width: 2rem;
}

.w-full {
	width: 100%;
}

.flex-1 {
	flex: 1 1 0%;
}

.flex-shrink-0 {
	flex-shrink: 0;
}

.flex-grow {
	flex-grow: 1;
}

.grid-cols-1 {
	grid-template-columns: repeat(1, minmax(0, 1fr));
}

.flex-col {
	flex-direction: column;
}

.items-center {
	align-items: center;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.gap-4 {
	gap: 1rem;
}

.space-y-4 > :not([hidden]) ~ :not([hidden]) {
	--tw-space-y-reverse: 0;
	margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
	margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}

.space-y-6 > :not([hidden]) ~ :not([hidden]) {
	--tw-space-y-reverse: 0;
	margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
	margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}

.rounded-full {
	border-radius: 9999px;
}

.rounded-lg {
	border-radius: 0.5rem;
}

.rounded-md {
	border-radius: 0.375rem;
}

.border {
	border-width: 1px;
}

.border-l-4 {
	border-left-width: 4px;
}

.border-blue-200 {
	--tw-border-opacity: 1;
	border-color: rgb(191 219 254 / var(--tw-border-opacity, 1));
}

.border-blue-500 {
	--tw-border-opacity: 1;
	border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.border-gray-200 {
	--tw-border-opacity: 1;
	border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.border-gray-300 {
	--tw-border-opacity: 1;
	border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-red-500 {
	--tw-border-opacity: 1;
	border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.bg-blue-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(219 234 254 / var(--tw-bg-opacity, 1));
}

.bg-blue-50 {
	--tw-bg-opacity: 1;
	background-color: rgb(239 246 255 / var(--tw-bg-opacity, 1));
}

.bg-blue-500 {
	--tw-bg-opacity: 1;
	background-color: rgb(29 191 115 / var(--tw-bg-opacity, 1)) !important;
}
.bg-blue-600 {
	--tw-bg-opacity: 1;
	background-color: rgb(37 99 235 / var(--tw-bg-opacity, 1));
}

.bg-gray-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.bg-gray-200 {
	--tw-bg-opacity: 1;
	background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.bg-green-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}

.bg-green-600 {
	--tw-bg-opacity: 1;
	background-color: rgb(22 163 74 / var(--tw-bg-opacity, 1));
}

.bg-purple-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}

.bg-red-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}

.bg-white {
	--tw-bg-opacity: 1;
	background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-yellow-100 {
	--tw-bg-opacity: 1;
	background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}

.bg-gradient-to-br {
	background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.bg-gradient-to-r {
	background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-blue-50 {
	--tw-gradient-from: #eff6ff var(--tw-gradient-from-position);
	--tw-gradient-to: rgb(239 246 255 / 0) var(--tw-gradient-to-position);
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.from-blue-600 {
	--tw-gradient-from: #2563eb var(--tw-gradient-from-position);
	--tw-gradient-to: rgb(37 99 235 / 0) var(--tw-gradient-to-position);
	--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-indigo-50 {
	--tw-gradient-to: #eef2ff var(--tw-gradient-to-position);
}

.to-indigo-700 {
	--tw-gradient-to: #4338ca var(--tw-gradient-to-position);
}

.p-4 {
	padding: 1rem;
}

.p-6 {
	padding: 1.5rem;
}

.p-8 {
	padding: 2rem;
}

.px-4 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.px-5 {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.px-6 {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.py-2 {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.py-3 {
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
}

.py-8 {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

.pt-2 {
	padding-top: 0.5rem;
}

.text-left {
	text-align: left;
}

.text-center {
	text-align: center;
}

.text-2xl {
	font-size: 1.5rem;
	line-height: 2rem;
}

.text-lg {
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.text-sm {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.text-xl {
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.font-bold {
	font-weight: 700;
}

.font-medium {
	font-weight: 500;
}

.font-semibold {
	font-weight: 600;
}

.text-blue-100 {
	--tw-text-opacity: 1;
	color: rgb(219 234 254 / var(--tw-text-opacity, 1));
}

.text-blue-600 {
	--tw-text-opacity: 1;
	color: rgb(37 99 235 / var(--tw-text-opacity, 1));
}

.text-blue-700 {
	--tw-text-opacity: 1;
	color: rgb(29 78 216 / var(--tw-text-opacity, 1));
}

.text-blue-800 {
	--tw-text-opacity: 1;
	color: rgb(30 64 175 / var(--tw-text-opacity, 1));
}

.text-gray-500 {
	--tw-text-opacity: 1;
	color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-600 {
	--tw-text-opacity: 1;
	color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-700 {
	--tw-text-opacity: 1;
	color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.text-gray-800 {
	--tw-text-opacity: 1;
	color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-green-600 {
	--tw-text-opacity: 1;
	color: rgb(22 163 74 / var(--tw-text-opacity, 1));
}

.text-purple-600 {
	--tw-text-opacity: 1;
	color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}

.text-red-500 {
	--tw-text-opacity: 1;
	color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-red-700 {
	--tw-text-opacity: 1;
	color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}

.text-white {
	--tw-text-opacity: 1;
	color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.text-yellow-600 {
	--tw-text-opacity: 1;
	color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}

.hover\:bg-blue-700:hover {
	--tw-bg-opacity: 1;
	background-color: rgb(29 78 216 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-300:hover {
	--tw-bg-opacity: 1;
	background-color: rgb(209 213 219 / var(--tw-bg-opacity, 1));
}

.hover\:bg-green-700:hover {
	--tw-bg-opacity: 1;
	background-color: rgb(21 128 61 / var(--tw-bg-opacity, 1));
}

.focus\:border-blue-500:focus {
	--tw-border-opacity: 1;
	border-color: rgb(59 130 246 / var(--tw-border-opacity, 1));
}

.focus\:ring-blue-500:focus {
	--tw-ring-opacity: 1;
	--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity, 1));
}

@media (min-width: 768px) {
	.md\:grid-cols-2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.md\:flex-row {
		flex-direction: row;
	}

	.md\:text-2xl {
		font-size: 1.5rem;
		line-height: 2rem;
	}

	.md\:text-3xl {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}
}