
body {
	font-family: 'Inter', sans-serif;
	background-color: #f6f8fa;
	background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23EAF2FF' fill-opacity='1' d='M0,224L48,202.7C96,181,192,139,288,122.7C384,107,480,117,576,138.7C672,160,768,192,864,213.3C960,235,1056,245,1152,229.3C1248,213,1344,171,1392,149.3L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: top center;
	margin: 0;
	padding: 0;
}

:root {
	--primary: #007bff;
	--error: #e74c3c;
	--bg: #f6f8fa;
	--radius: 10px;
	--transition: 0.2s ease;
	--input-height: 48px;
}

/* --- Form wrapper --- */
.form-container {
	max-width: 420px;
	background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255, 253, 245, 0.9));
	border: 1px solid rgba(186, 210, 255, 0.7);
	border-radius: 16px;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	margin: 40px auto;
	padding: 28px 26px 34px;
}


.card-title {
	margin: auto;
	margin-bottom: 0px;
	border-bottom: dashed #a8a8a8 1px;
}

.form-title {
	text-align: center;
	font-weight: 600;
	color: #002246;
	font-size: 2.4rem;
	margin-top: 0;
	display: inline;
	margin-bottom: 0px;
	font-family: "Tinos", serif;
}

#langToggle {
		display: inline;
		width: 32px;
}

.form-group {
	margin-bottom: 18px;
}

label {
	display: block;
	font-size: 0.9rem;
	font-weight: 500;
	color: #444;
	margin-bottom: 6px;
}

/* --- Unified input & select styling --- */
input[type=text],
input[type=email],
select {
	width: 100%;
	height: var(--input-height);
	line-height: var(--input-height);
	padding: 0 14px;
	border: 1px solid #d5d8dd;
	border-radius: var(--radius);
	font-size: 1rem;
	transition: 
	border var(--transition),
	box-shadow var(--transition),
	color var(--transition),
	font-weight var(--transition);
	box-sizing: border-box;
	appearance: none;
	background-color: #fff;
	/* default text color */
	color: #777;
}

/* --- Placeholder --- */
input::placeholder {
	color: #aaa;
}

/* --- Dropdown arrow --- */
select {
	background-image: url("data:image/svg+xml;utf8,<svg fill='%23666' height='18' viewBox='0 0 24 24' width='18' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 18px;
	padding-right: 36px;
}

/* --- When focused: blue + bold --- */
input:focus,
select:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0,123,255,0.12);
	outline: none;
	color: var(--primary);
	font-weight: 600;
}

/* --- When user typed something --- */
input:not(:placeholder-shown) {
	color: var(--primary);
}

/* For selects — when an option is chosen */
select option[value=""] {
	color: #aaa; /* placeholder color */
}
select:not(:focus):not([value=""]) {
	color: var(--primary);
	font-weight: 500;
}

/* --- Submit button --- */
button {
	width: 100%;
	height: 48px;
	background: linear-gradient(145deg, rgba(85, 149, 229, 0.95), rgba(3, 18, 104, 0.9));
	border: solid #2224ac 1px;
	color: #fff;
	font-weight: 600;
	font-size: 1rem;
	border-radius: var(--radius);
	cursor: pointer;
	transition: background var(--transition), transform var(--transition);
	box-shadow: 0 6px 18px rgba(178, 178, 178, 0.8);
}

button:hover {
	background: linear-gradient(145deg, rgba(3, 18, 104, 0.9), rgba(85, 149, 229, 0.95));
	transform: translateY(-1px);
}

/* errors */
.input-error {
	border-color: #e74c3c !important;
	box-shadow: 0 0 0 2px rgba(231,76,60,0.15) !important;
}
.error-message {
	color: #b00000;
	font-size: 0.82rem;
	margin-top: 4px;
}

/* --- Captcha area --- */
.captcha {
	margin: 22px 0 25px;
	display: flex;
	justify-content: center;
}

/* --- Mobile adjustments --- */
@media (max-width: 480px) {
	.form-container {
		margin: 0;
		min-height: 100vh;
		border-radius: 0;
		box-shadow: none;
		padding: 22px 20px 40px;
	}
	.form-title { 
		font-size: 2rem; 
	}
}

textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid #d5d8dd;
	border-radius: var(--radius);
	font-size: 1rem;
	box-sizing: border-box;
	resize: vertical;
	min-height: 100px;
	transition: border var(--transition), box-shadow var(--transition);
	resize: vertical;
}
textarea:focus {
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(0,123,255,0.12);
	outline: none;
}

/* --- Error box (from client validation) --- */
#formErrors {
	background: #ffecec;
	border: 1px solid var(--error);
	color: #b00000;
	padding: 10px 14px;
	border-radius: var(--radius);
	margin-bottom: 16px;
	font-size: 0.9rem;
}
#formErrors ul {
	margin: 0;
	padding-left: 18px;
}

.mandatory {
	color: red !important;
	font-weight: bold;
}
.optional {
	color: green !important;
	font-weight: bold;
}

/* --- Modal styles (updated for max size and scroll) --- */
.modal-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.65);
	display: none; /* hidden by default */
	align-items: center;
	justify-content: center;
	z-index: 1000;
	padding: 10px; /* small padding for mobile safe area */
	box-sizing: border-box;
}

.modal {
	background: #fff;
	width: 100%;
	max-width: 600px;
	max-height: min(800px, 88vh);
	overflow-y: auto;
	overflow-x: hidden;
	padding: 22px 26px;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.4);
	text-align: left;
	animation: fadeIn 0.25s ease;
	position: relative;
	box-sizing: border-box;
	scrollbar-width: thin;
	scrollbar-color: #007bff #f1f1f1;
}

/* Custom scrollbar for WebKit browsers (mobile-friendly) */
.modal::-webkit-scrollbar {
	width: 6px;
}
.modal::-webkit-scrollbar-thumb {
	background-color: #007bff;
	border-radius: 4px;
}
.modal::-webkit-scrollbar-track {
	background: #f1f1f1;
}

.modal h3 {
	margin-top: 0;
	color: #007bff;
	font-size: 1.2rem;
	margin-bottom: 10px;
}

.modal p {
	color: #333;
	line-height: 1.5;
	font-size: 0.95rem;
	margin-bottom: 14px;
	text-align: justify;
}

.modal .close {
	position: absolute;
	top: 10px;
	right: 14px;
	font-size: 24px;
	font-weight: 600;
	color: #666;
	cursor: pointer;
	transition: color 0.2s ease;
}
.modal .close:hover {
	color: #000;
}

@keyframes fadeIn {
	from {opacity: 0; transform: translateY(-10px);}
	to	 {opacity: 1; transform: translateY(0);}
}

/* Small mobile tweak: wider padding for readability */
@media (max-width: 480px) {
	.modal {
		padding: 18px 20px;
		border-radius: 10px;
	}
}

@keyframes fadeIn {
	from {opacity: 0; transform: translateY(-10px);}
	to	 {opacity: 1; transform: translateY(0);}
}

.logo-holder {
	clear: both;
	margin: 8px auto 24px auto;
}
.logo-img {
	width: 80px;
	margin: auto;
	display: inline;
}
.logo-company {
	font-family: "Tinos", serif;
	font-weight: bold;
	font-size: 42px;
	display: inline;
	vertical-align: middle;
	line-height: 0.8;
	color: #333;
}
.logo-company-sub {
	font-family: "Tinos", serif;
	font-size: 17.4px;
	display: inline;
	vertical-align: middle;
	line-height: 0.7;
	color: #f0bd76;
}