.calc__field-label.small{
	font-size: 15px;
	text-transform: unset;
}

.calc--customs input[type="text"],
.calc--customs input[type="radio"],
.calc--customs select{
	border: 1px solid #36b3e8;
	font-size: 16px;
	border-radius: 3px;
}

.calc--customs input[type="checkbox"] {
    margin-right: 5px;
}

.calc--customs label{
    font-size: 14px;
}

/*Custom checkbox*/
.custom-checkbox {
	position: absolute;
	z-index: -1;
	opacity: 0;
}
.custom-checkbox+label {
	display: inline-flex;
	align-items: center;
	user-select: none;
}
.custom-checkbox+label::before {
	content: '';
	display: inline-block;
	width: 1em;
	height: 1em;
	flex-shrink: 0;
	flex-grow: 0;
	border: 1px solid #adb5bd;
	border-radius: 0.25em;
	margin-right: 0.5em;
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 50% 50%;
}
.custom-checkbox:checked+label::before {
	border-color: #36b3e8;
	background-color: #36b3e8;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
/*Custom checkbox*/

/*Custom radio*/
.form_radio_group {
	display: inline-block;
	overflow: hidden;
}
.form_radio_group-item {
	display: inline-block;
	float: left;    
}
.form_radio_group input[type=radio] {
	display: none;
}
.form_radio_group label {
	display: inline-block;
	cursor: pointer;
	padding: 0px 15px;
	font-size: 16px;
	line-height: 34px;
	border: 1px solid #36b3e8;
	border-right: none;
	user-select: none;
}
.form_radio_group .form_radio_group-item:first-child label {
	border-radius: 3px 0 0 3px;
}
.form_radio_group .form_radio_group-item:last-child label {
	border-radius: 0 3px 3px 0;
	border-right: 1px solid #36b3e8;
}
.form_radio_group input[type=radio]:checked + label {
	background: #36b3e8;
	color: #fff;
}
.form_radio_group label:hover {
	color: #666;
}
/*Custom radio*/

/*Accordeon*/
.accordion {
    background-color: #155d98;
    color: #fff;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
}

.active, .accordion:hover {
    background-color: #36b3e8;
}

.accordion:after {
    content: '\002B';
    color: #fff;
    font-weight: bold;
    float: right;
    margin-left: 5px;
}

.active:after {
    content: "\2212";
}

.panel {
    padding: 0px 18px;
    background-color: white;
	border: solid 1px #eee;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}

.panel_text__row{
	padding: 10px 0px;
	font-size: 16px;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: space-between;
    align-items: center;
	gap: 10px;
	border-bottom: solid 1px #eee;
}

.panel_text__left{
	text-align: left;
	flex: 1 0 24%;
}

.panel_text__right{
	text-align: left;
	flex: 1 0 73%;
}

.panel_text__right__link{
	display: inline-block;
	margin-bottom: 15px;
    padding: 5px;
    background: #f7f012;
    border: solid 1px #bbbbbb;
}

.panel_text__right__link:last-child{
	margin-bottom: 5px;
}
/*Accordeon*/

/*Result*/
.reference_result{
	width: 100%;
	margin: 20px auto;
	padding: 20px;
	border: 1px solid #36b3e8;
	border-radius: 3px;
	font-size: 16px;
}

.top_string{
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: solid 2px #36b3e8;
	font-weight: 500;
	display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
}

.bold_code{
	display: inline-block;
	padding: 5px 10px;
	background: #f7f012;
	border: solid 1px #bbbbbb;
	font-weight: 500;
	margin-right: 20px;
}

.no_value{
	font-size: 16px;
	font-weight: bold;
	color: #e93b3b;
}

form .calc__line .calc__field .custom-checkbox+label{
	display: flex;
    align-items: flex-start;
}

/**/

.calc__field-note {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Radio группа */
.calc__radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.calc__radio-item {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    background: #fff;
    cursor: pointer;
}

.calc__radio-item:hover {
    border-color: #0066cc;
    background: #f8f9fa;
}

.calc__radio-item.selected {
    border-color: #0066cc;
    background: #e8f0fe;
    box-shadow: 0 2px 8px rgba(0,102,204,0.1);
}

.calc__radio-item input[type="radio"] {
    display: none;
}

.calc__radio-label {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.calc__radio-value {
    font-weight: bold;
    font-size: 18px;
    color: #0066cc;
    background: #e8f0fe;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.calc__radio-condition {
    font-size: 14px;
    color: #333;
    flex: 1;
}

.calc__radio-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
}

.detail-text {
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.detail-doc a {
    color: #0066cc;
    text-decoration: none;
    font-size: 12px;
}

.detail-doc a:hover {
    text-decoration: underline;
}

.calc__desc-text {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.calc__field-label.bold {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Стили для капчи */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.captcha-image {
    border: 1px solid #ddd;
    height: 50px;
    width: auto;
    background: #f5f5f5;
}

.captcha-image.captcha-loading {
    opacity: 0.5;
    filter: blur(2px);
}

.captcha-refresh {
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #333;
}

.captcha-refresh:hover:not(:disabled) {
    background: #e0e0e0;
    transform: rotate(180deg);
    border-color: #0066cc;
    color: #0066cc;
}

.captcha-refresh:active:not(:disabled) {
    transform: rotate(360deg);
}

.captcha-refresh:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/**/

.calc__input--readonly {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.calc__input--readonly:focus {
    outline: none;
    border-color: #e0e0e0;
}

/* Стили для поиска с кнопкой */
.calc__search-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
}

.calc__input--search {
    flex: 1;
    padding-right: 70px !important;
}

.calc__search-btn {
    flex-shrink: 0;
	position: absolute;
    right: 0px;
    height: 40px;
    padding: 0px 10px;
    background: #36b3e8;
    color: white;
    border: none;
    border-radius: 3px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc__search-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
	.calc__radio-label {
        flex-direction: column;
        gap: 8px;
    }
    
    .calc__radio-value {
        align-self: flex-start;
    }
    
    .calc__radio-item {
        padding: 12px;
    }
	
    .captcha-container {
        margin-top: 10px;
    }
    
    .captcha-image {
        height: 40px;
    }
    
    .captcha-refresh {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
	
	.calc__search-wrapper {
        flex-wrap: wrap;
    }
    
    .calc__search-btn {
        height: 32px;
    }
}