@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap");

:root {
	--green-900: #1a2e1a;
	--green-800: #1f3d1f;
	--green-700: #2d5a2d;
	--green-600: #3a7a3a;
	--green-500: #4a9e4a;
	--green-400: #6bbf6b;
	--green-100: #eaf5ea;
	--green-50: #f4fbf4;
	--purple: #7c3aed;
	--purple-light: #ede9fe;
	--text-dark: #111827;
	--text-mid: #374151;
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--surface: #ffffff;
	--red: #ef4444;
	--radius-lg: 20px;
	--radius-md: 12px;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07);
	--shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
}

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

body {
	font-family: "DM Sans", sans-serif;
	background: #f7fafc;
	min-height: 100vh;
}

.container {
	max-width: 1400px;
	background: var(--purple-light);
	padding: 80px 48px 32px;
}

.page-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	background-color: #0000ee;
	padding: 10px 40px;
	z-index: 1000;
}

.page-header::before,
.page-header::after {
	display: none;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	color: #fff;
	position: relative;
	z-index: 1;
	flex-wrap: wrap;
}

.header-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	min-width: 0;
}

.brand-name {
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--text-dark);
}

.header-text {
	flex: 1;
}

.header-text h1 {
	font-size: clamp(1.5rem, 2.5vw, 2.2rem);
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: -0.02em;
	margin-bottom: 5px;
}

.header-text p {
	color: var(--text-mid);
	font-size: 0.9rem;
}

.header-link {
	color: var(--text-muted);
	background-color: var(--purple-light);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: bold;
	padding: 10px 20px;
	border-radius: 20px;
	transition: all 0.2s ease;
}
.header-link:hover {
	color: var(--green-700);
	background: #fff;
}

.header-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.header-link,
.header-link {
	text-decoration: none;
}

.register-body {
	display: grid;
	grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
	gap: 32px;
	padding: 32px 48px 48px;
}

.intro-panel {
	background: #ffffff;
	border: 1px solid var(--border);
	border-radius: calc(var(--radius-lg) + 4px);
	padding: 32px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--green-700);
}

.intro-panel h2 {
	font-size: clamp(1.75rem, 2.5vw, 2.4rem);
	line-height: 1.05;
	color: var(--text-dark);
	margin: 0;
}

.feature-list {
	list-style: none;
	display: grid;
	gap: 12px;
	padding: 0;
	margin: 0;
}

.feature-list li {
	position: relative;
	padding-left: 28px;
	color: var(--text-mid);
	line-height: 1.55;
}

.feature-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--green-700);
	font-weight: 700;
}

/* ── Form content ── */
.form-content {
	padding: 0;
}

/* ── Sections ── */
.section {
	background: var(--green-50);
	border: 1.5px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 32px;
	margin-bottom: 24px;
	transition: box-shadow 0.2s;
}
.section:hover {
	box-shadow: 0 4px 20px rgba(42, 90, 42, 0.07);
}

.section-title-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}

.section-num {
	width: 36px;
	height: 36px;
	background: var(--purple);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	flex-shrink: 0;
}

.section-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--text-dark);
	letter-spacing: -0.01em;
}

/* ── Form grid ── */
.form-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.company-details-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

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

label {
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--text-mid);
	margin-bottom: 7px;
	letter-spacing: 0.01em;
}

label .required {
	color: var(--purple);
	margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
select {
	padding: 12px 14px;
	border: 1.5px solid var(--border);
	border-radius: var(--radius-md);
	font-size: 0.9rem;
	font-family: "DM Sans", sans-serif;
	background: var(--surface);
	color: var(--text-dark);
	transition:
		border-color 0.2s,
		box-shadow 0.2s,
		background 0.2s;
	width: 100%;
	height: 46px;
	box-sizing: border-box;
}

input::placeholder {
	color: var(--text-muted);
	font-size: 0.875rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
select:focus {
	outline: none;
	border-color: var(--purple);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

input[readonly] {
	background: #f3f4f6;
	cursor: not-allowed;
	color: var(--text-muted);
}

/* ── Select wrapper ── */
.select-wrapper {
	position: relative;
	width: 100%;
}

select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 36px;
	cursor: pointer;
	height: 46px;
	color: var(--text-dark);
}

select option[value=""] {
	color: var(--text-muted);
}

.select-wrapper::after {
	content: "▾";
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	font-size: 13px;
	color: var(--text-muted);
}

/* ── Searchable dropdown overlay ── */
.searchable {
	position: relative;
}
.dropdown {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 8px);
	background: var(--surface);
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	max-height: 240px;
	overflow: auto;
	z-index: 999;
	padding: 8px;
	list-style: none;
}
.dropdown[hidden] {
	display: none;
}
.dropdown-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	transition:
		background 0.12s,
		transform 0.06s;
	outline: none;
}
.dropdown-item + .dropdown-item {
	margin-top: 6px;
}
.dropdown-item:focus,
.dropdown-item:hover {
	background: linear-gradient(
		90deg,
		rgba(74, 158, 74, 0.06),
		rgba(124, 58, 237, 0.03)
	);
	transform: translateY(-1px);
}
.item-title {
	font-weight: 700;
	color: var(--text-dark);
	font-size: 0.95rem;
}
.item-meta {
	font-size: 0.78rem;
	color: var(--text-muted);
}

/* ── Password strength ── */
.strength-bar-wrap {
	margin-top: 8px;
	height: 10px;
	background: var(--border);
	border-radius: 999px;
	overflow: hidden;
}

.strength-bar-track {
	width: 100%;
	height: 100%;
	background: transparent;
}

.strength-bar-fill {
	height: 100%;
	width: 0%;
	background: #6bbf6b;
	border-radius: 999px;
	transition:
		width 0.35s ease,
		background-color 0.35s ease;
}

.strength-label {
	display: block;
	margin-top: 5px;
	font-size: 0.75rem;
	font-weight: 700;
	min-height: 1.1em;
}

.strength-weak {
	color: #c0392b;
}
.strength-fair {
	color: #d97706;
}
.strength-good {
	color: #65a30d;
}
.strength-strong {
	color: #16a34a;
}

/* ── Match label ── */
.match-label {
	display: block;
	margin-top: 5px;
	font-size: 0.75rem;
	font-weight: 700;
	min-height: 1.1em;
}

.match-ok {
	color: #16a34a;
}
.match-fail {
	color: var(--red);
}

 /* ── Submit ── */

.submit-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.terms-row {
  flex: 1;
}

.terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-mid);
}

.terms input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--green-700);
  cursor: pointer;
}

.terms a {
  color: var(--green-700);
  font-weight: 600;
  text-decoration: none;
}

.terms a:hover {
  text-decoration: underline;
}

.field-error {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #c0392b;
}

.submit-button {
  flex-shrink: 0;
  padding: 13px 36px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--green-700);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 3px 10px rgba(42, 90, 42, 0.2);
}

.submit-button:hover {
  background: var(--green-500);
  box-shadow: 0 4px 14px rgba(42, 90, 42, 0.25);
}

.submit-button:active {
  transform: translateY(1px);
}

/* ── Footer ── */
.footer {
	margin-top: 20px;
	padding: 32px 28px 24px;
	border-top: 1px solid #dbe4ea;
	background: linear-gradient(180deg, #f8fafc 0%, #eef6f7 100%);
	color: #475569;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.7),
		0 10px 28px rgba(15, 23, 42, 0.05);
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	align-items: start;
	margin-bottom: 16px;
}

.footer-links,
.footer-contact {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a,
.footer-contact a {
	color: #2563eb;
}

.footer-brand {
	max-width: 420px;
}

.footer-logo {
	margin: 0 0 12px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #0f172a;
}

.footer-text {
	margin: 0;
	line-height: 1.75;
	color: #475569;
}

.footer-heading {
	margin: 0 0 12px;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
}

.footer a {
	color: #2563eb;
	text-decoration: none;
	transition: color 0.2s ease;
}

.footer a:hover {
	color: #1d4ed8;
	text-decoration: underline;
}

.footer-bottom {
	border-top: 1px solid rgba(15, 23, 42, 0.08);
	padding-top: 16px;
	font-size: 0.85rem;
	text-align: center;
}

.page-footer,
.reg-footer {
	text-align: center;
	padding: 18px 24px 24px;
	font-size: 0.88rem;
	color: var(--text-muted);
	border-top: 1px solid var(--border);
}

.page-footer a,
.reg-footer a {
	color: var(--green-700);
	text-decoration: none;
}

.page-footer a:hover,
.reg-footer a:hover {
	text-decoration: underline;
}

/* ── Toast ── */
.toast {
	position: fixed;
	top: 28px;
	right: -420px;
	width: 350px;
	background: var(--surface);
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
	border-left: 4px solid var(--green-600);
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 18px 18px 26px;
	z-index: 9999;
	transition: right 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	overflow: hidden;
	font-family: "DM Sans", sans-serif;
}

.toast.toast-show {
	right: 28px;
}

.toast-icon {
	width: 36px;
	height: 36px;
	background: linear-gradient(135deg, var(--green-700), var(--green-500));
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 16px;
	font-weight: 700;
	flex-shrink: 0;
}

.toast-body {
	flex: 1;
	min-width: 0;
}

.toast-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--text-dark);
	margin-bottom: 4px;
}

.toast-msg {
	font-size: 12.5px;
	color: var(--text-muted);
	line-height: 1.5;
}

.toast-progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 4px;
	width: 100%;
	background: linear-gradient(90deg, var(--green-700), var(--green-400));
	transform-origin: left;
	animation: none;
}

.toast-progress.running {
	animation: drainProgress 2.8s linear forwards;
}

@keyframes drainProgress {
	from {
		transform: scaleX(1);
	}
	to {
		transform: scaleX(0);
	}
}

/* ── Responsive ── */

@media (max-width: 1024px) {
	.container {
		padding: 0px 0px 20px 0px;
	}

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

	.register-body {
		display: flex;
		flex-direction: column;
		gap: 0px;
		padding: 60px 0px 0px 0px;
	}

	.intro-panel {
		border: 1px solid var(--border);
		border-radius: 0px;
	}

	.page-header {
		padding: 10px;
	}

	.header-link {
		font-size: 0.75rem;
		font-weight: 700;
		padding: 10px 15px;
		border-radius: 10px;
		transition: all 0.2s ease;
	}

	.footer {
		padding: 16px 24px 22px;
	}

	.form-content {
		padding: 24px 10px;
	}

	.section {
		padding: 22px;
	}

	.header-inner {
		gap: 16px;
	}

	.submit-section {
		justify-content: stretch;
	}

	.submit-row {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.terms-row {
		margin-right: 0;
		justify-content: flex-start;
	}

	.submit-button {
		width: 100%;
		padding: 13px 36px;
	}

	.footer {
		margin-top: 20px;
	}

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