/* Online odstúpenie od zmluvy - frontend styles.
   Modern, responsive, accessible form (WCAG: contrast, focus, sizing). */

.oodz-form-wrap {
	/* Pull the accent from the (block) theme's theme.json presets; fall back to
	   our green for classic themes that do not expose these variables. */
	--oodz-accent: var(--wp--preset--color--primary, var(--wp--preset--color--accent, #16a34a));
	--oodz-accent-text: #fff;

	max-width: 620px;
	margin: 0 auto;
	padding-bottom: 3rem;
	font-size: 16px;
	line-height: 1.5;
	color: inherit;
}

.oodz-form-wrap h2 {
	font-size: 1.6rem;
	margin-bottom: .5rem;
}

.oodz-intro {
	color: #444;
	margin-bottom: 1.5rem;
}

.oodz-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.1rem;
}

.oodz-field label {
	font-weight: 600;
	margin-bottom: .35rem;
}

.oodz-field input[type="text"],
.oodz-field input[type="email"],
.oodz-field input[type="tel"],
.oodz-field textarea {
	padding: .7rem .8rem;
	font-size: 1rem;
	border: 1px solid #b8b8b8;
	border-radius: 8px;
	width: 100%;
	box-sizing: border-box;
}

.oodz-field input:focus,
.oodz-field textarea:focus {
	outline: 2px solid var(--oodz-accent);
	outline-offset: 1px;
	border-color: var(--oodz-accent);
}

.oodz-field--consent label,
.oodz-field--consent {
	flex-direction: row;
	align-items: flex-start;
	gap: .5rem;
	font-weight: 400;
}

.oodz-field--consent input {
	margin-top: .25rem;
}

.oodz-submit {
	display: inline-block;
	padding: .85rem 1.6rem;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--oodz-accent-text);
	background: var(--oodz-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
	transition: filter .15s ease, background .15s ease;
}

.oodz-submit:hover {
	filter: brightness(0.92);
}

.oodz-submit:focus-visible {
	outline: 3px solid var(--oodz-accent);
	outline-offset: 2px;
}

.oodz-notice {
	padding: .9rem 1rem;
	border-radius: 8px;
	margin-bottom: 1.2rem;
	border: 1px solid transparent;
}

.oodz-notice--success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #065f46;
}

.oodz-notice--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #991b1b;
}

.oodz-notice--info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e40af;
}

/* Deadline countdown badges - My Account list and the form deadline banner. */
.oodz-deadlines {
	line-height: 1.6;
}

.oodz-countdown {
	display: inline-block;
	margin: 0 .25rem .2rem 0;
	padding: .15rem .55rem;
	border-radius: 999px;
	font-size: .85em;
	font-weight: 600;
	white-space: nowrap;
}

.oodz-countdown--ok {
	background: #ecfdf5;
	color: #065f46;
}

.oodz-countdown--warn {
	background: #fffbeb;
	color: #92400e;
}

.oodz-countdown--expired {
	background: #f3f4f6;
	color: #6b7280;
}

.oodz-footer-link {
	text-align: center;
	padding: .75rem 0;
	font-size: .95rem;
}

@media (max-width: 480px) {
	.oodz-form-wrap { font-size: 17px; }
	.oodz-submit { width: 100%; }
}

/* Drag & drop photo uploader (progressive enhancement). */
.oodz-file-native {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.oodz-dropzone {
	display: block;
	padding: 1.4rem 1rem;
	border: 2px dashed #c3c4c7;
	border-radius: 10px;
	background: #fafafa;
	text-align: center;
	color: #50575e;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

.oodz-dropzone:hover,
.oodz-dropzone:focus-visible,
.oodz-dropzone.is-over {
	border-color: var(--oodz-accent);
	background: #fff;
	outline: none;
}

.oodz-upload-msg {
	margin: .5rem 0 0;
	color: #991b1b;
	font-size: .9rem;
}

.oodz-preview-grid {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	margin-top: .8rem;
}

.oodz-preview-item {
	position: relative;
	width: 110px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 4px;
	background: #fff;
	font-size: .72rem;
	line-height: 1.3;
	word-break: break-word;
}

.oodz-preview-item img,
.oodz-preview-file {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 80px;
	object-fit: cover;
	border-radius: 5px;
	background: #f0f0f1;
	color: #787c82;
	font-weight: 700;
}

.oodz-preview-meta {
	display: block;
	margin-top: 3px;
	color: #50575e;
}

.oodz-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 22px;
	height: 22px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #b32d2e;
	color: #fff;
	font-size: 15px;
	line-height: 22px;
	cursor: pointer;
}

.oodz-remove:hover,
.oodz-remove:focus-visible {
	background: #8a1f20;
	outline: none;
}
