/* CV Builder app styles (on top of Bootstrap 5). */

:root {
	--cvb-primary: #1a91f0;
	--cvb-ink: #1e2532;
	--cvb-muted: #828ba2;
	--cvb-bg: #eff2f9;
	--cvb-paper-shadow: 0 10px 30px rgba(30, 37, 50, .12);
	--bs-primary: #1a91f0;
	--bs-primary-rgb: 26, 145, 240;
	--bs-link-color: #1a91f0;
	--bs-link-color-rgb: 26, 145, 240;
	--bs-link-hover-color: #0f73c4;
	--bs-body-color: #1e2532;
	--bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--cvb-bg);
}

.cvb-main {
	flex: 1 0 auto;
}

.btn-primary {
	--bs-btn-bg: #1a91f0;
	--bs-btn-border-color: #1a91f0;
	--bs-btn-hover-bg: #0f7fd8;
	--bs-btn-hover-border-color: #0f7fd8;
	--bs-btn-active-bg: #0c6fbe;
	--bs-btn-active-border-color: #0c6fbe;
	--bs-btn-disabled-bg: #1a91f0;
	--bs-btn-disabled-border-color: #1a91f0;
}

.btn-outline-primary {
	--bs-btn-color: #1a91f0;
	--bs-btn-border-color: #1a91f0;
	--bs-btn-hover-bg: #1a91f0;
	--bs-btn-hover-border-color: #1a91f0;
}

.text-primary {
	color: #1a91f0 !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
	border-color: #8cc8f8;
	box-shadow: 0 0 0 .2rem rgba(26, 145, 240, .18);
}

.form-check-input:checked {
	background-color: #1a91f0;
	border-color: #1a91f0;
}

.min-w-0 {
	min-width: 0;
}

/* Navbar */
.cvb-navbar {
	position: relative;
	z-index: 1030;
}

.cvb-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 9px;
	background: var(--cvb-primary);
	color: #fff;
	font-size: 1.1rem;
}

/* Landing */
.cvb-hero {
	background: linear-gradient(180deg, #fff 0%, var(--cvb-bg) 100%);
}

.cvb-hero-preview {
	max-width: 520px;
	margin: 0 auto;
	padding: 18px;
	border-radius: 18px;
	background: #dfe6f3;
	transform: rotate(1.5deg);
}

.cvb-hero-preview .cvb-scale {
	border-radius: 6px;
	box-shadow: var(--cvb-paper-shadow);
	max-height: 560px;
	overflow: hidden !important;
}

.cvb-step-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: rgba(26, 145, 240, .1);
	color: var(--cvb-primary);
	font-size: 1.4rem;
}

/* Auth */
.cvb-auth .card {
	max-width: 520px;
	border-radius: 16px;
}

/* Scaled A4 sheet */
.cvb-scale {
	position: relative;
	overflow: hidden;
	background: #fff;
}

.cvb-scale > .cv {
	position: absolute;
	top: 0;
	left: 0;
}

/* Dashboard */
.cvb-resume-card {
	border-radius: 14px;
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}

.cvb-resume-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 .75rem 1.5rem rgba(30, 37, 50, .1) !important;
}

.cvb-thumb {
	display: block;
	padding: 16px 16px 0;
	background: #e7ecf5;
}

.cvb-thumb .cvb-scale {
	max-height: 280px;
	border-radius: 4px 4px 0 0;
	box-shadow: 0 2px 10px rgba(30, 37, 50, .08);
}

.cvb-new-card {
	min-height: 360px;
	border: 2px dashed #c8d1e1;
	border-radius: 14px;
	background: transparent;
	color: var(--cvb-ink);
	transition: border-color .15s ease, background .15s ease;
}

.cvb-new-card:hover {
	border-color: var(--cvb-primary);
	background: #fff;
}

.cvb-new-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(26, 145, 240, .1);
	color: var(--cvb-primary);
	font-size: 1.5rem;
}

/* Preview page */
.cvb-preview-bar {
	top: 0;
	z-index: 1020;
}

.cvb-preview-stage {
	background: var(--cvb-bg);
}

.cvb-paper-wrap {
	width: 100%;
	max-width: 794px;
	padding: 0 12px;
}

.cvb-paper {
	box-shadow: var(--cvb-paper-shadow);
	border-radius: 3px;
}

/* Editor layout */
.cvb-page-edit {
	height: 100vh;
	overflow: hidden;
}

.cvb-page-edit .cvb-main {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.cvb-editor-bar {
	flex: 0 0 auto;
}

.cvb-title-input {
	max-width: 280px;
	border-color: transparent;
	font-size: 1rem;
}

.cvb-title-input:hover {
	border-color: #dee2e6;
}

.cvb-editor {
	flex: 1 1 auto;
	display: flex;
	min-height: 0;
}

.cvb-editor-form {
	flex: 1 1 50%;
	overflow-y: auto;
	background: #fff;
}

.cvb-editor-form-inner {
	max-width: 760px;
	margin: 0 auto;
	padding: 28px 32px 80px;
}

.cvb-editor-preview {
	flex: 1 1 50%;
	overflow-y: auto;
	background: #5d6779;
	padding: 32px 24px;
}

.cvb-editor-preview .cvb-paper-wrap {
	margin: 0 auto;
}

.cvb-preview-close {
	position: sticky;
	top: 0;
	z-index: 2;
	margin-bottom: 12px;
}

@media (max-width: 991.98px) {
	.cvb-editor-preview {
		display: none;
	}

	.cvb-editor-preview.is-visible {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1050;
		padding: 16px 8px;
	}

	.cvb-editor-form-inner {
		padding: 20px 16px 80px;
	}
}

/* Editor cards */
.cvb-card {
	padding: 22px 0 26px;
	border-bottom: 1px solid #edf0f6;
}

.cvb-card-head {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.cvb-card-title {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--cvb-ink);
}

.cvb-title-edit {
	flex: 0 1 auto;
	min-width: 60px;
	max-width: 100%;
	field-sizing: content;
	border-bottom: 1px dashed transparent;
	outline: 0;
}

.cvb-title-edit:hover,
.cvb-title-edit:focus {
	border-bottom-color: #b8c2d6;
}

.cvb-title-pencil {
	color: #b8c2d6;
	font-size: .85rem;
}

.cvb-hint {
	margin: 0 0 14px;
	font-size: .875rem;
	color: var(--cvb-muted);
}

.cvb-card .form-label {
	margin-bottom: .3rem;
	font-size: .8rem;
	color: var(--cvb-muted);
}

.cvb-card .form-control,
.cvb-card .form-select {
	background-color: #eff2f9;
	border-color: #eff2f9;
}

.cvb-card .form-control:focus,
.cvb-card .form-select:focus {
	background-color: #fff;
}

.cvb-handle {
	cursor: grab;
	color: #b8c2d6;
	padding: 0 2px;
	line-height: 1;
}

.cvb-section-handle {
	position: absolute;
	left: -26px;
	opacity: 0;
	transition: opacity .15s ease;
}

.cvb-card:hover .cvb-section-handle {
	opacity: 1;
}

.sortable-ghost {
	opacity: .35;
}

/* Repeatable items */
.cvb-item {
	margin-bottom: 10px;
	border: 1px solid #e3e8f1;
	border-radius: 8px;
	background: #fff;
}

.cvb-item-head {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 10px 8px 10px 10px;
}

.cvb-item-toggle {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
}

.cvb-item-title {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	font-size: .95rem;
}

.cvb-item-toggle:hover .cvb-item-title {
	color: var(--cvb-primary);
}

.cvb-item-dates:empty {
	display: none;
}

.cvb-item-dates {
	font-size: .8rem;
	color: var(--cvb-muted);
}

.cvb-chevron {
	cursor: pointer;
	color: var(--cvb-muted);
	transition: transform .2s ease;
}

.cvb-item.is-open .cvb-chevron {
	transform: rotate(180deg);
}

.cvb-item-remove {
	opacity: .55;
}

.cvb-item:hover .cvb-item-remove {
	opacity: 1;
}

.cvb-item-body {
	display: none;
	padding: 4px 16px 18px;
}

.cvb-item.is-open .cvb-item-body {
	display: block;
}

.cvb-add {
	font-weight: 600;
	text-decoration: none;
}

.cvb-custom-block + .cvb-custom-block {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px dashed #e3e8f1;
}

/* Rich text */
.cvb-rich-field {
	border-radius: 6px;
	background: #eff2f9;
}

.cvb-rich-toolbar {
	padding: 4px;
}

.cvb-rich-toolbar .btn {
	background: transparent;
	border: 0;
}

.cvb-rich-toolbar .btn:hover {
	background: #dfe5f0;
}

.cvb-rich {
	min-height: 120px;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	line-height: 1.5;
}

.cvb-rich:focus {
	outline: 0;
}

.cvb-rich p {
	margin: 0 0 .5rem;
}

.cvb-rich ul,
.cvb-rich ol {
	margin-bottom: .5rem;
	padding-left: 1.4rem;
}

/* Level picker */
.cvb-level {
	display: flex;
	gap: 3px;
	height: 38px;
	padding: 4px;
	border-radius: 6px;
	background: #eff2f9;
}

.cvb-level-step {
	flex: 1;
	border: 0;
	border-radius: 4px;
	background: #dfe5f0;
	transition: background .15s ease;
}

.cvb-level-step:hover {
	background: #b9dcfb;
}

.cvb-level-step.is-on {
	background: var(--cvb-primary);
}

/* Avatar */
.cvb-avatar-field {
	display: flex;
	align-items: center;
	gap: 14px;
}

.cvb-avatar-thumb {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	overflow: hidden;
	border-radius: 8px;
	background: #eff2f9;
	color: #b8c2d6;
	font-size: 1.8rem;
}

.cvb-avatar-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Add section + design */
.cvb-add-section {
	padding: 10px 12px;
	border: 1px solid #e3e8f1;
	border-radius: 8px;
	font-weight: 500;
}

.cvb-add-section:hover {
	border-color: var(--cvb-primary);
	color: var(--cvb-primary);
}

.cvb-swatch {
	width: 30px;
	height: 30px;
	border: 3px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px #d5dbe7;
}

.cvb-swatch.is-active {
	box-shadow: 0 0 0 2px var(--cvb-ink);
}

/* Print: only the CV */
@media print {
	@page {
		size: A4;
		margin: 0;
	}

	body {
		background: #fff;
	}

	.cvb-navbar,
	.cvb-footer,
	.cvb-preview-bar {
		display: none !important;
	}

	.cvb-preview-stage {
		padding: 0 !important;
		background: #fff;
	}

	.cvb-paper-wrap {
		max-width: none;
		padding: 0;
	}

	.cvb-paper {
		height: auto !important;
		overflow: visible;
		box-shadow: none;
	}

	.cvb-paper > .cv {
		position: static;
		transform: none !important;
		min-height: 0;
	}
}

/* Template picker (schematic thumbnails) */
.cvb-templates {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}

@media (min-width: 576px) {
	.cvb-templates {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

.cvb-template {
	padding: 6px 6px 4px;
	border: 2px solid #e3e8f1;
	border-radius: 8px;
	background: #fff;
	text-align: center;
}

.cvb-template:hover {
	border-color: #b9dcfb;
}

.cvb-template.is-active {
	border-color: var(--cvb-primary);
	box-shadow: 0 0 0 3px rgba(26, 145, 240, .15);
}

.cvb-template-name {
	display: block;
	margin-top: 4px;
	font-size: .75rem;
	font-weight: 600;
}

.cvb-template-thumb {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.35;
	overflow: hidden;
	border-radius: 3px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e9edf4;
}

.cvb-template-thumb > span {
	position: absolute;
	display: block;
}

.cvb-template-thumb i {
	display: block;
	height: 3px;
	margin-bottom: 4px;
	border-radius: 2px;
	background: #d7dde8;
}

.cvb-template-thumb i.s {
	width: 65%;
}

.cvb-template-thumb b {
	display: block;
	height: 5px;
	border-radius: 2px;
	background: #1e2532;
}

.t-title { top: 9%; left: 10%; width: 50%; }
.t-center { top: 9%; left: 25%; width: 50%; }
.t-main { top: 22%; left: 10%; width: 52%; }
.t-left-main { width: 52%; }
.t-full { left: 10%; width: 80%; }
.t-aside { padding-left: 22%; }
.t-rightside { top: 22%; right: 8%; width: 24%; }
.t-rightside i, .t-left i { height: 2px; }
.t-band { top: 0; bottom: 0; left: 0; width: 30%; }
.t-modern .t-main { top: 10%; left: 38%; width: 52%; }
.t-head { top: 0; left: 0; right: 0; height: 18%; }
.t-left { top: 26%; left: 8%; width: 24%; }
.t-tint { bottom: 8%; border-radius: 2px; background: #eef2f6; }
.t-right { top: 26%; left: 40%; width: 52%; }
.t-rule { top: 18%; left: 10%; right: 10%; height: 1px; }
.t-rule.thick { height: 3px; }
.t-professional .t-right, .t-bold .t-right { top: 28%; }

/* Registration honeypot */
.cvb-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Pricing */
.cvb-plan {
	border-radius: 16px;
}

.cvb-plan--popular {
	box-shadow: 0 0 0 2px var(--cvb-primary), 0 .5rem 1.5rem rgba(26, 145, 240, .15) !important;
}

/* ---------- Footer ---------- */
.cvb-footer {
	background: #1e2532;
	color: #a9b1c4;
}
.cvb-footer a,
.cvb-footer .btn-link {
	color: #d6dbe6;
	text-decoration: none;
}
.cvb-footer a:hover,
.cvb-footer .btn-link:hover {
	color: #fff;
	text-decoration: underline;
}
.cvb-footer .btn-link {
	font-size: inherit;
	line-height: inherit;
	border: 0;
}
.cvb-footer__title {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 1rem;
}
.cvb-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .08);
	color: #8a93a8;
}
.cvb-anpc {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .35rem .75rem;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: .5rem;
	font-size: .75rem;
}
.cvb-anpc strong {
	background: #fff;
	color: #1e2532;
	padding: 0 .35rem;
	border-radius: .25rem;
}

/* ---------- Legal pages ---------- */
.cvb-legal__hero {
	background: #fff;
	border-bottom: 1px solid #e3e7ef;
	padding: 3rem 0 2.25rem;
}
.cvb-legal__eyebrow {
	color: var(--cvb-primary);
	font-weight: 700;
	font-size: .8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin-bottom: .5rem;
}
.cvb-legal__toc {
	position: sticky;
	top: 1.5rem;
	font-size: .875rem;
}
.cvb-legal__toc-title {
	font-weight: 700;
	font-size: .75rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--cvb-muted);
}
.cvb-legal__toc li a {
	display: block;
	padding: .3rem 0 .3rem .75rem;
	border-left: 2px solid #dde2ec;
	color: #4b5466;
	text-decoration: none;
}
.cvb-legal__toc li a:hover {
	border-left-color: var(--cvb-primary);
	color: var(--cvb-ink);
}
.cvb-legal__body {
	background: #fff;
	border-radius: .75rem;
	padding: 2rem;
	box-shadow: 0 1px 3px rgba(30, 37, 50, .06);
	line-height: 1.7;
}
@media (min-width: 768px) {
	.cvb-legal__body {
		padding: 2.75rem 3rem;
	}
}
.cvb-legal__body h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 2.25rem 0 .75rem;
	scroll-margin-top: 1.5rem;
}
.cvb-legal__body h2:first-of-type {
	margin-top: 1.5rem;
}
.cvb-legal__body h3 {
	font-size: 1.05rem;
	font-weight: 700;
	margin-top: 1.5rem;
}
.cvb-legal-lead {
	font-size: 1.1rem;
	color: #3b4456;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #eef1f6;
}
.cvb-legal__body table {
	font-size: .9rem;
	margin: 1rem 0 1.5rem;
}
.cvb-legal__body th {
	background: #f5f7fb;
	font-weight: 600;
}
.cvb-legal__body .table {
	display: block;
	overflow-x: auto;
}
.cvb-legal-form {
	border: 1px dashed #c7cedb;
	border-radius: .5rem;
	padding: 1.25rem 1.5rem;
	background: #fafbfd;
}
.cvb-legal__help {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.5rem;
	padding: 1.25rem 1.5rem;
	background: #e8f3fe;
	border-radius: .75rem;
}
.cvb-legal__more {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.5rem;
	margin-top: 1.5rem;
	font-size: .9rem;
}
.cvb-legal__more a {
	text-decoration: none;
}
@media print {
	.cvb-navbar,
	.cvb-footer,
	.cvb-cookie,
	.cvb-terms-bar {
		display: none !important;
	}
	.cvb-legal__body {
		box-shadow: none;
		padding: 0;
	}
}

/* ---------- Contact ---------- */
.cvb-contact-aside {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}
.cvb-contact-link {
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	background: #fff;
	border-radius: .75rem;
	box-shadow: 0 1px 3px rgba(30, 37, 50, .06);
	color: var(--cvb-ink);
	text-decoration: none;
	transition: box-shadow .15s;
}
.cvb-contact-link:hover {
	box-shadow: 0 6px 18px rgba(30, 37, 50, .1);
	color: var(--cvb-ink);
}
.cvb-contact-link i {
	font-size: 1.35rem;
	color: var(--cvb-primary);
}
.cvb-contact-link small {
	color: var(--cvb-muted);
}
.cvb-contact-company {
	margin-top: .75rem;
	padding: 1.25rem;
	border: 1px solid #dde2ec;
	border-radius: .75rem;
}
.cvb-success-icon {
	display: inline-flex;
	width: 64px;
	height: 64px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #e3f6ec;
	color: #18a058;
	font-size: 2rem;
}

/* ---------- Pricing facts ---------- */
.cvb-pricing-facts > div {
	display: flex;
	gap: .6rem;
	font-size: .875rem;
	color: #4b5466;
}
.cvb-pricing-facts i {
	color: var(--cvb-primary);
}

/* ---------- Terms update bar ---------- */
.cvb-terms-bar {
	background: #e8f3fe;
}

/* ---------- Cookie banner ---------- */
.cvb-cookie {
	position: fixed;
	z-index: 1080;
	left: 16px;
	right: 16px;
	bottom: 16px;
	max-width: 460px;
	padding: 1.25rem 1.25rem 1rem;
	background: #fff;
	border-radius: .875rem;
	border: 1px solid #e3e7ef;
}
.cvb-cookie[hidden] {
	display: none !important;
}
.cvb-cookie-cat {
	padding: .85rem 0;
	border-top: 1px solid #eef1f6;
}

.cvb-logo-img {
	width: 34px;
	height: 34px;
	object-fit: contain;
	flex-shrink: 0;
}
