/* Reset & Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	/* Blue Ribbon Color Palette */
	--blue-ribbon-50: #edf7ff;
	--blue-ribbon-100: #d7ebff;
	--blue-ribbon-200: #b9ddff;
	--blue-ribbon-300: #88c9ff;
	--blue-ribbon-400: #50aaff;
	--blue-ribbon-500: #2885ff;
	--blue-ribbon-600: #085fff;
	--blue-ribbon-700: #0a4eeb;
	--blue-ribbon-800: #0f3fbe;
	--blue-ribbon-900: #133a95;
	--blue-ribbon-950: #11255a;

	/* Primary Colors */
	--primary-color: var(--blue-ribbon-600);
	--primary-dark: var(--blue-ribbon-700);
	--primary-light: var(--blue-ribbon-400);
	--primary-hover: var(--blue-ribbon-500);

	/* Danger/Ambulance Colors */
	--ambulance-red: #ef4444;
	--ambulance-red-dark: #dc2626;
	--ambulance-red-light: #fee2e2;

	/* Text Colors */
	--text-primary: #1a1a1a;
	--text-secondary: #6b7280;
	--text-light: #9ca3af;
	--text-white: #ffffff;

	/* Background Colors */
	--bg-white: #ffffff;
	--bg-light: #f9fafb;
	--bg-lighter: #f3f4f6;

	/* Border Colors */
	--border-color: #e5e7eb;
	--border-light: #f3f4f6;

	/* Shadows */
	--shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
		0 2px 4px -1px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
		0 4px 6px -2px rgba(0, 0, 0, 0.05);
	--shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
		0 10px 10px -5px rgba(0, 0, 0, 0.04);
	--shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

	/* Transitions */
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
		sans-serif;
	color: var(--text-primary);
	background: var(--bg-light);
	font-size: 14px;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

#app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* Header Styles */
.layanan-header {
	background: var(--bg-white);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

/* Header Styles */
.layanan-header {
	background: var(--bg-white);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 0;
}

.header-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.header-nav {
	display: flex;
	gap: 0.5rem;
}

.nav-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
	text-decoration: none;
}

.nav-btn:hover {
	background: var(--bg-light);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.header-logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-logo i {
	font-size: 2rem;
	color: var(--primary-color);
}

.header-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-primary);
	margin: 0;
}

.header-nav {
	display: flex;
	gap: 0.5rem;
}

.nav-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
}

.nav-btn:hover {
	background: var(--bg-light);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: var(--transition);
}

.mobile-menu-toggle:hover {
	background: var(--bg-light);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.mobile-menu-toggle i {
	font-size: 1.25rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
	.header-content {
		padding: 0.75rem 0;
	}

	.header-logo img {
		width: 150px;
		height: auto;
	}

	.mobile-menu-toggle {
		display: flex;
	}

	.header-nav {
		position: fixed;
		top: 73px;
		left: 0;
		right: 0;
		background: var(--bg-white);
		border-bottom: 1px solid var(--border-color);
		box-shadow: var(--shadow-lg);
		flex-direction: column;
		gap: 0;
		padding: 0;
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-out;
		z-index: 999;
	}

	.header-nav.active {
		max-height: 300px;
		padding: 0.5rem 0;
	}

	.nav-btn {
		width: 100%;
		border-radius: 0;
		border: none;
		border-bottom: 1px solid var(--border-light);
		padding: 1rem 1.5rem;
		justify-content: flex-start;
	}

	.nav-btn:last-child {
		border-bottom: none;
	}
}

@media (max-width: 480px) {
	.header-logo img {
		width: 120px;
	}

	.container {
		padding: 0 16px;
	}
}

/* Tab Navigation */
.layanan-tabs-container {
	background: var(--bg-white);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 73px;
	z-index: 999;
}

.layanan-tabs {
	display: flex;
	gap: 0.5rem;
	padding: 1rem 0;
	overflow-x: auto;
	scrollbar-width: none;
}

.layanan-tabs::-webkit-scrollbar {
	display: none;
}

.tab-btn {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	background: transparent;
	border: none;
	border-radius: 10px;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: var(--transition);
	white-space: nowrap;
	position: relative;
	opacity: 0;
	animation: fadeInUp 0.5s ease-out forwards;
}

.tab-btn i {
	font-size: 1.125rem;
}

.tab-btn:hover {
	background: var(--bg-light);
	color: var(--primary-color);
	transform: translateY(-2px);
}

.tab-btn.active {
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-light)
	);
	color: var(--text-white);
	box-shadow: var(--shadow-md);
}

.tab-btn.active:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-lg);
}

.tab-badge {
	background: rgba(255, 255, 255, 0.3);
	color: var(--text-white);
	padding: 0.125rem 0.5rem;
	border-radius: 12px;
	font-size: 0.75rem;
	font-weight: 600;
}

/* Main Content */
.layanan-main {
	flex: 1;
}

.layanan-content {
	position: relative;
}

.tab-panel {
	display: none;
	animation: fadeIn 0.4s ease-out;
}

.tab-panel.active {
	display: block;
}

/* Hero Section */
.hero-section {
	position: relative;
	background: linear-gradient(
		135deg,
		var(--ambulance-red) 0%,
		var(--ambulance-red-dark) 100%
	);
	padding: 5rem 0;
	overflow: hidden;
	min-height: 600px;
	display: flex;
	align-items: center;
}

.hero-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}

.hero-shapes {
	position: relative;
	width: 100%;
	height: 100%;
}

.shape {
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	animation: float 20s infinite ease-in-out;
}

.shape-1 {
	width: 300px;
	height: 300px;
	top: -150px;
	right: -150px;
	animation-delay: 0s;
}

.shape-2 {
	width: 200px;
	height: 200px;
	bottom: -100px;
	left: -100px;
	animation-delay: 5s;
}

.shape-3 {
	width: 150px;
	height: 150px;
	top: 50%;
	right: 10%;
	animation-delay: 10s;
}

@keyframes float {
	0%,
	100% {
		transform: translate(0, 0) rotate(0deg);
	}
	33% {
		transform: translate(30px, -30px) rotate(120deg);
	}
	66% {
		transform: translate(-20px, 20px) rotate(240deg);
	}
}

.hero-content {
	position: relative;
	z-index: 10;
	text-align: center;
	color: var(--text-white);
	max-width: 800px;
	margin: 0 auto;
}

.hero-icon-wrapper {
	width: 120px;
	height: 120px;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 2rem;
	border: 3px solid rgba(255, 255, 255, 0.3);
	opacity: 0;
	transform: scale(0.5);
	transition: var(--transition-slow);
}

.hero-icon-wrapper.animate {
	opacity: 1;
	transform: scale(1);
	animation: pulse 2s infinite;
}

.hero-icon {
	font-size: 4rem;
	color: var(--text-white);
}

@keyframes pulse {
	0%,
	100% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.05);
	}
}

.hero-title {
	font-size: 3.5rem;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 1.5rem;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.hero-title .highlight {
	background: linear-gradient(135deg, #ffd700, #ffed4e);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.hero-description {
	font-size: 1.125rem;
	line-height: 1.8;
	margin-bottom: 2rem;
	opacity: 0.95;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.hero-features {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(10px);
	padding: 0.75rem 1.5rem;
	border-radius: 50px;
	font-weight: 600;
	border: 1px solid rgba(255, 255, 255, 0.3);
}

.feature-item i {
	font-size: 1.25rem;
}

.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	padding: 1rem 2.5rem;
	background: var(--text-white);
	color: var(--ambulance-red);
	border: none;
	border-radius: 50px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: var(--transition);
	box-shadow: var(--shadow-xl);
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease-out 0.8s forwards;
}

.btn-cta:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: var(--shadow-2xl);
}

.btn-cta i {
	font-size: 1.25rem;
	transition: var(--transition);
}

.btn-cta:hover i {
	transform: translateX(5px);
}

.btn-cta-large {
	padding: 1.25rem 3rem;
	font-size: 1.125rem;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Features Section */
.features-section {
	padding: 5rem 0;
	background: var(--bg-white);
}

.section-title {
	font-size: 2.5rem;
	font-weight: 700;
	text-align: center;
	margin-bottom: 3rem;
	color: var(--text-primary);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.feature-card {
	background: var(--bg-white);
	border: 1px solid var(--border-color);
	border-radius: 16px;
	padding: 2rem;
	text-align: center;
	transition: var(--transition);
	box-shadow: var(--shadow-sm);
}

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: var(--shadow-lg);
	border-color: var(--primary-color);
}

.feature-card-icon {
	width: 80px;
	height: 80px;
	background: linear-gradient(
		135deg,
		var(--ambulance-red-light),
		var(--blue-ribbon-50)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1.5rem;
}

.feature-card-icon i {
	font-size: 2rem;
	color: var(--ambulance-red);
}

.feature-card-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 0.75rem;
	color: var(--text-primary);
}

.feature-card-description {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* Process Section */
.process-section {
	padding: 5rem 0;
	background: var(--bg-light);
}

.process-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	max-width: 1000px;
	margin: 0 auto;
}

.process-step {
	display: flex;
	gap: 1.5rem;
	align-items: flex-start;
}

.step-number {
	width: 60px;
	height: 60px;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-light)
	);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--text-white);
	flex-shrink: 0;
	box-shadow: var(--shadow-md);
}

.step-content {
	flex: 1;
}

.step-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.step-description {
	font-size: 0.9375rem;
	color: var(--text-secondary);
	line-height: 1.6;
}

/* CTA Section */
.cta-section {
	padding: 5rem 0;
	background: linear-gradient(
		135deg,
		var(--primary-color),
		var(--primary-dark)
	);
	color: var(--text-white);
}

.cta-content {
	text-align: center;
	max-width: 600px;
	margin: 0 auto;
}

.cta-title {
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 1rem;
}

.cta-description {
	font-size: 1.125rem;
	margin-bottom: 2rem;
	opacity: 0.95;
}

/* Form Panel */
.form-panel {
	padding: 3rem 0;
	background: var(--bg-light);
	min-height: calc(100vh - 200px);
}

.form-header {
	margin-bottom: 2rem;
}

.btn-back {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1rem;
	background: var(--bg-white);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
	margin-bottom: 1.5rem;
}

.btn-back:hover {
	background: var(--bg-light);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.form-title {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
	color: var(--text-primary);
}

.form-subtitle {
	font-size: 1rem;
	color: var(--text-secondary);
}

.form-container {
	background: var(--bg-white);
	border-radius: 16px;
	padding: 2rem;
	box-shadow: var(--shadow-md);
}

/* Form Section Styles */
.form-section {
	margin-bottom: 1.5rem;
}

.form-section-title {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--border-light);
}

.form-section-title i {
	font-size: 1.25rem;
}

.form-group {
	margin-bottom: 1rem;
}

.form-control-label {
	font-weight: 500;
	color: var(--text-primary);
	font-size: 0.875rem;
}

.form-control,
.form-select {
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 0.625rem 0.875rem;
	font-size: 0.875rem;
	transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(8, 95, 255, 0.1);
	outline: none;
}

.form-control:disabled {
	background-color: var(--bg-lighter);
	cursor: not-allowed;
}

.form-footer {
	display: flex;
	justify-content: flex-end;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--border-color);
}

.form-footer .btn {
	padding: 0.75rem 2rem;
	font-weight: 600;
	border-radius: 8px;
	transition: var(--transition);
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.form-footer .btn i {
	font-size: 1rem;
}

.btn-primary {
	background: var(--primary-color);
	border: none;
	color: var(--text-white);
}

.btn-primary:hover {
	background: var(--primary-dark);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-secondary {
	background: var(--bg-lighter);
	border: 1px solid var(--border-color);
	color: var(--text-secondary);
}

.btn-secondary:hover {
	background: var(--border-color);
	color: var(--text-primary);
}

.btn-info {
	background: var(--info-color);
	border: none;
	color: var(--text-white);
}

.btn-info:hover {
	background: #2563eb;
	color: var(--text-white);
}

.alert {
	padding: 0.75rem 1rem;
	border-radius: 8px;
	font-size: 0.875rem;
}

.alert-info {
	background: var(--blue-ribbon-50);
	border: 1px solid var(--blue-ribbon-200);
	color: var(--blue-ribbon-900);
}

.text-danger {
	color: var(--ambulance-red) !important;
}

.text-muted {
	color: var(--text-light) !important;
	font-size: 0.8125rem;
}

/* Leaflet Map Styles */
.leaflet-container {
	font-family: "Inter", sans-serif;
}

.leaflet-popup-content-wrapper {
	border-radius: 8px;
}

/* Form Placeholder (if needed) */
.form-placeholder {
	text-align: center;
	padding: 4rem 2rem;
	color: var(--text-secondary);
}

.form-placeholder i {
	font-size: 4rem;
	color: var(--primary-color);
	margin-bottom: 1rem;
	opacity: 0.5;
}

.form-placeholder p {
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

/* Coming Soon */
.coming-soon {
	text-align: center;
	padding: 8rem 2rem;
	color: var(--text-secondary);
}

.coming-soon i {
	font-size: 5rem;
	color: var(--primary-color);
	margin-bottom: 2rem;
	opacity: 0.5;
}

.coming-soon h3 {
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: 1rem;
}

.coming-soon p {
	font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 768px) {
	.header-title {
		font-size: 1.25rem;
	}

	.header-logo i {
		font-size: 1.5rem;
	}

	.hero-title {
		font-size: 2.5rem;
	}

	.hero-description {
		font-size: 1rem;
	}

	.hero-features {
		flex-direction: column;
		gap: 1rem;
	}

	.section-title {
		font-size: 2rem;
	}

	.features-grid {
		grid-template-columns: 1fr;
	}

	.process-steps {
		grid-template-columns: 1fr;
	}

	.hero-section {
		padding: 3rem 0;
		min-height: 500px;
	}

	.hero-icon-wrapper {
		width: 100px;
		height: 100px;
	}

	.hero-icon {
		font-size: 3rem;
	}

	.btn-cta {
		padding: 0.875rem 2rem;
		font-size: 0.9375rem;
	}

	.btn-cta-large {
		padding: 1rem 2rem;
		font-size: 1rem;
	}

	.cta-title {
		font-size: 2rem;
	}

	.layanan-tabs-container {
		top: 65px;
	}

	.tab-btn {
		padding: 0.625rem 1.25rem;
		font-size: 0.8125rem;
	}

	.tab-btn span:not(.tab-badge) {
		display: none;
	}
}

@media (max-width: 480px) {
	.header-content {
		flex-direction: row;
		align-items: flex-start;
		gap: 1rem;
	}

	.header-nav {
		width: 100%;
		justify-content: flex-start;
	}

	.hero-title {
		font-size: 2rem;
	}

	.form-container {
		padding: 1.5rem;
	}

	.form-section-title {
		font-size: 1rem;
	}

	.form-footer {
		flex-direction: column;
	}

	.form-footer .btn {
		width: 100%;
		justify-content: center;
	}
}
