/*
 * The application page (template-apply.php). The head, the fields and the thank-you card are the contact page's
 * (contact.css), the letter keys the privacy page's (document.css); here: the steps, the file drops and the payment.
 */

.sst-apply-column {
	display: grid;
	max-width: 52rem;
	gap: 1.5rem;
}

.sst-apply-form[hidden],
.sst-apply-done[hidden],
.sst-apply-progress[hidden] {
	display: none;
}

.sst-apply-step {
	padding: 1.75rem 1.5rem 2rem;
	scroll-margin-top: 6.5rem;
}

.sst-apply-body {
	position: relative;
	display: grid;
	gap: 1rem;
	margin-top: 1.4rem;
}

.sst-apply-note {
	font-size: 14.5px;
	line-height: 1.6;
	text-wrap: pretty;
}

.sst-apply-hint {
	margin-top: -0.2rem;
	font-size: 12.5px;
	line-height: 1.35;
	color: rgb(12 11 10 / 0.5);
}

.sst-apply-address {
	min-height: 5.5rem;
}

/* The plans: two cards to pick from, the chosen one deep green with a lime tick (as the featured plan). */
.sst-apply-plans {
	display: grid;
	gap: 0.85rem;
	margin: 0;
	border: 0;
	padding: 0;
}

.sst-apply-plans legend {
	margin-bottom: 0.4rem;
	padding: 0;
}

.sst-apply-plan {
	position: relative;
	display: block;
	cursor: pointer;
}

.sst-apply-plan input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.sst-apply-plan-card {
	position: relative;
	display: block;
	height: 100%;
	border-radius: 1.5rem;
	background: #fffdf8;
	padding: 1.2rem 3.5rem 1.3rem 1.3rem;
	color: #0c0b0a;
	box-shadow: inset 0 0 0 1.5px rgb(12 11 10 / 0.1), 0 6px 0 #dcc8f0;
	transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, translate 0.2s;
}

.sst-apply-plan:hover .sst-apply-plan-card {
	translate: 0 -2px;
}

.sst-apply-plan input:checked + .sst-apply-plan-card {
	background: #154618;
	color: #fdf8f2;
	box-shadow: 0 6px 0 #0a260c;
}

.sst-apply-plan input:focus-visible + .sst-apply-plan-card {
	outline: 3px solid #adee68;
	outline-offset: 2px;
}

.sst-apply-plans[data-invalid] .sst-apply-plan-card {
	box-shadow: inset 0 0 0 2px #c2410c, 0 6px 0 #f5c9a8;
}

.sst-apply-plan-tick {
	position: absolute;
	top: 1.1rem;
	right: 1.1rem;
	width: 1.6rem;
	height: 1.6rem;
	color: transparent;
	box-shadow: inset 0 0 0 1.5px rgb(12 11 10 / 0.18);
	transition: background-color 0.2s, color 0.2s;
}

.sst-apply-plan input:checked + .sst-apply-plan-card .sst-apply-plan-tick {
	background: #adee68;
	color: #154618;
	box-shadow: none;
}

.sst-apply-plan-name {
	font-size: 16px;
	line-height: 1.15;
}

.sst-apply-plan-text {
	margin-top: 0.4rem;
	font-size: 13.5px;
	line-height: 1.45;
	opacity: 0.7;
}

.sst-apply-plan-price {
	margin-top: 0.9rem;
	font-size: 24px;
	line-height: 1;
}

.sst-apply-plan input:checked + .sst-apply-plan-card .sst-apply-plan-price {
	color: #adee68;
}

.sst-apply-plan-old {
	margin-right: 0.3rem;
	font-size: 15px;
	opacity: 0.5;
}

/* The sum on the payment card. */
.sst-apply-amount {
	margin-top: 0.75rem;
	color: rgb(253 248 242 / 0.75);
	font-size: 15px;
	line-height: 1.4;
}

.sst-apply-amount-sum {
	color: #adee68;
	font-size: 22px;
}

/* A document's drop: a dashed field on the lilac tint; the chosen files listed under it. */
.sst-apply-drop {
	position: relative;
	display: grid;
	gap: 0.6rem;
}

.sst-apply-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.sst-apply-zone {
	display: flex;
	align-items: center;
	gap: 1rem;
	border: 2px dashed rgb(59 31 99 / 0.22);
	border-radius: 1.25rem;
	background: rgb(219 185 243 / 0.16);
	padding: 1.1rem 1.2rem;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}

.sst-apply-zone:hover,
.sst-apply-drop[data-over] .sst-apply-zone {
	border-color: #154618;
	background: rgb(173 238 104 / 0.18);
}

.sst-apply-file:focus-visible + .sst-apply-zone {
	border-color: #154618;
	box-shadow: 0 0 0 3px rgb(173 238 104 / 0.7);
}

.sst-apply-drop[data-invalid] .sst-apply-zone {
	border-color: #c2410c;
	background: #fdf1e7;
}

.sst-apply-zone-icon {
	width: 2.75rem;
	height: 2.75rem;
	box-shadow: 0 4px 0 #0a260c;
}

.sst-apply-zone-main {
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.35;
	color: rgb(12 11 10 / 0.75);
}

.sst-apply-zone-pick {
	font-weight: 700;
	color: #154618;
	text-decoration: underline;
	text-decoration-color: #adee68;
	text-decoration-thickness: 0.18em;
	text-underline-offset: 0.18em;
}

.sst-apply-zone-sub {
	margin-top: 0.3rem;
	font-size: 12.5px;
	line-height: 1.35;
	color: rgb(12 11 10 / 0.5);
}

.sst-apply-list {
	display: grid;
	gap: 0.5rem;
}

.sst-apply-list:empty {
	display: none;
}

.sst-apply-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	border-radius: 1rem;
	background: #fff;
	padding: 0.55rem 0.55rem 0.55rem 0.6rem;
	box-shadow: inset 0 0 0 1.5px rgb(12 11 10 / 0.08), 0 3px 0 #e0d5c6;
}

.sst-apply-kind {
	display: grid;
	min-width: 2.5rem;
	height: 2rem;
	flex-shrink: 0;
	place-items: center;
	border-radius: 0.6rem;
	background: #adee68;
	color: #154618;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
}

.sst-apply-name {
	min-width: 0;
	flex: 1;
	overflow: hidden;
	color: #0c0b0a;
	font-size: 14px;
	font-weight: 500;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sst-apply-size {
	flex-shrink: 0;
	color: rgb(12 11 10 / 0.5);
	font-size: 12.5px;
	font-variant-numeric: tabular-nums;
}

.sst-apply-remove {
	display: grid;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	place-items: center;
	border-radius: 999px;
	color: rgb(12 11 10 / 0.55);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.sst-apply-remove svg {
	width: 0.95rem;
	height: 0.95rem;
}

.sst-apply-remove:hover {
	background: #fdebd9;
	color: #c2410c;
}

/* Sending. */
.sst-apply-submit {
	display: grid;
	justify-items: start;
	gap: 1rem;
	padding-inline: 0.25rem;
}

.sst-apply-progress {
	width: 100%;
	height: 0.5rem;
	overflow: hidden;
	border-radius: 999px;
	background: rgb(219 185 243 / 0.45);
}

.sst-apply-progress span {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: #154618;
	transition: width 0.2s;
}

.sst-apply-done {
	scroll-margin-top: 7rem;
}

.sst-apply-done [tabindex="-1"]:focus {
	outline: none;
}

/* The payment: a deep green slip, the button a lime key holding the account number. */
.sst-apply-pay-wrap {
	margin-top: 1rem;
}

.sst-apply-pay {
	padding: 1.75rem 1.5rem 2rem;
}

.sst-apply-copy {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 1.25rem;
	border-radius: 1.5rem;
	background: #adee68;
	padding: 0.85rem 0.85rem 0.85rem 1.4rem;
	color: #154618;
	box-shadow: 0 6px 0 #62bb39;
	cursor: pointer;
	transition: translate 0.15s, box-shadow 0.15s, background-color 0.15s;
	outline: none;
}

.sst-apply-copy:hover {
	background: #9fe556;
}

.sst-apply-copy:active {
	translate: 0 3px;
	box-shadow: 0 3px 0 #62bb39;
}

.sst-apply-copy:focus-visible {
	box-shadow: 0 6px 0 #62bb39, 0 0 0 3px #fffdf8;
}

.sst-apply-copy-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	opacity: 0.75;
}

.sst-apply-copy-iban {
	margin-top: 0.45rem;
	font-size: clamp(15px, 4.4vw, 22px);
	line-height: 1.15;
	letter-spacing: 0.02em;
	overflow-wrap: anywhere;
	font-variant-numeric: tabular-nums;
}

.sst-apply-copy-key {
	width: 3rem;
	height: 3rem;
}

.sst-apply-copied-icon,
.sst-apply-copy[data-copied] .sst-apply-copy-icon {
	display: none;
}

.sst-apply-copy[data-copied] .sst-apply-copied-icon {
	display: block;
}

.sst-apply-pay-help {
	margin-top: 1rem;
	font-size: 14px;
	line-height: 1.55;
}

.sst-apply-pay-line {
	margin-top: 0.4rem;
	font-size: 14px;
	line-height: 1.55;
}

@media (min-width: 40rem) {
	.sst-apply-step,
	.sst-apply-pay {
		padding: 2.5rem 2.75rem 2.75rem;
	}

	.sst-apply-body {
		margin-top: 1.6rem;
		padding-left: 3.5rem;
	}

	.sst-apply-note {
		font-size: 15.5px;
	}

	.sst-apply-zone {
		padding: 1.3rem 1.4rem;
	}

	.sst-apply-plans {
		grid-template-columns: 1fr 1fr;
	}

	.sst-apply-plans legend {
		grid-column: 1 / -1;
	}

	.sst-apply-submit {
		padding-left: 0;
	}
}

@media (min-width: 64rem) {
	.sst-apply-column {
		margin-inline: auto;
	}
}
