/* WebStudiy Quiz Calculator */

.wsq {
	--wsq-pink: #ff4a8f;
	--wsq-pink-soft: rgba(255, 45, 135, 0.2);
	--wsq-green: #4de082;
	--wsq-ink: #e9dfef;
	--wsq-muted: rgba(233, 223, 239, 0.6);
	--wsq-line: rgba(255, 255, 255, 0.1);
	display: grid;
	gap: 1.5rem;
}

.wsq__progress {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.wsq__progress-bar {
	height: 100%;
	width: 16.66%;
	background: linear-gradient(90deg, #ff4a8f, #ffb1c5);
	border-radius: inherit;
	transition: width 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.wsq__step-label {
	margin: 0;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wsq-muted);
	font-weight: 600;
}

.wsq__layout {
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
	gap: 1.75rem;
	align-items: start;
}

.wsq-step h3 {
	margin: 0 0 1.25rem;
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	color: #fff;
}

.wsq-hint {
	margin: -0.5rem 0 1rem;
	color: var(--wsq-muted);
	font-size: 0.95rem;
}

.wsq-options {
	display: grid;
	gap: 0.75rem;
}

.wsq-option {
	display: block;
	cursor: pointer;
}

.wsq-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wsq-option span {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.2rem;
	border-radius: 14px;
	border: 1px solid var(--wsq-line);
	background: rgba(255, 255, 255, 0.03);
	transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.wsq-option strong {
	color: #fff;
	font-weight: 700;
}

.wsq-option em {
	font-style: normal;
	color: var(--wsq-muted);
	font-size: 0.9rem;
	white-space: nowrap;
}

.wsq-option:hover span,
.wsq-option input:focus-visible + span {
	border-color: rgba(255, 177, 197, 0.45);
}

.wsq-option input:checked + span {
	border-color: rgba(255, 74, 143, 0.7);
	background: rgba(255, 74, 143, 0.12);
	box-shadow: 0 0 24px rgba(255, 45, 135, 0.15);
}

.wsq-fields {
	display: grid;
	gap: 1rem;
}

.wsq-fields label {
	display: grid;
	gap: 0.45rem;
}

.wsq-fields label > span {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wsq-muted);
	font-weight: 600;
}

.wsq-fields input,
.wsq-fields textarea {
	width: 100%;
	border: 1px solid var(--wsq-line);
	border-radius: 14px;
	padding: 0.95rem 1.15rem;
	background: #110c17;
	color: #fff;
	font: inherit;
	outline: none;
}

.wsq-fields input:focus,
.wsq-fields textarea:focus {
	border-color: #ffb1c5;
	box-shadow: 0 0 0 3px rgba(255, 177, 197, 0.18);
}

.wsq__estimate {
	padding: 1.5rem;
	border-radius: 20px;
	position: sticky;
	top: 100px;
}

.wsq__estimate-label {
	margin: 0 0 0.5rem;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wsq-muted);
	font-weight: 600;
}

.wsq__estimate-value {
	margin: 0 0 1rem;
	font-size: clamp(1.2rem, 2vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--wsq-green);
	line-height: 1.2;
}

.wsq__breakdown {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.45rem;
}

.wsq__breakdown li {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: var(--wsq-muted);
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	padding-bottom: 0.4rem;
}

.wsq__breakdown li strong {
	color: #fff;
	font-weight: 600;
	white-space: nowrap;
}

.wsq__estimate-note {
	margin: 0;
	font-size: 0.85rem;
	color: var(--wsq-muted);
}

.wsq__nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.wsq__nav .btn {
	min-width: 140px;
}

.wsq__message {
	margin: 0;
	text-align: center;
	color: #ffb4ab;
}

.wsq-success {
	text-align: center;
	padding: 2rem 1rem;
}

.wsq-success__icon {
	color: var(--wsq-green);
	display: inline-block;
}

.wsq-success .material-symbols-outlined {
	display: none;
}

.wsq-success h3 {
	margin-top: 0.75rem;
}

.wsq-success p {
	color: var(--wsq-muted);
}

@media (max-width: 860px) {
	.wsq__layout {
		grid-template-columns: 1fr;
	}

	.wsq__estimate {
		position: static;
		order: -1;
	}

	.wsq-option span {
		flex-direction: column;
		align-items: flex-start;
	}
}
