/* HTML & BODY */
:root {
	--bg-color: #444444;
	--bg-header: #000;
	--primary-color: #F5FFFA;
	--h3-color: #00ff00;
	--gradient-lineFrendix: linear-gradient(0.30turn, rgba(0,0,0), rgba(124,252,0), rgba(0,255,127), rgba(100,149,237), rgba(30,144,255), rgba(0,0,0));
	--gradient-lineSilver1: linear-gradient(0.30turn, rgba(0,0,0,0.6), rgba(192,192,192), rgba(128,128,128), rgba(255,255,255), rgba(192,192,192), rgba(0,0,0,0.6));
	--gradient-lineSilver2: linear-gradient(0.30turn, rgba(0,0,0,0.6), rgba(192,192,192), rgba(255,255,255), rgba(128,128,128), rgba(192,192,192), rgba(0,0,0,0.6));
	--sframe1: linear-gradient(0.20turn, rgba(105,105,105), rgba(192,192,192));
	--sframe2: linear-gradient(0.20turn, rgba(128,128,128), rgba(211,211,211));
	--faded-text: rgba(255, 255, 255, 0.7);
	--link-box: rgba(0,0,0,0.2);
	--row1: rgba(64, 64, 64, 0.8)!important;
	--row2: rgba(48, 48, 48, 0.8)!important;
	--row1bg1: rgba(0, 0, 0, 0.55)!important;
	--row2bg2: rgba(0, 0, 0, 0.30)!important;
	--frendixBright: linear-gradient(to bottom right, #E6E6FA, #F8F8FF);
	--frendixLightMint: linear-gradient(to bottom right, #90EE90, #87CEFA);
	--bg-input: linear-gradient(to bottom right, #1A2B4F 0%, #2E4A78 100%);
	--bg-input2: linear-gradient(to bottom right, #E8C56E 0%, #FFF5C8 100%);
	--bg-input3: linear-gradient(to bottom right, #E8FFE8 0%, #ffffff 100%);
	--bg-input-disabled: linear-gradient(to bottom right, #C0C0C0 20%, #fff 60%, #C0C0C0 100%);
	--gold: #D4AF37;
    --gold-glow: rgba(212,175,55,0.6);
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    margin: 0;
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    color: #F8F8FF;
    max-width: 100vw;
    min-width: 365px;
    overflow-x: hidden;
    box-sizing: border-box;
}

a:link, a:visited, a:hover {text-decoration: none;}

/* INPUT FIELDS */
select,
textarea,
input[type=text],
input[type=number] {
	font-family: "Roboto", sans-serif;
	font-size: 1em;
	height: 28px;
	background: var(--bg-input);
	color: #000;
	-webkit-text-fill-color: #000;
	-webkit-opacity: 1;
	border: 2px solid var(--gold);
	border-radius: 6px;
	padding: 0.2em;
	box-sizing: border-box;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

select:hover,
textarea:hover,
input[type=text]:hover,
input[type=number]:hover {
	border-color: #FFD87A;
}

input.has-value,
textarea.has-value,
select.has-value {
	background: linear-gradient(to bottom right, #F3E6B3 0%, #E6C35A 100%);
	color: #1A2B4F;
	border-color: #D4AF37;
	box-shadow: 0 0 6px rgba(212,175,55,0.35);
}

input.has-value:hover,
textarea.has-value:hover,
select.has-value:hover {
	border-color: #FFD87A;
	box-shadow: 0 0 8px rgba(212,175,55,0.55);
}

/* Focus-tila */
input.has-value:focus,
textarea.has-value:focus,
select.has-value:focus {
	background: linear-gradient(to bottom right, #F3E6B3 0%, #E6C35A 100%);
	color: #1A2B4F;
	border-color: #FFD87A;
	box-shadow:
		0 0 0 2px rgba(212,175,55,0.35),
		0 0 10px rgba(212,175,55,0.6);
}

/* Autofillin override */
input:-webkit-autofill,
input:-webkit-autofill.has-value {
	background: linear-gradient(to bottom right, #F3E6B3 0%, #E6C35A 100%) !important;
	-webkit-text-fill-color: #1A2B4F !important;
	border-color: #D4AF37 !important;
	box-shadow: 0 0 6px rgba(212,175,55,0.35) !important;
}

select.has-value {
    background: linear-gradient(to bottom right, #F3E6B3 0%, #E6C35A 100%);
    color: #1A2B4F;
    border-color: #D4AF37;
    box-shadow: 0 0 6px rgba(212,175,55,0.35);
}

select.has-value:hover {
    border-color: #FFD87A;
    box-shadow: 0 0 8px rgba(212,175,55,0.55);
}

select:disabled {
    color: #999;
    border: 2px solid #EEEEEE;
    box-shadow: none;
    cursor: not-allowed;
}
.mobilePhone {display: flex;justify-content: space-between;width: auto;gap: 0.5em;}
.mobilePhone input[type="text"] {width: 110px;}
.mobilePhone select {width: 65px;height: 26px;}
select.small {max-width: 60px;width: 60px;}
	
.bluegold {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}
.bluegold input[type=checkbox],
.bluegold input[type=radio] {
    appearance: none;
    display: inline-block;
    position: relative;
    width: 18px;
    height: 18px;
    background: linear-gradient(to bottom right, #1A2B4F 0%, #2E4A78 100%);
    border: 2px solid #D4AF37;
    border-radius: 4px;
    cursor: pointer;
    opacity: 1;
    transition: 
        background 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
.bluegold input[type=radio] {
    border-radius: 50%;
}
.bluegold input[type=checkbox]:hover:not(:disabled),
.bluegold input[type=radio]:hover:not(:disabled) {border-color: #FFD87A;box-shadow: 0 0 6px rgba(212,175,55,0.6);}
.bluegold input[type=checkbox]:checked,
.bluegold input[type=radio]:checked {
    background: linear-gradient(to bottom right, #F3E6B3 0%, #E6C35A 100%);
    border-color: #FFD87A;
    box-shadow: 0 0 6px rgba(212,175,55,0.8);
}

/* Checkboxin valkoinen merkki */
.bluegold input[type=checkbox]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%) rotate(45deg);
    width: 6px;
    height: 12px;
    border: solid #1A2B4F;
    border-width: 0 3px 3px 0;
}

/* Radiopainikkeen valkoinen piste */
.bluegold input[type=radio]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
}

.bluegold.off input[type=checkbox],
.bluegold.off input[type=radio] {
    /*background: linear-gradient(to bottom right, #555 0%, #777 100%);*/
    border: 2px solid #EEEEEE;
    border-radius: 4px;
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.bluegold.off input[type=radio] {
    border-radius: 50%;
}

.bluegold.off input[type=checkbox]::after,
.bluegold.off input[type=radio]::after {
    display: none;
}

.serviceSubscriptionClass {
	background: linear-gradient(to bottom right, #1DA000 20%, #ffffff 80%)!important;
	height: 100vh;
}

.subscriptionWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    padding: 1em;
    box-sizing: border-box;
}

.subscriptionBox {
    padding: 1em 2em;
    padding-bottom: calc(1em + 20px);
    background: #202e38;
    width: 50%;
    max-width: 800px;
	min-width: 380px;
    height: auto;
    max-height: 85%;
    border: 3px solid #DAA520;
    border-radius: 36px;
    box-shadow: 0.75em 0.75em 16px #778899;
    overflow-y: auto;
    overflow-x: hidden;
}


/* BOX CONTENT */
.productLabel div {
    font-size: 3em;
    font-weight: 800;
    line-height: 1.2;
    color: #F8F8FF;
}

#titleText {
    display: inline-block;
    padding-bottom: 0.05em;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease;
}
.title-free {background: linear-gradient(45deg, #00BFFF 0%, #1E90FF 100%);}
.title-basic {background: linear-gradient(45deg, #7CFC00 0%, #32CD32 100%);}
.title-pro {background: linear-gradient(45deg, #FFD700 0%, #FF8C00 100%);}
.title-ultra {background: linear-gradient(45deg, #FF69B4 0%, #FF1493 100%);}

.productSelector {
    display: flex;
    align-items: center;
    gap: 2em;
    margin: 0.8em 0;
}

.productLabel {flex: 0 auto 0;}
.productLabel > div:first-child,
.productLabel > div:last-child  {display: flex;align-items: flex-start;height: 1.8em;font-size: 0.75rem;}

.productRollWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 12em;
    position: relative;
}

.productItem {
    font-size: 1em;
    color: #888;
    text-align: center;
    line-height: 1.5em;
    width: 100%;
    transition: font-size 0.5s ease, color 0.5s ease,  transform 0.5s ease;
    transform: scale(1);
}
.productItem.current {
    font-size: 3em;
    font-weight: 700;
    transform: scale(1.1);
}
#free.current,
.scopeFree {
    background: linear-gradient(45deg, #1E90FF 0%, #00BFFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease, transform 0.5s ease;
}
#basic.current,
.scopeBasic {
    background: linear-gradient(45deg, #32CD32 0%, #7CFC00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease, transform 0.5s ease;
}
#pro.current,
.scopePro {
    background: linear-gradient(45deg, #FF8C00 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease, transform 0.5s ease;
}
#ultra.current,
.scopeUltra {
    background: linear-gradient(45deg, #FF1493 0%, #FF69B4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: background 0.5s ease, transform 0.5s ease;
}
.scopeFree, .scopeBasic, .scopePro, .scopeUltra {font-weight: 800;}
.productItem:not(.current) {
    color: #888;
    font-size: 1em;
    transform: scale(1);
}

.serviceSubscribeButton {
    font-family: "Roboto", sans-serif;
    font-size: 2.2em;
    font-weight: 700;
    color: #F8F8FF;
    background: linear-gradient(to bottom right, #0A8C00 0%, #1DA000 100%);
    border: 2px solid #e6e6e6;
    border-radius: 10px;
    cursor: pointer;
    width: 60%;
	height: 64px;
    max-width: 320px;
    text-align: center;
	text-transform: uppercase;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.15s ease;
}
.serviceSubscribeButton:hover {
    background: linear-gradient(to bottom right, #1DA000 20%, #ffffff 80%);
    border-color: #FFD87A;
    box-shadow: 0 0 12px var(--gold-glow);
}
.serviceSubscribeButton:active {
    transform: scale(0.97);
    background: linear-gradient(to bottom right, #148300 20%, #F5FFF5 80%);
    box-shadow: 0 0 16px rgba(212,175,55,0.85);
}
.serviceSubscribeButton:disabled {
    background: var(--bg-input-disabled);
    border-color: #aaa;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}
.subscribeButton2 {display: none;}

.featureHeader {
	font-family: "Roboto", sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	background: linear-gradient(90deg, #90EE90, #87CEFA, #90EE90);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	animation: moveGradient 3s linear infinite alternate;
	text-transform: uppercase;
	margin-top: 0.75em;
}

/* SCOPE SELECTOR */
.serviceScopeContent {
	display: flex;
	justify-content: space-between;
	padding-top: 1.5em;
	gap: 2.4em;
}
.serviceScopeSelector,
.subscriberDetails {
	display: flex;
	flex-direction: column;
}
.serviceScopeSelector {justify-content: space-between;gap: 1em;}
.subscriberDetails {gap: 0.6em;}
.subscriberDetails > div {display: flex;justify-content: space-between;align-items: center;gap: 0.4em;}
.dataRequired {color: #7FFFD4/*#DFFEFE*/;font-weight: 600;}
.subscriberDetails a {color: #ADFF2F;} .subscriberDetails a:hover {color: #7FFFD4;}
.serviceScopeSelector {width: 50%;}
.subscriberDetails {width: 50%;flex-wrap: wrap;}
.serviceScopeSelector > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.serviceScopeSelector select {width: 175px;}
#scopeTireSetsContainer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1em;
}
.scope-block span {color: #C0C0C0;}
.scope-row {display: flex;justify-content: space-between;align-items: center;width: 100%;}

.calcPrizes {
	display: flex;
	align-items: center;
	flex-direction: column;
	width: 100%;
	font-family: 'Roboto', sans-serif;
	font-size: 1.4em;
	font-weight: 500;
	color: #F8F8FF;
	padding: 0.4em 0.2em;
}
.calcPrizes > div {display: flex;justify-content: flex-start;width: 100%;gap: 0.3em;}
.calcSum {color: #7CFC00;}


/* FOOTER */
.subscriptionFooter {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	left: 0;
	bottom: 0;
	width: 100%;
	background-color: #202e38;
	text-align: left;
	border-top: 3px solid #DAA520;
	padding: 0.6em;
}
.footerBrand {
	flex: 0 0 20%;
	align-items: center;
	max-width: 900px;
	font-family: "Roboto", sans-serif;
	font-size: 2.4em;
	font-weight: 700;
	background: linear-gradient(90deg, #90EE90, #87CEFA, #90EE90);
	background-size: 200% 200%;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	color: transparent;
	animation: moveGradient 3s linear infinite alternate;
}
@keyframes moveGradient {0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; }}

.footerContact {
    display: flex;
	justify-content: center;
	flex: 0 0 60%;
    gap: 40px;
}
.footerContact p {margin: 0.1em 0;}

.footerLanguage {
    display: flex;
    justify-content: flex-end;
    flex: 0 0 20%;
    margin-right: 1.6em;
}
.footerLanguage > div:last-child {width: 20px;}

.language-dropdown {
    position: relative;
    display: inline-block;
    width: 75px;
    height: 22px;
}
.dropdown-button {
    display: flex;
    justify-content: center;
    align-items: center;
	cursor: pointer;
    width: 85px;
    height: 22px;
    background: transparent;
    border: none;
    padding: 5px;
}
.language-dropdown .dropdown-list {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    width: 80px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    bottom: 100%;
    left: 0;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
    box-sizing: border-box;
    margin: 0;
    list-style: none;
}
.language-dropdown.open .dropdown-list {display: inline-block;}
.dropdown-list li {padding: 2px 8px; cursor: pointer;}
.dropdown-list li:hover {background-color: #f0f0f0;}
.dropdown-list img {width: 50px; height: 22px; object-fit: contain;}

.subscriptionFooter p {margin: 0.2em 0;}


/* THANK YOU */
.thankYouView {
    text-align: center;
    padding: 60px 30px;
}

.thankYouView h2 {
    color: #7FFFD4;
    margin-bottom: 16px;
}

.thankYouView p {
    color: #F8F8FF;
}

/* MEDIA RULES */
@media (max-width: 1240px) {
    .subscriptionBox {
        width: 60%;
    }
}

@media (max-width: 1080px) {
	.serviceScopeContent {flex-direction: column;align-items: center;}
	.productSelector {flex-direction: column;justify-content: center;}
	.productRollWrapper {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: center;
		height: 1.2em;
		gap: 1em;
	}
	#empty1, #empty2, #empty3 {display: none;}
	.productLabel {
		display: flex;
		flex-direction: row;
		align-items: center;
		gap: 0.5em;
	}

	.productLabel > div:last-child  {display: none;align-items: center;height: .8em;font-size: 0.75rem;}
	.productLabel div {
		font-size: 2.4em;
		line-height: 1.2;
	}
	.productItem {font-size: 0.75em;}
	.productItem.current {font-size: 1.5em;}
	.subscribeButton1 {display: none;}
	.subscribeButton2 {display: flex;justify-content: center;}
	.subscribeButton2 > div,
	.calcPrizes > div {display: flex;justify-content: flex-start;width: 80%;}
	.info-title {display: none;}
	.serviceSubscribeButton {font-size: 1em;width: auto;height: 42px;}
	.serviceScopeSelector {width: 75%;}
	.subscriberDetails {width: 75%;}
	.footerBrand {font-size: 1.2em;}
}

@media (max-height: 860px) {
	.subscriptionBox {max-height: 70%;}
}

@media (max-width: 768px) {
	body {
		font-size: 0.875rem;
	}
    .subscriptionBox {
        width: 80%;
		min-width: 300px!important;
		max-height: 70%;
		padding: 0.8em;
    }
	.serviceScopeContent {gap: 1.6em;}
	.productSelector {gap: 1em;}
	.serviceScopeSelector,
	.subscriberDetails,
	.subscribeButton2 > div,
	.calcPrizes > div {width: 100%;}
	.calcPrizes {width: 100%;font-size: 1.4em;}
	.footerBrand, 
	.footerContact {font-size: .8em;}
}

@media (max-width: 420px) {
	.subscriptionWrapper {padding: 0;}
	.subscriptionBox {
		min-width: 280px!important;
    }
}