.tovq-form-submit-btn {
    position: relative;
    margin-top: 15px;
}
.tovq-ajax--loading {
    pointer-events: none;
    opacity: 0.5;
    position: relative;
}
.tovq-ajax--loading .tovq-form-submit-txt {
    opacity: 0;
}
.tovq-ajax--loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 25px;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #000000;
    border-radius: 50%;
    animation: tovq-loading-spinner 1s ease infinite;
}
.tovq-form-submit-btn.tovq-ajax--loading::after {
    border-top-color: #ffffff;
    top: 0px;
}
body .select2-container--default .select2-selection--single .select2-selection__arrow b { 
    border: none;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA3klEQVR4nO3YQQrCMBCF4VxFd27ceDO9ZMnMHKB6AEHBKygBhdKFRm3SJvk/KHQ3fS8JtHUOAAAAAAAAAADE6LpuJSInVe3NbOsyCbNE5Bgu7/3azUVVD6p6f17XHCWEGWHWa66I7N1cvPfr4cOkLmEcPtyHXZhqXhQz26jqebAiNzPbufQrf8l57GYtYdHhU5dQRPhUJRQVfuoSigw/VQlFh/+3hCrC/1pCVeG/LaHK8LElVB3+UwlNhH/3Lp/zW2KRO0FbWPmI49BO+NFx6HP/TAEAAAAAAAAAwLXrAX6cSlS+qFSrAAAAAElFTkSuQmCC);
    background-position: center;
    background-repeat: no-repeat;
    width: 22px;
    height: 10px;
    background-size: auto 26px;
    margin-left: -5px;
    margin-top: 19px;
    left: 0;
    top: 0;
    transform: none;
}
.tovq-form-heading,
.tovq-form-group,
.tovq-form-row {
    margin-bottom: 15px;
}
.tovq-form-col-2,
.tovq-form-col-3{
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.tovq-form-col-2 > .tovq-form-col {
    width: 50%;
}
.tovq-form-col-3 > .tovq-form-col {
    width: 33.33%;
}
.tovq-form-row label:not(.tovq-form-radio) {
    width: 100%;
    display: inline-block;
	cursor: pointer;
}
.tovq-form-row input:not(.tovq-form-radio-input), .tovq-form-row select, .tovq-form-row textarea {
    width: 100%;
}
#tovq-form-messages {
    margin-bottom: 25px;
}
.tovq-form-messages.error {
    color: #ff0000;
}
.tovq-form-messages.success {
    color: #008000;
}
.tovq-privacy-label {
	margin-bottom: 10px;
}
.tovq-privacy-text{ 
	margin-bottom: 0;
	font-size: 13px;
    line-height: 20px;
}
.tovq-privacy-label {
	font-size: 13px;
}
.tovq-privacy-title {
	font-size: 18px;
}
.d-none {
    display: none;
}
.tovq-disabled {
	opacity: 0.65;
    pointer-events: none;
}
@keyframes tovq-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}


/*  */

.tovq-form-heading h3 {
	font-size:18px;
	color:#3b72ff;
	margin-top: 20px;
	margin-bottom:0;
	display:flex;
	align-items:center;
	gap:10px;
}

.tovq-form-heading h3 svg{
	width: 26px;
	height: 26px;
}

/* 1. Normal inputs + native selects */
.tovq-form-group input,
.tovq-form-group select {
  padding: 8px 12px;
	border-radius:6px;
  box-sizing: border-box;
}

.tovq-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA3klEQVR4nO3YQQrCMBCF4VxFd27ceDO9ZMnMHKB6AEHBKygBhdKFRm3SJvk/KHQ3fS8JtHUOAAAAAAAAAADE6LpuJSInVe3NbOsyCbNE5Bgu7/3azUVVD6p6f17XHCWEGWHWa66I7N1cvPfr4cOkLmEcPtyHXZhqXhQz26jqebAiNzPbufQrf8l57GYtYdHhU5dQRPhUJRQVfuoSigw/VQlFh/+3hCrC/1pCVeG/LaHK8LElVB3+UwlNhH/3Lp/zW2KRO0FbWPmI49BO+NFx6HP/TAEAAAAAAAAAwLXrAX6cSlS+qFSrAAAAAElFTkSuQmCC);
    background-repeat: no-repeat;
    background-position: calc(100% - 8px);
    background-size: auto 26px;
    cursor: pointer;
}

.tovq-form-row:has(a) {
    border: 1px solid #3b72ff;
    padding: 15px;
    border-radius: 6px;
}
.tovq-form-row:has(a) label {
    position: relative;
    padding-left: 25px;
}
.tovq-form-row:has(a) label input#tovq_privacy {
    position: absolute;
    left: 0;
    top: 0;
    width: auto;
    margin-top: 6px;
}

/* Base style */
.tovq-form-group input,
.tovq-form-group select,
.tovq-form-group textarea,
.tovq-form-group .select2-selection--single {
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

/* Focus effect */
.tovq-form-group input:focus,
.tovq-form-group select:focus,
.tovq-form-group textarea:focus{
  border: 1px solid #3b72ff;
  outline: none;
}

.tovq-form-group textarea {
	height:150px;
	border-radius:6px;
}

/* 2. Select2 container */
.tovq-form-group .select2-container {
  width: 100%;
}

/* 3. Select2 single select (main box) */
.tovq-form-group .select2-container .select2-selection--single {
  padding: 0 12px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

/* 4. Text inside Select2 */
.tovq-form-group .select2-container .select2-selection__rendered {
  padding: 0 !important;
  line-height: 40px !important; /* vertical centering */
}

/* 5. Arrow alignment */
.tovq-form-group .select2-container .select2-selection__arrow {
  height: 100% !important;
  right: 10px !important;
}

/* 6. Fix when dropdown is OPEN */
.tovq-form-group .select2-container--open .select2-selection--single {
  height: 40px !important;
  padding: 0 12px !important;
}

/* 7. Optional: match border style with inputs */
.tovq-form-group .select2-container .select2-selection--single {
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* 8. Optional: focus state like input */
.tovq-form-group .select2-container--focus .select2-selection--single {
  border-color: #66afe9;
  outline: none;
}

/* Hide default radio */
.tovq-form-radio-input {
  display: none;
}

/* Style label */
.tovq-form-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  width: calc(33.33% - 10px);
  padding-left: 34px;
  margin-bottom: 5px;
  word-break: break-all;
  padding-right: 15px;
}

/* Square box */
.tovq-form-radio::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 1px solid #ccc;
  border-radius: 4px; /* makes it square */
  transition: all 0.2s ease;
  position: absolute;
  left: 0;
}

/* Checked state (square turns orange) */
.tovq-form-radio-input:checked + * {
  /* this won't work because input is inside label */
}

/* Correct checked targeting */
.tovq-form-radio input:checked + span,
.tovq-form-radio input:checked ~ * {
  /* fallback if needed */
}

/* BEST WAY: use :has() (modern browsers) */
.tovq-form-radio:has(input:checked)::before {
  background-color: #f59e0b;
  border-color: #f59e0b;
}

/* Optional checkmark */
.tovq-form-radio:has(input:checked)::after {
  content: "✔";
  position: absolute;
  left: 7px;
  top: 1px;
  font-size: 12px;
  color: #fff;
}

/* Hover */
.tovq-form-radio:hover::before {
  border-color: #f59e0b;
}

.tovq-form-col label{margin-bottom: 5px}
.tovq-form-group .select2-container .select2-selection--single{
	height:50px;
}

.tovq-form:last-child{
	padding: 12px;
	border: 1px solid #3b72ff;
	border-radius:6px;
}


@media (max-width: 767px) {

	form .tovq-form-col-2,
	form .tovq-form-col-3 {
		flex-direction: column;
	}
	form .tovq-form-col-2 > .tovq-form-col, 
	form .tovq-form-col-3 > .tovq-form-col {
		width: 100%;
	}
	.tovq-form-radio {
		width: calc(50% - 10px);
	}
	
	
}