:root {
    --border-radius-tiny: 8px;
}
/* start input styling */
input.generic-input,
select.generic-input {
    /* these values at top are attempt at potentia lfix for square border o nsafari? */
    -webkit-appearance: none;

    line-height: calc(34px * var(--ui-scale));
    font-size: calc(14px * var(--ui-scale));
    border-radius: calc(var(--border-radius-tiny));
    padding: calc(5px * var(--ui-scale)) calc(10px * var(--ui-scale));
    border: 1px solid #ffffff;

    /* we have to add these for mobile input select cursor works on number inputes?*/
    user-select: text;
    -webkit-user-select: text; /* webkit (safari, chrome) browsers */
    -moz-user-select: text; /* mozilla browsers */
    -khtml-user-select: text; /* webkit (konqueror) browsers */
    -ms-user-select: text; /* IE10+ */

    /*font-family: var(--font-fam-btn);
    font-weight: 600;*/

    background: none;
    width: 100%;
    cursor: text;
}
select.generic-input {
    user-select: none;
    -webkit-user-select: none; /* webkit (safari, chrome) browsers */
    -moz-user-select: none; /* mozilla browsers */
    -khtml-user-select: none; /* webkit (konqueror) browsers */
    -ms-user-select: none; /* IE10+ */
}

/* weird solution that works to remove auto fill background in "all"? browsers
/* Mozilla Firefox */
input.generic-input:-webkit-autofill,
input.generic-input:-webkit-autofill:hover,
input.generic-input:-webkit-autofill:focus,
input.generic-input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px rgba(0,0,0,0);
}
.generic-input::placeholder, /* Firefox */
.generic-input::-webkit-input-placeholder, /* Chrome/Webkit */
.generic-input::-ms-input-placeholder { /* Edge 12 -18 */
    color: rgba(255,255,255,0.7);
    opacity: 1;
}
.generic-input::-webkit-input-placeholder{ /* seems like it has to be separate, otherwise it won't work properly*/
    color: rgba(255,255,255,0.7);
    opacity: 1;
}

/* Full color alternatives: */

/* Mozilla Firefox */
.full-color input.generic-input:-webkit-autofill,
.full-color input.generic-input:-webkit-autofill:hover,
.full-color input.generic-input:-webkit-autofill:focus,
.full-color input.generic-input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: #000000;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px rgba(255,255,255,1);
}
.full-color .generic-input::placeholder, /* Firefox */
.full-color .generic-input::-webkit-input-placeholder, /* Chrome/Webkit */
.full-color .generic-input::-ms-input-placeholder { /* Edge 12 -18 */
    color: rgba(0,0,0,0.7);
    opacity: 1;
}
.full-color  .generic-input::-webkit-input-placeholder{ /* seems like it has to be separate, otherwise it won't work properly*/
    color: rgba(0,0,0,0.7);
    opacity: 1;
}

/* // old way with outline
input.generic-input:focus:focus-visible:focus-within {
    outline: 2px solid black;
}*/

/* attempt at fixing safari border square issues */

input.generic-input:focus:focus-visible:focus-within,
input.generic-input:focus,
input.generic-input:focus-visible,
input.generic-input:focus-within {
    outline: none !important;
    border-color: #bebebe;
}
input[type="range"].generic-input:focus:focus-visible:focus-within,
input[type="range"].generic-input:focus,
input[type="range"].generic-input:focus-visible,
input[type="range"].generic-input:focus-within {
    border-color: white;
}
/* same trick as with buttons won't work, as pseudo elements don't work on input elements
input.generic-input:focus:focus-visible:focus-within:after {
	 content: "";
	 position: absolute;
	 top: calc(-1px * var(--ui-scale));
	 right: calc(-1px * var(--ui-scale));
	 bottom: calc(-1px * var(--ui-scale));
	 left: calc(-1px * var(--ui-scale));
	 border: calc(1px * var(--ui-scale)) solid white;

	 border-radius: calc(15px * var(--ui-scale));
 }*/

/* Start custom checkboxes */
.input-container {
    --checkmark-size: 20px;
    display: block;
    position: relative;
    cursor: pointer;
    margin-top: calc(0.5 * var(--checkmark-size));

    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    padding-left: calc(2 * var(--checkmark-size) + 5px);

    line-height: var(--checkmark-size);

    text-transform: none !important;
    font-size: 14px !important;
}
.input-container .label-text::before {
    content: attr(data-text-default);
}
.input-container input:checked ~ .label-text::before {
    content: attr(data-text-checked);
}
.input-container input.generic-input {
    position: absolute !important;
    opacity: 0 !important;
    cursor: pointer !important;
    height: 0 !important;
    width: 0 !important;
}
.input-container .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: var(--checkmark-size);
    width: calc(2 * var(--checkmark-size));
    background-color: var(--clr-green-1);
    border-radius: calc(0.5 * var(--checkmark-size));
}

/* On mouse-over, add a a mxied color between options */
/*.input-container:hover input ~ .checkmark {
    background-color: #00FE407F !important;
}*/

/* When the checkbox is checked, add a blue background */
.input-container input.generic-input:checked ~ .checkmark {
    background-color: var(--clr-green-4);
}

/* Create the checkmark/indicator (hidden when not checked) */
.input-container .checkmark:after {
    content: "";
    position: absolute;
    /*display: none;*/
    display: block;
    transition: transform 150ms ease-in-out;
}

/* Show the checkmark when checked */
.input-container input.generic-input:checked ~ .checkmark:after {
    display: block;
    transform: translateX(calc(var(--checkmark-size)));
}

/* Style the checkmark/indicator */
.input-container .checkmark:after {
    background: #ffffff;
    border-radius: 50%;
    width: calc(var(--checkmark-size) - 2px);
    height: calc(var(--checkmark-size) - 2px);
    top: 0;
    bottom: 0;
    margin: auto 0;

    left: 1px;
}
/* End custom checkboxes */

label {
    line-height: 1.5;
}
.input-wrapper {
    margin-top: 0;
    position: relative;
}
.input-wrapper input.generic-input,
.input-wrapper select.generic-input {
    padding-right: calc(40px * var(--ui-scale));
    font-family: var(--font-fam-btn);
    font-weight: 600;
}
.input-wrapper.icons-on-left input {
    padding-right: calc(10px * var(--ui-scale));
    padding-left: calc(40px * var(--ui-scale));
}
.input-wrapper .input-icon {
    color: #ffffff;
    position: absolute;
    font-size: 0.8em;
    right: calc(10px * var(--ui-scale));

    height: max-content;
    /*top: 0;
    bottom: 0;
    margin: auto 0;*/

    top: calc(15px * var(--ui-scale))
}
.input-wrapper.icons-on-left .input-icon {
    right: unset;
    left: calc(10px * var(--ui-scale));
}
.input-wrapper .numeric-steps {
    position: absolute;

    top: calc(6px * var(--ui-scale));
    bottom: 0;
    margin: auto 0;
    right: calc(17px * var(--ui-scale));
    color: #000000;
    height: max-content;
    font-size: 0.45em;

    display: flex;
    flex-direction: column;
    gap: calc(2px * var(--ui-scale));
}
.input-wrapper .numeric-steps .fa-stack {
    pointer-events: auto;
    cursor: pointer;
}
.input-wrapper .numeric-steps .fa-stack:hover {
    color: #848484;
}
.input-wrapper.full-color input.generic-input,
.input-wrapper.full-color select.generic-input {
    background: #ffffff;
    color: #000000;
    border: 2px solid #bebebe;
    font-size: 18px;
}
.input-row-holder {
    display: flex;
    gap: 30px;
    /*margin-bottom: 30px;*/
    flex-wrap: wrap;
    align-items: stretch;
}
.input-row-holder .input-wrapper {
    flex: 1 1 auto;
}
.input-row-holder .input-wrapper input.generic-input,
.input-row-holder .input-wrapper select.generic-input {
    padding: calc(5px * var(--ui-scale)) calc(10px * var(--ui-scale));
}
.input-row-holder .input-wrapper select.generic-input {

    appearance: none; /* Hides the default dropdown arrow */
    -webkit-appearance: none; /* Ensures compatibility with WebKit browsers */
    -moz-appearance: none; /* Ensures compatibility with Firefox */
    position: relative; /* Needed for adding the custom icon */
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSIjNTU1NTU1IiBkPSJNNyAxMGw1IDUgNS01eiIvPjwvc3ZnPg=="); /* Custom dropdown icon */
    background-repeat: no-repeat;
    background-position: right 0px center; /* Position the icon */
    background-size: 36px; /* Set the size of the icon */
    fill: #555555;
    cursor: pointer;
}
.input-row-holder .input-wrapper select.generic-input option {
    color: black;
}
.input-row-holder .input-wrapper input:focus-visible,
.input-row-holder .input-wrapper select:focus-visible {
    outline-offset: -2px !important;
    outline: 2px solid black !important;
}
.input-row-holder .input-wrapper label {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 600;
}

.input-row-holder .input-wrapper .error-txt {
    min-height: 2.5em;
}
/* Country select */
.country-select .country-list {
    padding-left: 0 !important;
}
.country-select .flag {
    background-image: url('../../pages/assets/images_nonopt/flags.png') !important;
}
.country-select .country-list .flag, .country-select .country-list .country-name {
    color: black !important
}


.input-row-holder.textarea-holder .input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1 1 auto;
}
.input-row-holder .input-wrapper textarea.generic-input {
    flex: 5 1 auto;
    padding: calc(5px * var(--ui-scale));
    border-radius: calc(10px * var(--ui-scale));
    border: calc(2px * var(--ui-scale)) solid var(--clr-grey);
    padding-right: calc(40px * var(--ui-scale));
    font-family: var(--font-fam-reg);
    font-weight: 600;
    font-size: calc(12px * var(--ui-scale));
    resize: none;
}
.input-row-holder .input-wrapper textarea.generic-input:disabled {
    /* override default disabled behaviour, which messes up when hdiing keyboard*/
    background: #fff;
    color: #000;
}
.input-note {
    font-size: 0.7em;
    margin-top: 0;
}
/* end input styling */

/* START forms */
.form-holder {
    position: relative;
}
.loader-holder.form-loader {
    display: flex;
    justify-content: center;
    bottom: -3px;
    align-items: center;
    border-radius: 9px;
}
.loader-holder.form-loader .fa-spinner {
    font-size: 100px;
    color: #ffffff;
}
.form-error,
.social-form-error {
    color: var(--clr-yellow);
    font-size: 0.6em;
    padding-bottom: 1em;
}
.input-wrapper .error-txt {
    color: var(--clr-yellow);
    font-size: 0.6em;
    padding-top: 0.2em;
}

.input-row-holder.input-inline-holder {
    flex-wrap: nowrap;
    margin-bottom: 1em;
}
.input-row-holder.input-inline-holder .input-wrapper input {
    width: auto;
}
.input-row-holder.input-inline-holder .tiny-note {
    margin: 0.5em 0;
    font-size: 0.6em;
}
/* END forms */


/* overwrites for inputs in popups */
#popupsHolder .popup-content .input-row-holder .input-wrapper .error-txt {
    min-height: 1.5em;
}