/* 故事王國表單：不佔用外層背景或版面，但提供一致的控制項基礎樣式。 */

.sl-form,
.sl-form-preview {
	max-width: 100%;
	font: inherit;
	color: inherit;
}

.sl-form-field {
	margin: 0 0 1.5rem;
}

.sl-form-field label,
.sl-form-field legend {
	display: block;
	margin: 0 0 0.55rem;
	font: inherit;
	font-weight: 700;
	line-height: 1.5;
}

.sl-form input[type="text"],
.sl-form input[type="email"],
.sl-form input[type="tel"],
.sl-form input[type="url"],
.sl-form textarea,
.sl-form select,
.sl-form-preview input,
.sl-form-preview textarea,
.sl-form-preview select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: 0.7rem 0.85rem;
	border: 1px solid #2c2c2c;
	border-radius: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 1rem;
	line-height: 1.5;
	box-shadow: none;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.sl-form textarea,
.sl-form-preview textarea {
	min-height: 9rem;
	resize: vertical;
}

.sl-form input::placeholder,
.sl-form textarea::placeholder,
.sl-form-preview input::placeholder,
.sl-form-preview textarea::placeholder {
	color: #6d6961;
	opacity: 1;
}

.sl-form input:hover,
.sl-form textarea:hover,
.sl-form select:hover,
.sl-form-preview input:hover,
.sl-form-preview textarea:hover,
.sl-form-preview select:hover {
	border-color: #000;
}

.sl-form input:focus,
.sl-form textarea:focus,
.sl-form select:focus,
.sl-form-preview input:focus,
.sl-form-preview textarea:focus,
.sl-form-preview select:focus {
	border-color: #000;
	outline: 0;
	box-shadow: 0 0 0 1px #000;
}

.sl-form input:focus-visible,
.sl-form textarea:focus-visible,
.sl-form select:focus-visible,
.sl-form-preview input:focus-visible,
.sl-form-preview textarea:focus-visible,
.sl-form-preview select:focus-visible {
	border-color: #000;
	outline: 2px solid transparent;
	outline-offset: 2px;
	box-shadow: 0 0 0 1px #000;
}

.sl-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

.sl-form fieldset label {
	display: flex;
	align-items: flex-start;
	gap: 0.6rem;
	margin: 0.6rem 0;
	font-weight: 400;
}

.sl-form input[type="checkbox"],
.sl-form input[type="radio"],
.sl-form-preview input[type="checkbox"],
.sl-form-preview input[type="radio"] {
	width: 1.1rem;
	min-width: 1.1rem;
	height: 1.1rem;
	min-height: 0;
	margin: 0.2rem 0 0;
	padding: 0;
	accent-color: #000;
	box-shadow: none;
}

.sl-form-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 3rem;
	padding: 0.7rem 1.5rem;
	border: 1px solid #000;
	border-radius: 0;
	background: #000;
	color: #fff;
	font: inherit;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.sl-form-submit:hover,
.sl-form-submit:focus {
	background: #2c2c2c;
	border-color: #2c2c2c;
	color: #fff;
	outline: 0;
	box-shadow: none;
}

.sl-form-submit:focus-visible {
	outline: 2px solid #000;
	outline-offset: 3px;
}

.sl-form-submit:disabled {
	cursor: default;
	opacity: 0.65;
}

.sl-form-msg {
	margin: 0.75rem 0 0;
}

.sl-form-msg.is-err {
	color: #7f1d1d;
}

.sl-form-msg.is-ok {
	font-weight: 700;
}

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

/* 訂閱列可加上 storyland-subscribe-newspaper class，啟用報紙版式。 */
.storyland-subscribe-newspaper {
	position: relative;
	padding: 2.5rem 0;
	border-top: 4px double #2c2c2c;
	border-bottom: 1px solid #2c2c2c;
	background: transparent !important;
}

.storyland-subscribe-newspaper .gspb_backgroundOverlay {
	display: none;
}

.storyland-subscribe-newspaper .gspb_row__content {
	align-items: center;
	gap: 3rem;
}

.storyland-subscribe-newspaper .gspb_heading {
	margin: 0 0 0.8rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid #2c2c2c;
	color: #2c2c2c;
	font-family: "Noto Serif TC", Georgia, serif;
	font-size: 2.35rem;
	font-weight: 700;
	line-height: 1.25;
}

.storyland-subscribe-newspaper .gspb_heading::before {
	display: block;
	margin-bottom: 0.45rem;
	color: #6d6961;
	content: "STORYLAND DISPATCH";
	font-family: Georgia, "Times New Roman", serif;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.storyland-subscribe-newspaper .gspb_text {
	color: #44403c;
	font-size: 1rem;
	line-height: 1.85;
}

.storyland-subscribe-newspaper .sl-form,
.storyland-subscribe-newspaper .ct-newsletter-subscribe-form {
	margin: 0;
}

.storyland-subscribe-newspaper .sl-form,
.storyland-subscribe-newspaper .ct-newsletter-subscribe-form-elements {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.65rem;
	align-items: stretch;
}

.storyland-subscribe-newspaper .sl-form-field {
	min-width: 0;
	margin: 0;
}

.storyland-subscribe-newspaper .sl-form-field > label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.storyland-subscribe-newspaper .sl-form input[type="email"],
.storyland-subscribe-newspaper .ct-newsletter-subscribe-form input[type="email"] {
	height: 3.25rem;
	min-height: 3.25rem;
	border: 1px solid #2c2c2c !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.storyland-subscribe-newspaper .sl-form-submit,
.storyland-subscribe-newspaper .ct-newsletter-subscribe-form button {
	height: 3.25rem;
	min-height: 3.25rem;
	padding-right: 1.7rem;
	padding-left: 1.7rem;
	border-radius: 0 !important;
	background: #000 !important;
	color: #fff !important;
	box-shadow: none !important;
}

.storyland-subscribe-newspaper .sl-form-msg,
.storyland-subscribe-newspaper .ct-newsletter-subscribe-message {
	grid-column: 1 / -1;
	margin-top: 0;
}

@media (max-width: 767px) {
	.storyland-subscribe-newspaper {
		padding: 1.75rem 0;
	}

	.storyland-subscribe-newspaper .gspb_row__content {
		gap: 1.75rem;
	}

	.storyland-subscribe-newspaper .gspb_heading {
		font-size: 1.8rem;
	}

	.storyland-subscribe-newspaper .sl-form,
	.storyland-subscribe-newspaper .ct-newsletter-subscribe-form-elements {
		grid-template-columns: 1fr;
	}

	.storyland-subscribe-newspaper .sl-form-submit,
	.storyland-subscribe-newspaper .ct-newsletter-subscribe-form button {
		width: 100%;
	}
}
