:root {
	--primary: #1B2A6B;
	--primary-light: #2E45A8;
	--accent: #E31837;
	--surface: #F8F9FC;
	--border: #DEE2E6;
	--text-muted: #6B7280;
	--radius: 10px;
	--shadow: 0 2px 16px rgba(27, 42, 107, .08);
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	background: var(--surface);
	color: #1A1A2E;
	min-height: 100vh;
}

 /* Topbar  */
.topbar {
	background: var(--primary);
	padding: .75rem 0;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

.topbar .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.topbar-brand {
	display: flex;
	align-items: center;
	gap: .6rem;
	text-decoration: none;
}

.topbar-brand .brand-icon {
	width: 38px;
	height: 38px;
	background: var(--accent);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: -.5px;
	flex-shrink: 0;
}

.topbar-brand .brand-text {
	line-height: 1.1;
}

.topbar-brand .brand-text span:first-child {
	display: block;
	color: #fff;
	font-weight: 700;
	font-size: .95rem;
	letter-spacing: .5px;
}

.topbar-brand .brand-text span:last-child {
	display: block;
	color: rgba(255, 255, 255, .55);
	font-size: .72rem;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}

/*  Topbar nav  */
.topbar-nav {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: .25rem;
}
.topbar-nav-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 500;
  padding: .35rem .75rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.topbar-nav-link:hover,
.topbar-nav-link:focus {
  color: #fff;
  background: rgba(255,255,255,.12);
  outline: none;
}
.topbar-nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.15);
}

/*  Language switcher  */
.lang-switcher {
  margin-left: 0;
  flex-shrink: 0;
}

.lang-switcher .lang-btn {
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .22);
	color: #fff;
	border-radius: 20px;
	padding: .32rem .9rem;
	font-size: .82rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: .45rem;
	cursor: pointer;
	transition: background .15s;
	white-space: nowrap;
}

.lang-switcher .lang-btn:hover,
.lang-switcher .lang-btn:focus {
	background: rgba(255, 255, 255, .22);
	outline: none;
}

.lang-switcher .lang-btn .bi-chevron-down {
	font-size: .65rem;
	opacity: .7;
	transition: transform .2s;
}

.lang-switcher .lang-btn[aria-expanded="true"] .bi-chevron-down {
	transform: rotate(180deg);
}

.lang-switcher .dropdown-menu {
	min-width: 168px;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
	border: 1px solid rgba(0, 0, 0, .08);
	padding: .35rem;
	margin-top: .4rem !important;
}

.lang-opt {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .5rem .75rem;
	border-radius: 7px;
	font-size: .85rem;
	font-weight: 500;
	color: #374151;
	cursor: pointer;
	background: none;
	border: none;
	width: 100%;
	text-align: left;
	transition: background .12s;
}

.lang-opt:hover {
	background: #F3F4F6;
}

.lang-opt.active {
	background: #EEF1FF;
	color: var(--primary);
}

.lang-opt.active::after {
	content: '\F26E';
	font-family: 'bootstrap-icons';
	margin-left: auto;
	font-size: .78rem;
	color: var(--primary-light);
}

.lang-flag {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
}

 /* Hero strip */
.hero-strip {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
	padding: 2.5rem 0 2rem;
	color: #fff;
}

.hero-strip h1 {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 700;
	margin-bottom: .4rem;
}

.hero-strip p {
	color: rgba(255, 255, 255, .7);
	font-size: .9rem;
	margin: 0;
}

.hero-badge {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .2);
	color: #fff;
	border-radius: 20px;
	padding: .3rem .85rem;
	font-size: .78rem;
	font-weight: 500;
	letter-spacing: .4px;
}

 /* Notice box */
.notice-box {
	background: #FFFBEB;
	border: 1px solid #FCD34D;
	border-left: 4px solid #F59E0B;
	border-radius: var(--radius);
	padding: 1rem 1.25rem;
	font-size: .83rem;
	line-height: 1.6;
	color: #78350F;
}

.notice-box strong {
	color: #92400E;
}

 /* Card  */
.form-card {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	border: 1px solid var(--border);
	overflow: hidden;
}

.form-card-header {
	background: var(--primary);
	padding: .9rem 1.5rem;
	display: flex;
	align-items: center;
	gap: .6rem;
}

.form-card-header i {
	color: rgba(255, 255, 255, .75);
	font-size: 1rem;
}

.form-card-header span {
	color: #fff;
	font-weight: 600;
	font-size: .92rem;
	letter-spacing: .3px;
	text-transform: uppercase;
}

.form-card-body {
	padding: 1.5rem;
}

 /* Form controls  */
.form-label {
	font-weight: 500;
	font-size: .85rem;
	color: #374151;
	margin-bottom: .35rem;
}

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

.form-control,
.form-select {
	border: 1.5px solid var(--border);
	border-radius: 8px;
	padding: .55rem .85rem;
	font-size: .9rem;
	transition: border-color .15s, box-shadow .15s;
	background-color: #fff;
}

.form-control:focus,
.form-select:focus {
	border-color: var(--primary-light);
	box-shadow: 0 0 0 3px rgba(46, 69, 168, .12);
}

.form-control::placeholder {
	color: #B0B7C3;
}

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

.input-group-text {
	border: 1.5px solid var(--border);
	background: #F3F4F8;
	color: var(--text-muted);
	font-size: .85rem;
}

.input-group .form-control:not(:first-child) {
	border-left: 0;
}

.input-group .form-control:not(:last-child) {
	border-right: 0;
}

 /* Date range */
.date-sep {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 .5rem;
	color: var(--text-muted);
	font-size: .8rem;
	font-weight: 500;
}

 /* Cuidado radios */
.care-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: .5rem;
}

.care-item {
	display: flex;
	align-items: center;
	gap: .55rem;
	padding: .55rem .85rem;
	border: 1.5px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	user-select: none;
}

.care-item:has(input:checked) {
	border-color: var(--primary-light);
	background: #EEF1FF;
}

.care-item input[type=radio] {
	width: 16px;
	height: 16px;
	accent-color: var(--primary-light);
	cursor: pointer;
	flex-shrink: 0;
}

.care-item .care-label {
	font-size: .83rem;
	font-weight: 500;
	color: #374151;
	line-height: 1.2;
}

.care-item:has(input:checked) .care-label {
	color: var(--primary);
}

 /* Volumes table  */
.volumes-table-wrap {
	border: 1.5px solid var(--border);
	border-radius: 8px;
	overflow: hidden;
}

.volumes-table {
	width: 100%;
	margin: 0;
	font-size: .85rem;
}

.volumes-table thead th {
	background: #F3F4F8;
	color: var(--text-muted);
	font-weight: 600;
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: .6rem .75rem;
	border-bottom: 1.5px solid var(--border);
	white-space: nowrap;
}

.volumes-table thead th:first-child {
	width: 44px;
}

.volumes-table tbody td {
	padding: .3rem .4rem;
	border-bottom: 1px solid #F1F3F8;
	vertical-align: middle;
}

.volumes-table tbody tr:last-child td {
	border-bottom: none;
}

.volumes-table .row-num {
	text-align: center;
	font-size: .75rem;
	color: var(--text-muted);
	font-weight: 600;
	width: 44px;
}

.volumes-table .form-control {
	border-radius: 6px;
	padding: .35rem .5rem;
	font-size: .85rem;
	min-width: 60px;
}

.vol-actions {
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	margin-top: .75rem;
}

.vol-actions .btn {
	font-size: .8rem;
	padding: .35rem .85rem;
	border-radius: 6px;
	font-weight: 500;
}

.vol-count-badge {
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	padding: .3rem .7rem;
	background: #EEF1FF;
	border: 1.5px solid #C7D2FE;
	border-radius: 20px;
	font-size: .78rem;
	color: var(--primary);
	font-weight: 600;
}

 /* Radio stacked  */
.radio-group {
	display: flex;
	gap: .75rem;
}

.radio-card {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .6rem;
	border: 1.5px solid var(--border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	user-select: none;
	min-width: 90px;
}

.radio-card input[type=radio] {
	width: 16px;
	height: 16px;
	accent-color: var(--primary-light);
	cursor: pointer;
	flex-shrink: 0;
}

.radio-card:has(input:checked) {
	border-color: var(--primary-light);
	background: #EEF1FF;
}

.radio-card span {
	font-size: .85rem;
	font-weight: 500;
	color: #374151;
}

.radio-card:has(input:checked) span {
	color: var(--primary);
}

 /* File upload  */
.file-drop {
	border: 2px dashed var(--border);
	border-radius: 8px;
	padding: 1.25rem;
	text-align: center;
	cursor: pointer;
	transition: border-color .15s, background .15s;
	position: relative;
}

.file-drop:hover,
.file-drop.drag-over {
	border-color: var(--primary-light);
	background: #F0F3FF;
}

.file-drop input[type=file] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
}

.file-drop i.upload-icon {
	font-size: 1.6rem;
	color: #A0AEC0;
	display: block;
	margin-bottom: .4rem;
}

.file-drop .file-hint {
	font-size: .82rem;
	color: var(--text-muted);
}

.file-drop .file-hint strong {
	color: var(--primary-light);
}

.file-name-display {
	display: none;
	margin-top: .5rem;
	font-size: .82rem;
	color: var(--primary);
	font-weight: 500;
}

 /* Submit button  */
.btn-submit {
	background: var(--accent);
	border: none;
	border-radius: 8px;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	padding: .85rem 2rem;
	width: 100%;
	letter-spacing: .3px;
	transition: background .15s, transform .1s, box-shadow .15s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	cursor: pointer;
}

.btn-submit:hover {
	background: #C01230;
	color: #fff;
	box-shadow: 0 4px 16px rgba(227, 24, 55, .3);
	transform: translateY(-1px);
}

.btn-submit:active {
	transform: translateY(0);
}

 /* Footer  */
.site-footer {
	background: var(--primary);
	color: rgba(255, 255, 255, .5);
	font-size: .78rem;
	padding: 1.25rem 0;
	text-align: center;
	margin-top: 3rem;
}

 /* reCAPTCHA  */
.recaptcha-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 1.25rem 0 .5rem;
}

.recaptcha-error {
	margin-top: .6rem;
	font-size: .82rem;
	color: #DC3545;
	display: flex;
	align-items: center;
	gap: .35rem;
}

@media (max-width: 340px) {
	.recaptcha-wrap .g-recaptcha {
		transform: scale(.85);
		transform-origin: center top;
	}
}

/*  Responsive tweaks  */
@media (max-width: 768px) {
  /* Esconde o menu no mobile - apenas logo + seletor de lang */
  .topbar-nav { display: none; }
}

@media (max-width: 576px) {
	.hero-strip {
		padding: 1.75rem 0 1.5rem;
	}

	.form-card-body {
		padding: 1rem;
	}

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

	.date-sep {
		padding: .5rem .25rem;
	}

	.radio-group {
		gap: .5rem;
	}

	.topbar-brand .brand-text span:last-child {
		display: none;
	}
}