﻿* {
	margin: 0;
	padding: 0;
	box-sizing: border-box
}

body {
	font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
	background: #f5f7fa;
	min-height: 100vh;
	overflow-x: hidden
}

/* ---------- WELCOME SCREEN ---------- */
.welcome-screen {
	min-height: 100vh;
	background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
	color: #fff;
}

	.welcome-screen::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(135deg,rgba(227,242,253,.7),rgba(243,229,245,.7));
		z-index: 0;
	}

.welcome-content {
	position: relative;
	z-index: 1;
	width: 100%
}

.header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding-top: 15px;
}

.logo-section {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.main-logo {
	font-size: clamp(28px,5vw,36px);
	font-weight: 800;
	line-height: 1.1;
	font-family: 'Noto Sans Devanagari',sans-serif;
}

.by-saavni {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

.saavni-logo {
	width: 32px;
	height: 32px;
	background: #000;
	border-radius: 6px;
}

.website-url {
	font-size: 12px;
	font-weight: 500;
}

.close-btn {
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,.7);
	border: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: #666;
	cursor: pointer;
}

.main-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: flex-end;
	padding: 20px 15px;
}

.form-card {
	background: rgba(255,255,255,.95);
	backdrop-filter: blur(20px);
	border-radius: 20px;
	padding: 30px 25px;
	box-shadow: 0 20px 40px rgba(0,0,0,.1);
	border: 1px solid rgba(255,255,255,.2);
	max-width: 400px;
	width: 100%;
	text-align: center;
}

.form-title {
	font-size: clamp(20px,5vw,28px);
	font-weight: 700;
	color: #00695c;
	margin-bottom: 8px
}

.form-subtitle, .date, .slogan {
	color: #00695c
}

.form-subtitle {
	font-size: clamp(14px,4vw,16px);
	margin-bottom: 25px
}

.date {
	font-size: 14px;
	font-weight: 500;
	margin-bottom: 15px
}

.slogan {
	font-size: clamp(16px,4.5vw,20px);
	font-weight: 600;
	margin-bottom: 35px
}

.start-btn {
	background: linear-gradient(135deg,#26a69a,#00796b);
	color: #fff;
	border: none;
	padding: 16px 32px;
	border-radius: 12px;
	font-size: clamp(16px,4.5vw,18px);
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: all .3s;
	box-shadow: 0 8px 25px rgba(38,166,154,.3);
}

	.start-btn:hover {
		transform: translateY(-2px);
		box-shadow: 0 12px 35px rgba(38,166,154,.4)
	}

	.start-btn:disabled {
		opacity: 0.6;
		cursor: not-allowed;
	}

/* ---------- MOBILE NUMBER SCREEN ---------- */
.mobile-screen {
	min-height: 100vh;
	background: linear-gradient(135deg,#e3f2fd,#f3e5f5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.mobile-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px 30px;
	box-shadow: 0 20px 60px rgba(0,0,0,.1);
	max-width: 420px;
	width: 100%;
	text-align: center;
}

.mobile-title {
	font-size: clamp(22px,6vw,28px);
	font-weight: 700;
	color: #2e7d32;
	margin-bottom: 10px
}

.mobile-subtitle {
	color: #4caf50;
	font-size: 16px;
	margin-bottom: 35px
}

.mobile-input-group {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	align-items: stretch;
}

.country-code {
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	color: #333;
	min-width: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mobile-input {
	flex: 1;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 16px;
	transition: .3s;
}

	.mobile-input:focus {
		border-color: #26a69a;
		outline: none;
		box-shadow: 0 0 0 3px rgba(38,166,154,.1);
	}

.error-message {
	color: #f44336;
	font-size: 14px;
	margin-top: -15px;
	margin-bottom: 15px;
	text-align: left;
}

.send-otp-btn {
	background: linear-gradient(135deg,#26a69a,#00796b);
	color: #fff;
	border: none;
	padding: 14px 30px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: .3s;
}

	.send-otp-btn:disabled {
		opacity: .6;
		cursor: not-allowed
	}

	.send-otp-btn:hover:not(:disabled) {
		transform: translateY(-2px);
		box-shadow: 0 10px 30px rgba(38,166,154,.3)
	}

/* ---------- OTP SCREEN ---------- */
.otp-screen {
	min-height: 100vh;
	background: linear-gradient(135deg,#e8f5e8,#f1f8e9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.otp-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px 30px;
	box-shadow: 0 20px 60px rgba(0,0,0,.1);
	max-width: 420px;
	width: 100%;
	text-align: center;
}

.otp-title {
	font-size: clamp(22px,6vw,28px);
	font-weight: 700;
	color: #2e7d32;
	margin-bottom: 10px
}

.otp-subtitle {
	color: #4caf50;
	font-size: 16px;
	margin-bottom: 10px
}

.mobile-display {
	font-weight: 600;
	color: #2e7d32;
	margin-bottom: 30px;
}

.otp-inputs {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 30px
}

.otp-input {
	width: 55px;
	height: 55px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 24px;
	font-weight: 600;
	text-align: center;
	transition: .3s;
}

	.otp-input:focus {
		border-color: #26a69a;
		outline: none;
		box-shadow: 0 0 0 3px rgba(38,166,154,.1);
		transform: scale(1.05)
	}

.resend-section {
	margin-bottom: 20px;
	color: #666;
	font-size: 14px;
}

.resend-btn {
	background: none;
	border: none;
	color: #26a69a;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
	padding: 5px;
}

	.resend-btn:disabled {
		opacity: 0.5;
		cursor: not-allowed;
	}

.verify-btn {
	background: linear-gradient(135deg,#26a69a,#00796b);
	color: #fff;
	border: none;
	padding: 14px 30px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: .3s;
}

	.verify-btn:disabled {
		opacity: .6;
		cursor: not-allowed
	}

	.verify-btn:hover:not(:disabled) {
		transform: translateY(-2px);
		box-shadow: 0 10px 30px rgba(38,166,154,.3)
	}

/* ---------- FORM SCREENS ---------- */
.form-screen {
	min-height: 100vh;
	background: linear-gradient(135deg,#fff3e0,#fce4ec);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.form-screen-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px 30px;
	box-shadow: 0 20px 60px rgba(0,0,0,.1);
	max-width: 900px;
	width: 100%;
	margin: 0 auto;
}

.progress-bar {
	display: flex;
	justify-content: space-between;
	margin-bottom: 30px;
	position: relative;
}

	.progress-bar::before {
		content: '';
		position: absolute;
		top: 15px;
		left: 0;
		right: 0;
		height: 2px;
		background: #e0e0e0;
		z-index: 0;
	}

.progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 1;
	flex: 1;
}

.progress-circle {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #e0e0e0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 14px;
	color: #999;
	margin-bottom: 8px;
	transition: .3s;
}

.progress-step.active .progress-circle {
	background: #26a69a;
	color: #fff;
}

.progress-step.completed .progress-circle {
	background: #4caf50;
	color: #fff;
}

.progress-label {
	font-size: 12px;
	color: #999;
	text-align: center;
}

.progress-step.active .progress-label {
	color: #26a69a;
	font-weight: 600;
}

.section-title {
	font-size: 24px;
	font-weight: 700;
	color: #2e7d32;
	text-align: center;
	margin-bottom: 30px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 25px;
	margin-bottom: 25px;
}

@media (min-width: 768px) {
	.form-row {
		grid-template-columns: 1fr 1fr;
	}

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

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

.form-label {
	display: block;
	font-weight: 600;
	color: #2e7d32;
	margin-bottom: 8px;
	font-size: 15px
}

.required {
	color: #f44336;
}

.form-input, .form-select, .form-textarea {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	font-size: 16px;
	transition: .3s;
	font-family: inherit;
}

.form-textarea {
	resize: vertical;
	min-height: 100px;
}

	.form-input:focus, .form-select:focus, .form-textarea:focus {
		border-color: #26a69a;
		outline: none;
		box-shadow: 0 0 0 3px rgba(38,166,154,.1)
	}

/* Terms and Conditions */
.terms-box {
	background: #f5f5f5;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 25px;
	max-height: 300px;
	overflow-y: auto;
}

	.terms-box h3 {
		color: #2e7d32;
		margin-bottom: 15px;
	}

	.terms-box p, .terms-box li {
		color: #666;
		line-height: 1.6;
		margin-bottom: 10px;
	}

	.terms-box ul {
		padding-left: 20px;
	}

.checkbox-group {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 25px;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 12px;
}

	.checkbox-group input[type="checkbox"] {
		width: 20px;
		height: 20px;
		cursor: pointer;
		margin-top: 2px;
		flex-shrink: 0;
	}

	.checkbox-group label {
		font-size: 15px;
		color: #333;
		cursor: pointer;
	}

.radio-group {
	display: flex;
	gap: 30px;
	margin-top: 15px;
}

.radio-option {
	display: flex;
	align-items: center;
	gap: 10px;
}

	.radio-option input[type="radio"] {
		width: 20px;
		height: 20px;
		cursor: pointer;
	}

	.radio-option label {
		font-size: 16px;
		color: #333;
		cursor: pointer;
	}

/* Buttons */
.form-actions {
	display: flex;
	gap: 15px;
	margin-top: 30px;
}

.btn {
	flex: 1;
	padding: 16px;
	border: none;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: .3s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.btn-back {
	background: #f5f5f5;
	color: #666;
}

	.btn-back:hover {
		background: #e0e0e0;
	}

.btn-next, .btn-submit {
	background: linear-gradient(135deg,#26a69a,#00796b);
	color: #fff;
}

	.btn-next:hover, .btn-submit:hover {
		transform: translateY(-2px);
		box-shadow: 0 10px 30px rgba(38,166,154,.3);
	}

.btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* ---------- SUCCESS SCREEN ---------- */
.success-screen {
	min-height: 100vh;
	background: linear-gradient(135deg,#e8f5e8,#f1f8e9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.success-message {
	text-align: center;
	padding: 40px;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0,0,0,.1);
	max-width: 420px;
	width: 100%;
}

.success-icon {
	width: 80px;
	height: 80px;
	background: #4caf50;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
	font-size: 40px;
	color: #fff;
}

.success-title {
	font-size: 24px;
	font-weight: 700;
	color: #2e7d32;
	margin-bottom: 10px
}

.success-text {
	color: #4caf50;
	font-size: 16px;
	line-height: 1.5
}

/* ---------- LOADING SPINNER ---------- */
.spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,.3);
	border-radius: 50%;
	border-top-color: #fff;
	animation: spin 0.8s linear infinite;
}

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

/* ---------- GENERAL ---------- */
.screen {
	display: none
}

	.screen.active {
		display: flex
	}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px)
	}

	to {
		opacity: 1;
		transform: translateY(0)
	}
}

.screen.active > * {
	animation: fadeInUp .6s ease forwards
}

@media(max-width:768px) {
	.progress-bar {
		overflow-x: auto;
		padding-bottom: 10px;
	}

	.progress-label {
		font-size: 10px;
	}

	.progress-circle {
		width: 25px;
		height: 25px;
		font-size: 12px;
	}
}

@media(max-width:480px) {
	.welcome-screen {
		padding: 15px
	}

	.form-card, .mobile-card, .otp-card, .form-screen-card {
		padding: 30px 20px
	}

	.otp-input {
		width: 48px;
		height: 48px;
		font-size: 20px;
	}

	.form-actions {
		flex-direction: column;
	}
}

