/* Form */
.tarif-form {
	margin: 0 auto;
	background: #fff;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.tarif-form__item {
	margin-bottom: 20px;
}

.tarif-form__grid {
	display: flex;
	gap: 20px;
	margin-bottom: 40px;
}

.tarif-form__col {
	flex: 1 1 300px;
}

.tarif-form__col--intro {
	max-width: 300px;
	font-size: 16px;
	color: #333;
}

.tarif-form__calc {
	width: 100%;
}

/* Form inputs */

.tarif-form__select,
.tarif-form__input {
	width: 100%;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 8px 12px;
	height: 60px!important;
	border-radius: 12px!important;
}

.tarif-form__input {
	margin-bottom: 0px;
}

.tarif-form__checkbox-label {
	color: #777;
}

.tarif-form__input.error,
.tarif-form__select.error {
	border: 1px solid #dc3545;
	background-color: #fff5f5;
}

.tarif-form__checkbox-label.error .pol_text {
	color: #dc3545;
}

/* Form buttons */

.tarif-form__button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 14px;
	font-size: 16px;
	color: #fff;
	background-color: #007bff;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.2s;
	width: 100%;
	height: 60px;
}

.tarif-form__button:hover {
	background-color: #0056b3;
}

/* Tariffs */

.calc__tariffs {
	max-width: 100%;
	overflow-x: auto;
	font-size: 1rem;
	color: #222;
	border-radius: 12px;
}

.calc-tariffs {
	border-collapse: collapse;
	width: 100%;
	min-width: 960px;
	table-layout: fixed;
}

.calc-tariffs__row--header {
	background-color: #f0f4f8;
	font-weight: 400;
	text-align: center;
}

.calc-tariffs__price {
	font-size: 20px;
	font-weight: bold;
}

.calc-tariffs__title {
	padding: 12px 16px;
	text-align: left;
	vertical-align: middle;
	font-weight: 600;
	width: 40%;
}

.calc-tariffs__plan {
	padding: 12px 8px;
	vertical-align: middle;
	color: #555;
	width: 20%;
	text-align: center;
	font-weight: 400;
}

.calc-tariffs__name {
	font-size: 1.2em;
}

.calc-tariffs__plan--hot {
	color: #d94c4c;
}

.calc-tariffs__cell {
	text-align: center;
	vertical-align: middle;
	padding: 8px;
	width: 20%;
	white-space: nowrap;
}

.calc-tariffs__row .calc-tariffs__cell:last-of-type {
	padding-right: 0;
}

/* Tariffs icons */

.calc-tariffs__cell span.full,
.calc-tariffs__cell span.half,
.calc-tariffs__cell span.three {
	display: inline-block;
	width: 18px;
	height: 18px;
	background-repeat: no-repeat;
	background-size: contain;
	vertical-align: middle;
	width: 12px;
	height: 12px;
}

.calc-tariffs__cell span.full {
	background: #000;
	border-radius: 50%;
	border: 1px solid #000;
}

.calc-tariffs__cell span.half {
	background: #000;
	border-radius: 50%;
	border: 1px solid #000;
	background: linear-gradient(to right, transparent 0%, transparent 49.9%, #2d3039 50%, #2d3039 100%);
}
.calc-tariffs__cell span.three {
	background: #000;
	border-radius: 50%;
	border: 1px solid #000;
	background-image: linear-gradient(210deg, transparent 50%, white 50%), linear-gradient(90deg, #ebf0f5 50%, transparent 50%);
}

.calc-tariffs__cell span.sale {
	color: #d94c4c;
	font-weight: 700;
}

.calc-tariffs__row--toggle .calc-tariffs__toggle-inner {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}

.calc-tariffs__row--toggle .calc-tariffs__arrow {
	display: inline-block;
	width: 16px;
	height: 16px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12 7L8 11L4 7' stroke='%23132436' stroke-width='2'/%3E%3C/svg%3E");
	background-size: contain;
	background-repeat: no-repeat;
	transition: transform 0.3s ease;
	transform: rotate(0deg);
}

.calc-tariffs__row--open .calc-tariffs__arrow {
	transform: rotate(-180deg);
}

/* Tariffs subtable */

.calc-tariffs__row--toggle details {
	cursor: pointer;
	margin: 0;
	padding: 0;
}

.calc-tariffs__sub-table {
	margin: 8px 0 0;
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
}

.calc-tariffs__sub-table .calc-tariffs__title {
	padding: 12px 16px;
	text-align: left;
	vertical-align: middle;
	font-weight: 500;
	font-size: 13px;
	width: 40%;
}

.calc-tariffs__sub-table .calc-tariffs__cell {
	padding: 8px;
	font-size: 13px;
	width: 20%;
	text-align: center;
	vertical-align: middle;
	border-bottom: 1px solid #eee;
}

.calc-tariffs__sub-table td {
	box-sizing: border-box;
}

/* Tariffs subtable rows */

.calc-tariffs__row--sub td {
	padding: 0;
	background: #f9f9f9;
}

.calc-tariffs__sub {
	padding: 0;
}

.calc-tariffs__sub > details {
	padding: 12px 16px;
	display: block;
}

.calc-tariffs__sub > details > summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
	position: relative;
	padding: 8px 0;
	outline: none;
}

.calc-tariffs__sub > details > summary::-webkit-details-marker {
	display: none;
}

.calc-tariffs__sub > details > summary::after {
	content: "▼";
	position: absolute;
	right: 0;
	top: 8px;
	transition: transform 0.3s ease;
}

.calc-tariffs__sub > details[open] > summary::after {
	transform: rotate(180deg);
}

.calc-tariffs__sub-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0px;
}

.calc-tariffs__sub-table .calc-tariffs__title {
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	width: 40%;
}

.calc-tariffs__sub-table .calc-tariffs__cell {
	padding: 8px;
	font-size: 13px;
	text-align: center;
	width: 20%;
	border-bottom: 1px solid #eee;
}

.calc-tariffs__sub details {
	display: block;
}

.calc-tariffs__sub details > div {
	margin-top: 12px;
}

.calc-tariffs__sub-table {
	width: 100%;
	border-collapse: collapse;
}

.calc-tariffs__sub-table .calc-tariffs__title {
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	width: 40%;
}

.calc-tariffs__sub-table .calc-tariffs__cell {
	padding: 8px;
	font-size: 13px;
	text-align: center;
	width: 20%;
	border-bottom: 1px solid #eee;
}

.calc-tariffs__row--sub[hidden] {
	display: none;
}

.calc-tariffs__sub-table {
	width: 100%;
	border-collapse: collapse;
}

.calc-tariffs__sub-table .calc-tariffs__title {
	padding: 8px 16px;
	font-weight: 500;
	font-size: 13px;
	width: 40%;
}

.calc-tariffs__sub-table .calc-tariffs__cell {
	padding: 8px;
	font-size: 13px;
	text-align: center;
	width: 20%;
	border-bottom: 1px solid #eee;
}

table.calc-tariffs thead .calc-tariffs__title,
.calc-tariffs__row.calc-tariffs__row--toggle td.calc-tariffs__title:first-of-type,
.calc-tariffs .calc-tariffs__row td.calc-tariffs__title {
	padding-left: 8px;
}

.calc-tariffs__sub-table .calc-tariffs__row td.calc-tariffs__title {
	padding-left: 16px;
}

/* Tariffs subtable toggle effects */

.calc-tariffs__row--toggle {
	cursor: pointer;
	transition: background 0.2s ease;
}

.calc-tariffs__row--toggle:hover {
	background-color: #f6f9fc;
}

.calc-tariffs__row--toggle {
	cursor: pointer;
	transition: background 0.2s ease;
}

.calc-tariffs__row--toggle:hover {
	background-color: #f6f9fc;
}

.calc-tariffs .calc-tariffs__title {
	display: flex;
	width: auto;
	gap: 6px;
}

.calc-tariffs__title,
.calc-tariffs__plan {
  word-break: break-word;
}

/* Media */

@media (max-width: 960px) {
	.tarif-form__grid {
		flex-direction: column;
	}
	
	.tarif-form__col:first-child {
		flex: 1 1 60px;
	}
}