/* =========================================================
   ADO Archiv – formulář
   Design vychází z www.ado.cz
   ========================================================= */

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
	color: #2b2b2b;
	background: #f5f5f5;
}

a {
	color: #cf2e2e;
}

a:hover {
	color: #a01f1f;
}

/* ----- Header ----- */

.site-header {
	background: #fff;
	padding: 0;
	border-bottom: 1px solid #e0e0e0;
	box-shadow: 0 1px 4px rgba(0,0,0,.07);
}

.header-inner {
	max-width: 860px;
	margin: 0 auto;
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.header-logo-link {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.header-logo {
	height: 48px;
	width: auto;
	display: block;
}

.header-divider {
	width: 1px;
	height: 32px;
	background: #ddd;
	flex-shrink: 0;
}

.header-brand {
	display: flex;
	flex-direction: column;
}

.header-subtitle {
	font-size: 0.8rem;
	color: #888;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Červený proužek pod hlavičkou – jako na ado.cz */
.header-accent {
	height: 3px;
	background: #cf2e2e;
}

/* ----- Main ----- */

.site-main {
	padding: 32px 0 48px;
}

.container {
	max-width: 860px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ----- Page heading ----- */

.page-heading h1 {
	font-size: 1.3rem;
	font-weight: 600;
	color: #2b2b2b;
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid #cf2e2e;
}

/* ----- Flash messages ----- */

.flash {
	padding: 12px 16px;
	border-radius: 3px;
	margin-bottom: 16px;
	font-size: 0.95rem;
}

.flash-error {
	background: #fdecea;
	border-left: 4px solid #cf2e2e;
	color: #b71c1c;
}

.flash-success {
	background: #eafaf1;
	border-left: 4px solid #27ae60;
	color: #1e8449;
}

/* ----- Form note ----- */

.form-note {
	color: #666;
	font-size: 0.9rem;
	margin: 0 0 20px;
}

.required-mark {
	color: #cf2e2e;
	font-weight: bold;
}

/* ----- Fieldsets ----- */

fieldset {
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px 24px;
	margin: 0 0 20px;
	background: #fff;
}

legend {
	font-size: 0.82rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #cf2e2e;
	padding: 0 8px;
}

/* ----- Form rows ----- */

.form-row {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 8px 16px;
	align-items: start;
	margin-bottom: 14px;
}

.form-row label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #444;
	padding-top: 7px;
	line-height: 1.35;
}

/* ----- Město + PSČ – jeden řádek se 4 sloupci ----- */

.form-row--addr {
	grid-template-columns: 200px 1fr 50px 110px;
}

.form-psc-label {
	font-size: 0.9rem;
	font-weight: 500;
	color: #444;
	padding-top: 7px;
	line-height: 1.35;
	white-space: nowrap;
}

/* ----- Inputs ----- */

.form-input {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
	width: 100%;
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 3px;
	font-size: 0.95rem;
	font-family: inherit;
	color: #2b2b2b;
	background: #fafafa;
	transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
	outline: none;
	border-color: #cf2e2e;
	box-shadow: 0 0 0 2px rgba(207,46,46,.15);
	background: #fff;
}

textarea {
	resize: vertical;
	min-height: 80px;
}

.input-short {
	max-width: 160px;
}

/* ----- Hints & errors ----- */

.form-hint {
	font-size: 0.82rem;
	color: #777;
	line-height: 1.4;
}

.form-error {
	font-size: 0.82rem;
	color: #cf2e2e;
}

.form-errors {
	background: #fdecea;
	border-left: 4px solid #cf2e2e;
	padding: 10px 14px;
	border-radius: 3px;
	margin-bottom: 16px;
	font-size: 0.9rem;
	color: #b71c1c;
}

.form-errors ul {
	margin: 0;
	padding-left: 18px;
}

/* ----- Radio list ----- */

.form-row--radio {
	align-items: start;
}

.form-radio-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-top: 2px;
}

.radio-label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.9rem;
	cursor: pointer;
	line-height: 1.4;
}

.radio-label input[type="radio"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #cf2e2e;
}

/* ----- GDPR box ----- */

.gdpr-box {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 20px 24px;
	margin-bottom: 20px;
	font-size: 0.85rem;
	color: #555;
	line-height: 1.55;
}

.gdpr-box p {
	margin: 0 0 0;
}

/* Consent checkbox – bez grid wrapperu */
.gdpr-consent {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #e8e8e8;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #2b2b2b;
	cursor: pointer;
	line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: #cf2e2e;
	width: 16px;
	height: 16px;
}

/* ----- Honeypot ----- */

.hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
	pointer-events: none;
}

/* ----- Submit ----- */

.form-submit {
	margin-top: 8px;
}

input[type="submit"],
button[type="submit"] {
	background: #cf2e2e;
	color: #fff;
	border: none;
	padding: 12px 32px;
	font-size: 1rem;
	font-family: inherit;
	font-weight: 600;
	letter-spacing: 0.02em;
	border-radius: 3px;
	cursor: pointer;
	transition: background 0.15s;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
	background: #a01f1f;
}

/* ----- Sent page ----- */

.sent-box {
	background: #fff;
	border: 1px solid #ddd;
	border-top: 3px solid #cf2e2e;
	border-radius: 4px;
	padding: 32px 36px;
}

.sent-icon {
	width: 48px;
	height: 48px;
	background: #cf2e2e;
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 16px;
}

.sent-box h2 {
	color: #2b2b2b;
	margin: 0 0 16px;
	font-size: 1.3rem;
	padding-bottom: 12px;
	border-bottom: 2px solid #cf2e2e;
}

.sent-box p {
	margin-bottom: 14px;
	color: #444;
	line-height: 1.6;
}

.sent-notice {
	background: #fdf8f0;
	border-left: 3px solid #cf2e2e;
	padding: 12px 16px;
	border-radius: 0 3px 3px 0;
	margin: 16px 0;
	font-size: 0.9rem;
	color: #555;
	line-height: 1.5;
}

.sent-contact {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
	font-size: 0.9rem;
	color: #555;
}

.sent-contact a {
	color: #cf2e2e;
	text-decoration: none;
	font-weight: 500;
}

.sent-contact a:hover {
	text-decoration: underline;
}

/* ----- Error page ----- */

.error-page {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 28px 32px;
}

/* ----- Footer ----- */

.site-footer {
	background: #fff;
	color: #999;
	padding: 20px 0;
	font-size: 0.82rem;
	border-top: 3px solid #cf2e2e;
}

.site-footer .container {
	display: flex;
	justify-content: center;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: #999;
}

.site-footer a:hover {
	color: #cf2e2e;
}

/* ----- Responsive ----- */

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

	.form-row label {
		padding-top: 0;
	}

	/* Město + PSČ: na mobilu pod sebou */
	.form-row--addr {
		grid-template-columns: 1fr 1fr;
	}

	.form-psc-label {
		padding-top: 0;
	}

	fieldset {
		padding: 16px;
	}

	.gdpr-box {
		padding: 16px;
	}

	.page-heading h1 {
		font-size: 1.1rem;
	}

	.header-logo {
		height: 34px;
	}
}
