/* Wspomnienia 60-lecia — formularz. Wszystkie reguły ograniczone do .w60, by nie kolidować z motywem. */

.w60 {
	--w60-paper: #f7f1e6;
	--w60-card: #fffdf8;
	--w60-ink: #2e2520;
	--w60-ink-soft: #5d5048;
	--w60-muted: #8a7d72;
	--w60-sepia: #8b5e34;
	--w60-gold: #b48a4d;
	--w60-line: #e2d6c3;
	--w60-error: #9b2c2c;
	--w60-serif: 'W60 Cormorant', 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
	--w60-sans: 'W60 Lato', Lato, 'Segoe UI', system-ui, -apple-system, sans-serif;

	container-type: inline-size;
	box-sizing: border-box;
	max-width: 1080px;
	margin: 0 auto 3rem;
	padding: clamp(28px, 6vw, 72px) clamp(18px, 5vw, 64px);
	color: var(--w60-ink);
	font-family: var(--w60-sans);
	font-size: 16px;
	line-height: 1.65;
	background:
		radial-gradient(ellipse at 15% 0%, rgba(180, 138, 77, .10), transparent 55%),
		radial-gradient(ellipse at 100% 100%, rgba(139, 94, 52, .08), transparent 50%),
		var(--w60-paper);
	border: 1px solid var(--w60-line);
	border-radius: 4px;
	position: relative;
}
.w60::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(180, 138, 77, .28);
	border-radius: 2px;
	pointer-events: none;
}
.w60 *, .w60 *::before, .w60 *::after { box-sizing: border-box; }
.w60 [hidden] { display: none !important; }

/* ---------- Nagłówek ---------- */

.w60-hero { text-align: center; max-width: 760px; margin: 0 auto; }

.w60-years {
	display: flex; align-items: center; justify-content: center; gap: 18px;
	font-family: var(--w60-serif); font-size: 1.15rem; letter-spacing: .32em;
	color: var(--w60-sepia);
}
.w60-years-rule { width: 56px; height: 1px; background: currentColor; opacity: .6; }

.w60 .w60-eyebrow {
	margin: 1.4rem 0 .4rem;
	font-family: var(--w60-sans); font-size: .78rem; font-weight: 700;
	letter-spacing: .28em; text-transform: uppercase; color: var(--w60-gold);
}
.w60 .w60-title {
	margin: 0; padding: 0; border: 0;
	font-family: var(--w60-serif); font-weight: 600;
	font-size: clamp(2rem, 5.2cqi, 3.4rem); line-height: 1.08;
	color: var(--w60-ink); letter-spacing: -.005em; text-transform: none;
}
.w60 .w60-subtitle {
	margin: .5rem 0 0;
	font-family: var(--w60-serif); font-style: italic; font-size: clamp(1.25rem, 2.6cqi, 1.6rem);
	color: var(--w60-ink-soft);
}
.w60-ornament { color: var(--w60-gold); margin: 1.6rem auto 1.2rem; line-height: 0; }
.w60-ornament svg { max-width: 100%; height: auto; }

.w60 .w60-quote {
	margin: 0 auto; padding: 0; border: 0; background: none; quotes: none;
	max-width: 660px;
}
.w60 .w60-quote::before, .w60 .w60-quote::after { content: none; }
.w60 .w60-quote p {
	margin: 0;
	font-family: var(--w60-serif); font-style: italic; font-weight: 400;
	font-size: clamp(1.3rem, 2.7cqi, 1.7rem); line-height: 1.5; color: var(--w60-ink);
}
.w60 .w60-quote p::before { content: "„"; }
.w60 .w60-quote p::after { content: "”"; }
.w60 .w60-quote footer {
	margin-top: 1rem; font-family: var(--w60-sans); font-size: .85rem;
	letter-spacing: .06em; color: var(--w60-muted);
}
.w60 .w60-quote footer em { font-family: var(--w60-serif); font-size: 1.1rem; letter-spacing: .02em; color: var(--w60-sepia); }

/* ---------- Wstęp ---------- */

.w60-intro {
	max-width: 680px; margin: 2.6rem auto 2.4rem; text-align: center;
	color: var(--w60-ink-soft);
}
.w60-intro p { margin: 0 0 1em; }
.w60 .w60-lead {
	font-family: var(--w60-serif); font-size: 1.35rem; font-weight: 600; color: var(--w60-ink);
}

/* ---------- Karta formularza ---------- */

.w60-form, .w60-thanks {
	background: var(--w60-card);
	border: 1px solid var(--w60-line);
	border-radius: 4px;
	box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px -24px rgba(70, 45, 20, .35);
	padding: clamp(22px, 4.5cqi, 48px);
	margin: 0;
}

.w60-grid {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	gap: clamp(28px, 5cqi, 56px);
	align-items: start;
}
@container (max-width: 520px) { .w60-form, .w60-thanks { padding: 20px 16px; } }
@container (max-width: 760px) {
	.w60-grid { grid-template-columns: 1fr; }
	.w60-photo-col { max-width: 440px; margin: 0 auto; width: 100%; }
}

/* ---------- Pole zdjęcia: odbitka ---------- */

.w60-photo-col { position: relative; }

.w60 .w60-drop {
	display: block; position: relative; cursor: pointer;
	margin: 10px 6px 0;
	padding: 14px 14px 0;
	background: #fff;
	border-radius: 2px;
	box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 14px 28px -12px rgba(60, 40, 20, .35);
	transform: rotate(-1.6deg);
	transition: transform .35s ease, box-shadow .35s ease;
	font-weight: normal;
}
.w60 .w60-drop:hover, .w60-drop.is-over { transform: rotate(-.4deg) translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 36px -14px rgba(60, 40, 20, .4); }
.w60-file:focus-visible + .w60-file-name, .w60-photo-col:focus-within .w60-drop { outline: 2px solid var(--w60-gold); outline-offset: 4px; }

.w60-tape {
	position: absolute; top: -12px; width: 92px; height: 26px; z-index: 2;
	background: rgba(236, 224, 196, .78);
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
	clip-path: polygon(3% 0, 97% 4%, 100% 92%, 0 100%);
}
.w60-tape-l { left: -18px; transform: rotate(-32deg); }
.w60-tape-r { right: -18px; transform: rotate(28deg); }

.w60-frame {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 4 / 3.4; overflow: hidden;
	background:
		repeating-linear-gradient(135deg, rgba(139,94,52,.035) 0 8px, transparent 8px 16px),
		#f3ece0;
	border: 1.5px dashed rgba(139, 94, 52, .35);
	transition: border-color .2s, background-color .2s;
}
.w60-drop.is-over .w60-frame { border-color: var(--w60-sepia); background-color: #efe3cf; }
.w60-drop.has-image .w60-frame { border: 0; background: #2b2622; }

.w60-placeholder {
	display: flex; flex-direction: column; align-items: center; gap: 4px;
	color: var(--w60-sepia); text-align: center; padding: 20px;
}
.w60-placeholder svg { margin-bottom: 10px; opacity: .85; }
.w60-ph-main { font-family: var(--w60-serif); font-size: 1.45rem; font-weight: 600; color: var(--w60-ink); }
.w60-ph-sub { font-size: .88rem; color: var(--w60-muted); }

.w60 .w60-preview {
	display: block; width: 100%; height: 100%; max-width: none; margin: 0;
	object-fit: contain; border: 0; border-radius: 0; box-shadow: none;
	filter: sepia(.08);
}

.w60-caption {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	min-height: 62px; padding: 12px 4px 14px;
	font-family: var(--w60-serif); font-style: italic; color: var(--w60-ink-soft);
}
.w60-cap-title { font-size: 1.3rem; line-height: 1.2; overflow-wrap: anywhere; }
.w60-cap-title.is-empty { color: #b9ab9b; }
.w60-cap-year { font-size: 1.15rem; color: var(--w60-sepia); white-space: nowrap; }

.w60 .w60-file {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.w60 .w60-file-name {
	margin: 18px 6px 0; font-size: .85rem; color: var(--w60-ink-soft);
	display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.w60-file-name button {
	all: unset; cursor: pointer; color: var(--w60-sepia); text-decoration: underline; text-underline-offset: 3px;
}
.w60-file-name button:focus-visible { outline: 2px solid var(--w60-gold); outline-offset: 2px; }

.w60-info {
	margin: 26px 6px 0; padding: 16px 18px;
	border-left: 2px solid var(--w60-gold);
	background: rgba(180, 138, 77, .07);
	font-size: .88rem; color: var(--w60-ink-soft);
}
.w60 .w60-info-head {
	margin: 0 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .18em;
	text-transform: uppercase; color: var(--w60-sepia);
}
.w60 .w60-info ul { margin: 0; padding: 0 0 0 1.1em; list-style: disc; }
.w60 .w60-info li { margin: 2px 0; padding: 0; }
.w60 .w60-info strong { color: var(--w60-ink); }

/* ---------- Pola tekstowe ---------- */

.w60-field { margin: 0 0 22px; display: flex; flex-direction: column; }
.w60 .w60-field label {
	display: block; margin: 0 0 7px; padding: 0;
	font-family: var(--w60-sans); font-size: .78rem; font-weight: 700;
	letter-spacing: .14em; text-transform: uppercase; color: var(--w60-ink);
}
.w60-req { color: var(--w60-sepia); }
.w60-opt { font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--w60-muted); }

.w60 .w60-field input,
.w60 .w60-field textarea {
	display: block; width: 100%; max-width: none; margin: 0;
	padding: 12px 14px;
	font-family: var(--w60-serif); font-size: 1.22rem; line-height: 1.35; color: var(--w60-ink);
	background: #fffefb;
	border: 1px solid #d6c8b2; border-radius: 3px;
	box-shadow: 0 1px 2px rgba(60, 40, 20, .05) inset;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
	height: auto; min-height: 0;
}
.w60 .w60-field textarea { resize: vertical; min-height: 130px; font-size: 1.15rem; }
.w60 .w60-field-year input { max-width: 180px; -moz-appearance: textfield; }
.w60 .w60-field-year input::-webkit-outer-spin-button,
.w60 .w60-field-year input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.w60 .w60-field input:focus,
.w60 .w60-field textarea:focus {
	outline: none; border-color: var(--w60-gold);
	box-shadow: 0 0 0 3px rgba(180, 138, 77, .22);
}
.w60 .w60-field.is-invalid input,
.w60 .w60-field.is-invalid textarea { border-color: var(--w60-error); box-shadow: 0 0 0 3px rgba(155, 44, 44, .12); }

.w60-hint { margin-top: 6px; font-size: .84rem; color: var(--w60-muted); }
.w60-hint-row { display: flex; justify-content: space-between; gap: 14px; }
.w60-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.w60-count.is-near { color: var(--w60-sepia); }
.w60-field-error { margin-top: 6px; font-size: .84rem; color: var(--w60-error); }

/* ---------- RODO i zgody ---------- */

.w60-rodo {
	margin-top: 34px; padding-top: 28px;
	border-top: 1px solid var(--w60-line);
}
.w60-rodo details {
	margin: 0 0 22px; border: 1px solid var(--w60-line); border-radius: 3px; background: #fcf8f1;
}
.w60-rodo summary {
	cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative;
	font-family: var(--w60-serif); font-size: 1.18rem; font-weight: 600; color: var(--w60-ink);
}
.w60-rodo summary::-webkit-details-marker { display: none; }
.w60-rodo summary::after {
	content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px;
	border-right: 1.5px solid var(--w60-sepia); border-bottom: 1.5px solid var(--w60-sepia);
	transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.w60-rodo details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.w60-rodo summary:focus-visible { outline: 2px solid var(--w60-gold); outline-offset: 2px; }
.w60-rodo-body { padding: 0 22px 14px; font-size: .88rem; line-height: 1.6; color: var(--w60-ink-soft); }
.w60 .w60-rodo-body ol { margin: 0 0 .6em; padding-left: 1.3em; }
.w60 .w60-rodo-body li { margin: 0 0 .45em; }
.w60 .w60-rodo-body a { color: var(--w60-sepia); }

.w60 .w60-check {
	display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start;
	margin: 0 0 14px; cursor: pointer; position: relative;
	font-size: .9rem; line-height: 1.55; color: var(--w60-ink-soft); font-weight: normal;
	text-transform: none; letter-spacing: 0;
}
.w60 .w60-check input {
	position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 0; top: 0;
}
.w60-box {
	width: 22px; height: 22px; margin-top: 1px; border: 1.5px solid #b9a588; border-radius: 3px;
	background: #fffefb; display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.w60-box::after {
	content: ""; width: 6px; height: 11px; margin-top: -3px;
	border-right: 2px solid #fff; border-bottom: 2px solid #fff;
	transform: rotate(45deg) scale(0); transition: transform .15s;
}
.w60-check input:checked + .w60-box { background: var(--w60-sepia); border-color: var(--w60-sepia); }
.w60-check input:checked + .w60-box::after { transform: rotate(45deg) scale(1); }
.w60-check input:focus-visible + .w60-box { outline: 2px solid var(--w60-gold); outline-offset: 2px; }
.w60-check.is-invalid .w60-box { border-color: var(--w60-error); }

.w60-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Wysyłanie ---------- */

.w60-submit-row {
	display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
	margin-top: 26px;
}
.w60 .w60-required-note { margin: 0; font-size: .82rem; color: var(--w60-muted); }

.w60 .w60-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	margin: 0; padding: 16px 34px; min-height: 54px;
	font-family: var(--w60-sans); font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
	color: #fbf6ec; background: var(--w60-ink); border: 1px solid var(--w60-ink); border-radius: 2px;
	box-shadow: 0 10px 20px -12px rgba(46, 37, 32, .7);
	cursor: pointer; text-decoration: none; line-height: 1.2;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.w60 .w60-btn:hover { background: var(--w60-sepia); border-color: var(--w60-sepia); color: #fff; transform: translateY(-1px); }
.w60 .w60-btn:focus-visible { outline: 2px solid var(--w60-gold); outline-offset: 3px; }
.w60 .w60-btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.w60 .w60-btn-ghost { background: transparent; color: var(--w60-ink); box-shadow: none; }
.w60 .w60-btn-ghost:hover { color: #fff; }

.w60-progress { margin-top: 20px; }
.w60-progress-bar { height: 4px; background: var(--w60-line); border-radius: 2px; overflow: hidden; }
.w60-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--w60-gold), var(--w60-sepia)); transition: width .2s; }
.w60 .w60-progress-text { margin: 8px 0 0; font-size: .85rem; color: var(--w60-muted); text-align: right; }

.w60 .w60-alert {
	margin: 0 0 26px; padding: 14px 18px;
	border: 1px solid rgba(155, 44, 44, .3); border-left: 3px solid var(--w60-error); border-radius: 3px;
	background: #fbf1ee; color: #6e2020; font-size: .92rem;
}

/* ---------- Podziękowanie ---------- */

.w60-thanks { text-align: center; padding-top: 48px; padding-bottom: 48px; outline: none; }
.w60-thanks-icon { color: var(--w60-sepia); margin-bottom: 8px; }
.w60 .w60-thanks h3 {
	margin: 0 0 .4rem; font-family: var(--w60-serif); font-weight: 600; font-size: 2.1rem; color: var(--w60-ink);
}
.w60 .w60-thanks-text { max-width: 520px; margin: 0 auto 1.8rem; font-family: var(--w60-serif); font-size: 1.25rem; font-style: italic; color: var(--w60-ink-soft); }

@media (prefers-reduced-motion: reduce) {
	.w60 *, .w60 *::before, .w60 *::after { transition: none !important; }
	.w60 .w60-drop, .w60 .w60-drop:hover { transform: none; }
}
