/* 1. Add this at the very top of style.css */
@font-face {
	 font-family: "menufont";
	 src: url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.eot);
	 src:
		 local(☺),
		 url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.woff) format("woff"),
		 url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.ttf) format("truetype"),
		 url(https://4love.ge/fonts/bpg_mrgvlovani_caps_2010.svg) format("svg");
	 font-weight: 400;
	 font-style: normal;
}

/* --- SAFETY LOCK (Updated) --- */
* {
	box-sizing: border-box; 
}

html, body {
	width: 100%;
	/* Removed max-width: 100vw (it causes issues on iOS) */
	overflow-x: hidden;     
	margin: 0;
	padding: 0;
	-webkit-text-size-adjust: 100%; /* Prevents text zoom glitches */
}

/* --- GLOBAL STYLES --- */
:root {
	--primary-gradient: linear-gradient(135deg, #4facfe 0%, #ff58a8 100%);
	--glass-bg: rgba(255, 255, 255, 0.65);
	--glass-border: 1px solid rgba(255, 255, 255, 0.8);
	--shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
	--text-color: #4a4a4a;
	--accent-color: #ff58a8;
}

body {
	margin: 0;
	padding: 0;
	font-family: 'Noto Sans Georgian', 'Nunito', sans-serif;
	background-color: #f4f9ff;
	overflow-x: hidden;
	min-height: 100vh;
	color: var(--text-color);
	padding-bottom: 100px; /* Space for sticky footer */
}

/* --- BACKGROUND ORBS (Fixed Position) --- */
.orb {
	position: fixed; /* CHANGED from absolute to fixed */
	border-radius: 50%;
	filter: blur(80px);
	z-index: -1;
	opacity: 0.6;
	animation: floatLiquid 12s infinite ease-in-out alternate;
	pointer-events: none; /* Ensures you can't click/touch them */
}

.orb-1 { width: 70vw; height: 70vw; background: #e0c3fc; top: -20%; left: -20%; }
.orb-2 { width: 60vw; height: 60vw; background: #8ec5fc; bottom: -10%; right: -20%; animation-delay: -5s; }

@keyframes floatLiquid {
	0% { transform: translate(0, 0) scale(1); }
	50% { transform: translate(20px, 40px) scale(1.05); }
	100% { transform: translate(-20px, 10px) scale(0.95); }
}

/* --- CONTAINER --- */
.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

/* --- HEADER --- */
header {
	text-align: center;
	margin-bottom: 20px;
	margin-top: 20px;
}

.brand-logo {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	gap: 10px;
}

.brand-text {
	font-weight: 800;
	font-size: 24px;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.intro-text {
	background: var(--glass-bg);
	padding: 20px;
	border-radius: 20px;
	border: var(--glass-border);
	margin-bottom: 30px;
	line-height: 1.6;
	font-size: 15px;
	text-align: center;
}

/* --- CALCULATOR SECTIONS --- */
.calc-section {
	background: var(--glass-bg);
	border: var(--glass-border);
	border-radius: 24px;
	padding: 25px;
	margin-bottom: 20px;
	box-shadow: var(--shadow);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	transition: transform 0.2s;
}

.calc-section:hover {
	transform: translateY(-2px);
}

.section-header {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid rgba(0,0,0,0.05);
	padding-bottom: 10px;
}

.section-icon {
	font-size: 24px;
	background: white;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.section-title {
	font-weight: 700;
	font-size: 18px;
	color: #333;
	font-family: menufont;
}

/* --- FORM INPUTS --- */
.input-group {
	margin-bottom: 15px;
}

label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #555;
}

.form-control {
	width: 100%;
	padding: 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.8);
	background: rgba(255,255,255,0.7);
	font-family: 'Noto Sans Georgian', sans-serif;
	font-size: 16px;
	box-sizing: border-box; /* Important for width */
	transition: all 0.3s;
}

.form-control:focus {
	outline: none;
	background: white;
	border-color: #ff58a8;
	box-shadow: 0 0 0 3px rgba(255, 88, 168, 0.1);
}

select.form-control {
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 15px center;
	background-size: 16px;
}

.price-display {
	font-weight: 800;
	color: var(--accent-color);
	font-size: 18px;
	text-align: right;
	margin-top: 10px;
}

/* --- STICKY FOOTER TOTAL (Fixed for Mobile) --- */
.sticky-total {
	position: fixed;
	bottom: 20px;
	left: 0; 
	right: 0; /* Stretch from left to right */
	margin: 0 auto; /* Center it */
	width: 90%; /* Safe width */
	max-width: 600px;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	padding: 15px 25px;
	border-radius: 50px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 100;
	border: 1px solid rgba(255,255,255,1);
	
	/* PREVENT OVERFLOW */
	box-sizing: border-box; 
}

.total-label {
	font-size: 16px;
	color: #666;
	font-family: menufont;
	font-weight: bold;
}

.total-amount {
	font-size: 24px;
	font-weight: 900;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 600px) {
	.container { padding: 10px; }
	.brand-text { font-size: 20px; }
	.sticky-total { width: 85%; padding: 15px 20px; }
	.total-amount { font-size: 20px; }
	
	.row {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
}

/* --- Custom Font for Intro Header --- */
.intro-text h2 {
	font-family: menufont;
	font-weight: 800; /* Extra Bold */
	margin-bottom: 10px;
	background: var(--primary-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent; /* Optional: Makes the text gradient like the logo */
}

/* Ensure the SVG icon aligns perfectly with text */
.brand-icon {
	display: block;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); /* Adds a subtle 3D pop */
}