@import 'src/Components/GlobalStyles/colors';

.cardContainer {
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;

	label {
		font-size: 1rem;
		font-weight: 600;
		color: #000;
	}

	p {
		font-weight: 400;
		font-size: 1em;
		line-height: 20px;
		color: $dark;
	}

	[type='radio']:checked,
	[type='radio']:not(:checked) {
		position: absolute;
		left: -9999px;
	}

	[type='radio']:checked + label,
	[type='radio']:not(:checked) + label {
		min-width: 150px;
		position: relative;
		cursor: pointer;
		line-height: 20px;
		display: inline-block;
		text-align: left;
		background: #fff;
		color: #666;
		padding: 15px 35px 15px 20px;
		border-radius: 10px;
		box-shadow: 0 3px 13px 0 $dropShadow;
		box-sizing: border-box;
		border: 2px solid transparent;

		&:hover {
			// transform: scale(1.05);
			border: 2px solid var(--primary-color);
		}
	}
	[type='radio']:checked + label:before,
	[type='radio']:not(:checked) + label:before {
		content: '';
		position: absolute;
		top: calc(50% - 13px);
		right: 16px;
		width: 26px;
		height: 26px;
		border: 2px solid var(--primary-color);
		border-radius: 100%;
		background: transparent;
	}
	[type='radio']:not(:checked) + label:before {
		border: 2px solid #e5e5e5;
	}
	[type='radio']:checked + label:after,
	[type='radio']:not(:checked) + label:after {
		content: '';
		width: 12px;
		height: 12px;
		background: var(--primary-color);
		position: absolute;
		top: calc(50% - 6px);
		right: 23px;
		border-radius: 100%;
		-webkit-transition: all 0.2s ease;
		transition: all 0.2s ease;
	}
	[type='radio']:not(:checked) + label:after {
		opacity: 1;
		background: #e5e5e5;
	}
	[type='radio']:checked + label:after {
		opacity: 1;
		-webkit-transform: scale(1);
		transform: scale(1);
	}

	h4 {
		padding: 9px 5px 24px;
		font-size: 0.925em;
		color: #c3c3c4;
		text-transform: none;
		text-align: left;
	}

	svg {
		transform: scale(1.3);
		position: absolute;
		top: 22px;
		right: 18px;
	}

	.nonActive,
	.active {
		transform: scale(1.3);
		position: absolute;
		top: 22px;
		right: 17px;
	}

	.active {
		path {
			fill: var(--primary-color);
		}
	}

	.nonActive {
		path {
			fill: $grey-button;
		}
	}

	.radioButtonThird {
		path {
			fill: $grey-button;
		}
	}

	.formError {
		outline: 1px solid red !important;
		color: red;
	}
}
