/* ============================================
   NOTARSKA KOMORA CRNE GORE — Landing Page
   ============================================ */

:root {
	--gold: #b8860b;
	--gold-light: #d4a843;
	--gold-dark: #8b6508;
	--navy: #1a1f3a;
	--navy-light: #a78956;
	--cream: #faf8f4;
	--white: #ffffff;
	--text: #333333;
	--text-light: #666666;
	--border: #e0dcd4;
	--error: #c62828;
	--success: #2e7d32;
	--shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
	--radius: 12px;
	--radius-sm: 8px;
	--transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family:
		'Inter',
		-apple-system,
		BlinkMacSystemFont,
		'Segoe UI',
		sans-serif;
	background: var(--cream);
	color: var(--text);
	line-height: 1.6;
	min-height: 100vh;
	-webkit-font-smoothing: antialiased;
}

.container {
	max-width: 780px;
	margin: 0 auto;
	padding: 0 24px;
}

/* Background Pattern */
.bg-pattern {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(
			circle at 20% 50%,
			rgba(184, 134, 11, 0.03) 0%,
			transparent 50%
		),
		radial-gradient(
			circle at 80% 20%,
			rgba(26, 31, 58, 0.03) 0%,
			transparent 50%
		);
	pointer-events: none;
	z-index: 0;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
	position: absolute;
	top: 20px;
	right: 24px;
	z-index: 10;
	display: flex;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	padding: 4px;
	border-radius: 8px;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.lang-btn {
	background: transparent;
	color: rgba(255, 255, 255, 0.65);
	border: none;
	padding: 6px 14px;
	font-family: 'Inter', sans-serif;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.5px;
	cursor: pointer;
	border-radius: 6px;
	transition: all 0.25s ease;
}

.lang-btn:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
	background: var(--gold);
	color: var(--navy);
	box-shadow: 0 2px 8px rgba(184, 134, 11, 0.35);
}

/* ============================================
   HERO
   ============================================ */
.hero {
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
	padding: 56px 0 64px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(
		circle,
		rgba(184, 134, 11, 0.08) 0%,
		transparent 60%
	);
	pointer-events: none;
}

.hero-logo {
	margin-bottom: 24px;
	position: relative;
}

.hero-logo img {
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.hero-badge {
	display: inline-block;
	background: linear-gradient(135deg, var(--gold), var(--gold-light));
	color: var(--navy);
	font-family: 'Playfair Display', serif;
	font-size: 1.1rem;
	font-weight: 700;
	padding: 8px 28px;
	border-radius: 50px;
	margin-bottom: 24px;
	position: relative;
}

.hero-title {
	font-family: 'Playfair Display', serif;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	font-weight: 700;
	color: var(--white);
	margin-bottom: 12px;
	position: relative;
}

.hero-subtitle {
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 300;
	max-width: 600px;
	margin: 0 auto 28px;
	line-height: 1.7;
	position: relative;
}

.hero-divider {
	width: 60px;
	height: 2px;
	background: var(--gold);
	margin: 0 auto 28px;
	position: relative;
}

.hero-description {
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.65);
	max-width: 600px;
	margin: 0 auto 16px;
	line-height: 1.8;
	position: relative;
}

.hero-description strong {
	color: var(--gold-light);
	font-weight: 600;
}

.hero-cta {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
	font-style: italic;
	position: relative;
}

.hero-cta strong {
	color: var(--gold-light);
	font-weight: 600;
}

/* ============================================
   FORM SECTIONS
   ============================================ */
.main {
	position: relative;
	z-index: 1;
	padding: 48px 0 80px;
}

.form-section {
	background: var(--white);
	border-radius: var(--radius);
	padding: 36px 32px;
	margin-bottom: 24px;
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	transition: box-shadow var(--transition);
}

.form-section:hover {
	box-shadow: var(--shadow-lg);
}

.section-header {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--cream);
}

.section-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: #a78956;
	color: var(--white);
	font-family: 'Playfair Display', serif;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 50%;
	flex-shrink: 0;
}

.section-icon {
	font-size: 1.4rem;
	flex-shrink: 0;
}

.section-header h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.3rem;
	font-weight: 600;
	color: var(--navy);
}

.section-description {
	font-size: 0.9rem;
	color: var(--text-light);
	margin-bottom: 20px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.form-group.full-width {
	grid-column: 1 / -1;
}

label {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--text);
}

.required {
	color: var(--error);
}

input[type='text'],
input[type='email'],
input[type='tel'],
textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	font-family: inherit;
	font-size: 0.9rem;
	color: var(--text);
	background: var(--white);
	transition: all var(--transition);
	outline: none;
}

input[type='text']:focus,
input[type='email']:focus,
input[type='tel']:focus,
textarea:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

input.invalid,
textarea.invalid {
	border-color: var(--error);
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

textarea {
	resize: vertical;
	min-height: 80px;
}

.error-msg {
	font-size: 0.78rem;
	color: var(--error);
	min-height: 0;
	transition: all var(--transition);
}

.error-msg:not(:empty) {
	min-height: 18px;
}

/* Radio Cards */
.radio-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 4px;
}

.radio-group.horizontal {
	flex-direction: row;
	gap: 16px;
}

.radio-card {
	cursor: pointer;
	display: block;
}

.radio-card input[type='radio'] {
	display: none;
}

.radio-card-content {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 20px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	transition: all var(--transition);
	background: var(--cream);
}

.radio-card input[type='radio']:checked + .radio-card-content {
	border-color: var(--gold);
	background: rgba(184, 134, 11, 0.06);
	box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.radio-indicator {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border);
	border-radius: 50%;
	position: relative;
	flex-shrink: 0;
	transition: all var(--transition);
}

.radio-card input[type='radio']:checked + .radio-card-content .radio-indicator,
.radio-option input[type='radio']:checked ~ .radio-indicator {
	border-color: var(--gold);
}

.radio-card
	input[type='radio']:checked
	+ .radio-card-content
	.radio-indicator::after,
.radio-option input[type='radio']:checked ~ .radio-indicator::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 10px;
	height: 10px;
	background: var(--gold);
	border-radius: 50%;
}

.radio-label {
	font-weight: 500;
	color: var(--text);
	display: block;
}

.radio-price {
	font-size: 0.8rem;
	color: var(--text-light);
	margin-top: 2px;
	display: block;
}

/* Radio option (inline) */
.radio-option {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.9rem;
}

.radio-option input[type='radio'] {
	display: none;
}

/* Checkbox Options */
.checkbox-option {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 0;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 400;
	transition: color var(--transition);
}

.checkbox-option:hover {
	color: var(--gold-dark);
}

.checkbox-option input[type='checkbox'] {
	display: none;
}

.checkbox-indicator {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border);
	border-radius: 4px;
	position: relative;
	flex-shrink: 0;
	transition: all var(--transition);
}

.checkbox-option input[type='checkbox']:checked ~ .checkbox-indicator {
	background: var(--gold);
	border-color: var(--gold);
}

.checkbox-option input[type='checkbox']:checked ~ .checkbox-indicator::after {
	content: '';
	position: absolute;
	top: 2px;
	left: 5px;
	width: 6px;
	height: 10px;
	border: solid var(--white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Conditional section */
.conditional-section {
	overflow: hidden;
	transition: all 0.4s ease;
	max-height: 300px;
	opacity: 1;
}

.conditional-section.hidden {
	display: block !important;
	max-height: 0;
	opacity: 0;
	margin: 0;
	padding: 0;
}

/* Info Cards */
.info-card {
	background: linear-gradient(135deg, #f7f5f0, #faf8f4);
	border: 1px solid var(--border);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius-sm);
	padding: 20px 24px;
	margin-bottom: 24px;
	font-size: 0.88rem;
	color: var(--text-light);
	line-height: 1.7;
}

.info-card a {
	color: var(--gold-dark);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color var(--transition);
}

.info-card a:hover {
	border-bottom-color: var(--gold);
}

.info-card p + p {
	margin-top: 10px;
}

.info-note {
	font-size: 0.82rem;
	color: var(--text-light);
}

.price-info {
	display: flex;
	gap: 24px;
	margin-top: 8px;
	font-size: 0.82rem;
	color: var(--text-light);
}

/* Transfer Card */
.transfer-card {
	margin-top: 24px;
	margin-bottom: 0;
}

.transfer-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.transfer-header h4 {
	font-family: 'Playfair Display', serif;
	font-size: 1rem;
	color: var(--navy);
}

.transfer-icon {
	font-size: 1.2rem;
}

.transfer-price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--border);
	font-size: 0.85rem;
}

.transfer-note {
	font-size: 0.78rem;
	color: #999;
	font-style: italic;
}

/* Events Grid */
.events-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.event-card {
	background: var(--cream);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 20px;
	transition: all var(--transition);
}

.event-card:hover {
	border-color: var(--gold);
}

.event-date {
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.event-day {
	display: block;
	font-family: 'Playfair Display', serif;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--navy);
}

.event-full-date {
	display: block;
	font-size: 0.78rem;
	color: var(--text-light);
	margin-top: 2px;
}

.event-card .checkbox-option {
	padding: 8px 0;
}

/* ============================================
   SUBMIT BUTTON
   ============================================ */
.form-submit {
	text-align: center;
	margin-top: 16px;
}

#submitBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(135deg, var(--gold), var(--gold-dark));
	color: var(--white);
	border: none;
	padding: 16px 56px;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	transition: all var(--transition);
	box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
	letter-spacing: 0.5px;
	min-width: 260px;
	min-height: 54px;
}

#submitBtn:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(184, 134, 11, 0.4);
}

#submitBtn:active {
	transform: translateY(0);
}

#submitBtn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.spinner {
	width: 20px;
	height: 20px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.submit-note {
	font-size: 0.8rem;
	color: var(--text-light);
	margin-top: 12px;
}

/* ============================================
   SUCCESS MESSAGE
   ============================================ */
.success-message {
	text-align: center;
	padding: 64px 32px;
	background: var(--white);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
	border: 1px solid var(--border);
	animation: fadeInUp 0.6s ease;
}

.success-message.hidden {
	display: none;
}

.success-icon svg {
	width: 64px;
	height: 64px;
	margin-bottom: 24px;
}

.success-message h3 {
	font-family: 'Playfair Display', serif;
	font-size: 1.6rem;
	color: var(--navy);
	margin-bottom: 12px;
}

.success-message p {
	font-size: 0.95rem;
	color: var(--text-light);
	max-width: 480px;
	margin: 0 auto 8px;
	line-height: 1.7;
}

.success-date {
	font-weight: 600;
	color: var(--gold-dark) !important;
	margin-top: 16px !important;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(24px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
	background: var(--navy);
	padding: 24px 0;
	text-align: center;
}

.footer p {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   UTILITY
   ============================================ */
.hidden {
	display: none !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
	.lang-switcher {
		top: 12px;
		right: 16px;
		padding: 3px;
		gap: 4px;
	}

	.lang-btn {
		padding: 5px 10px;
		font-size: 12px;
	}

	.hero-logo img {
		width: 80px;
		height: 80px;
	}

	.hero {
		padding: 40px 0 48px;
	}

	.hero-badge {
		font-size: 0.95rem;
		padding: 6px 22px;
	}

	.form-section {
		padding: 24px 20px;
	}

	.form-grid {
		grid-template-columns: 1fr;
	}

	.events-grid {
		grid-template-columns: 1fr;
	}

	.radio-group.horizontal {
		flex-direction: column;
		gap: 10px;
	}

	.price-info {
		flex-direction: column;
		gap: 4px;
	}

	#submitBtn {
		width: 100%;
		padding: 16px 32px;
	}

	.checkbox-option {
		padding: 14px 0;
		font-size: 1rem;
	}

	.checkbox-indicator {
		width: 28px;
		height: 28px;
		border-radius: 6px;
	}

	.checkbox-option input[type='checkbox']:checked ~ .checkbox-indicator::after {
		top: 4px;
		left: 8px;
		width: 8px;
		height: 13px;
		border-width: 0 3px 3px 0;
	}

	.radio-indicator {
		width: 26px;
		height: 26px;
	}

	.radio-card
		input[type='radio']:checked
		+ .radio-card-content
		.radio-indicator::after,
	.radio-option input[type='radio']:checked ~ .radio-indicator::after {
		top: 4px;
		left: 4px;
		width: 14px;
		height: 14px;
	}
}
