.rbl-form-wrap,
.rbl-author-box {
	--rbl-ac: var(--wp--preset--color--primary, #B4532F);
	--rbl-ac-soft: var(--wp--preset--color--primary-accent, #F5E6DD);
	--rbl-ink: var(--wp--preset--color--main, #1C1B19);
	--rbl-mut: var(--wp--preset--color--secondary, #5D5850);
	--rbl-line: var(--wp--preset--color--border-light, #E8E2D6);
	--rbl-soft: var(--wp--preset--color--tertiary, #F2EDE4);
	--rbl-card: #FFFFFF;
}
.rbl-form-wrap { max-width: 760px; margin-inline: auto; scroll-margin-top: 24px; }
.rbl-form fieldset {
	border: 1px solid var(--rbl-line);
	border-radius: 18px;
	background: var(--rbl-card);
	padding: 28px 28px 24px;
	margin: 0 0 20px;
	box-shadow: 0 1px 2px rgba(20, 20, 19, .04);
}
.rbl-form legend {
	float: left; width: 100%;
	display: flex; align-items: center; gap: 10px;
	font-weight: 600; font-size: 1.1rem; color: var(--rbl-ink);
	padding: 0 0 16px; margin: 0 0 20px;
	border-bottom: 1px solid var(--rbl-line);
}
.rbl-form legend + * { clear: both; }
.rbl-form .rbl-num {
	display: inline-grid; place-items: center;
	width: 26px; height: 26px; border-radius: 50%;
	background: var(--rbl-ac-soft); color: var(--rbl-ac);
	font-size: .85rem; font-weight: 700;
}
.rbl-field { margin: 0 0 18px; }
.rbl-field:last-child { margin-bottom: 0; }
.rbl-field > label,
.rbl-label { display: block; font-weight: 600; font-size: .95rem; color: var(--rbl-ink); margin: 0 0 6px; }
.rbl-opt { font-weight: 400; color: var(--rbl-mut); }
.rbl-hint { font-size: .85rem; line-height: 1.5; color: var(--rbl-mut); margin: 6px 0 0; }
.rbl-center { text-align: center; }
.rbl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) {
	.rbl-two { grid-template-columns: 1fr; }
	.rbl-form fieldset { padding: 22px 18px 18px; }
}
.rbl-form input[type="text"],
.rbl-form input[type="email"],
.rbl-form input[type="url"],
.rbl-form select,
.rbl-form textarea {
	width: 100%; box-sizing: border-box;
	border: 1px solid #D6D2C4; border-radius: 10px;
	padding: 12px 14px; font: inherit; font-size: 1rem;
	background: #FFFFFF; color: var(--rbl-ink);
	transition: border-color .15s, box-shadow .15s;
}
.rbl-form textarea { resize: vertical; min-height: 84px; }
.rbl-form input:focus,
.rbl-form select:focus,
.rbl-form textarea:focus {
	outline: none; border-color: var(--rbl-ac);
	box-shadow: 0 0 0 3px rgba(180, 83, 47, .18);
}
.rbl-sum input { max-width: 120px; }
.rbl-switch {
	display: inline-flex; gap: 4px; padding: 4px;
	background: var(--rbl-soft); border-radius: 999px;
	border: 1px solid var(--rbl-line);
}
.rbl-switch label { position: relative; margin: 0; cursor: pointer; }
.rbl-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rbl-switch span {
	display: block; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
	font-size: .92rem; font-weight: 500; color: var(--rbl-mut);
	transition: background .15s, color .15s;
}
.rbl-switch input:checked + span { background: #FFFFFF; color: var(--rbl-ink); box-shadow: 0 1px 3px rgba(20, 20, 19, .12); }
.rbl-switch input:focus-visible + span { outline: 2px solid var(--rbl-ac); outline-offset: 2px; }
.rbl-drop {
	border: 1.5px dashed #CFC9B8; border-radius: 12px;
	background: var(--rbl-soft); padding: 16px;
	transition: border-color .15s, background .15s;
}
.rbl-drop:hover,
.rbl-drop:focus-within { border-color: var(--rbl-ac); background: #FBF4EF; }
.rbl-drop input[type="file"] {
	width: 100%; font: inherit; font-size: .92rem; color: var(--rbl-mut);
	border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important;
}
.rbl-drop input[type="file"]::file-selector-button {
	margin-right: 14px; padding: 9px 16px; border: 0; border-radius: 8px;
	background: var(--rbl-ac-soft); color: #7A3420; font: inherit; font-weight: 600; cursor: pointer;
}
.rbl-drop input[type="file"]::file-selector-button:hover { background: #EFD5C6; }
.rbl-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.5; }
.rbl-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--rbl-ac); flex: none; }
.rbl-check a { color: var(--rbl-ac); }
.rbl-submit {
	width: 100%; margin-top: 6px; padding: 16px 28px !important;
	font-size: 1.05rem !important; font-weight: 600; cursor: pointer;
	background: var(--rbl-ac) !important; color: #FFFFFF !important;
	border: 0; border-radius: 12px !important;
	transition: background .15s, transform .1s;
}
.rbl-submit:hover { background: #963F22 !important; }
.rbl-submit:active { transform: translateY(1px); }
.rbl-submit[disabled] { opacity: .75; cursor: progress; }
.rbl-errors {
	border: 1px solid #E7B9A6; background: #FBEDE6; color: #7A3420;
	border-radius: 14px; padding: 16px 20px; margin: 0 0 20px;
}
.rbl-errors:focus { outline: none; }
.rbl-errors ul { margin: 8px 0 0; padding-left: 20px; }
.rbl-errors p { margin: 0; }
.rbl-errors .rbl-hint { color: #7A3420; margin-top: 8px; }
.rbl-success {
	border: 1px solid var(--rbl-line); background: var(--rbl-card);
	border-radius: 18px; padding: 36px 32px;
}
.rbl-success h2 { margin: 14px 0 10px; font-size: 1.6rem; }
.rbl-success p { color: var(--rbl-mut); }
.rbl-success a { color: var(--rbl-ac); font-weight: 600; }
.rbl-success-mark {
	width: 48px; height: 48px; border-radius: 50%; background: var(--rbl-ac-soft); position: relative;
}
.rbl-success-mark::after {
	content: ""; position: absolute; left: 17px; top: 12px; width: 10px; height: 18px;
	border: solid var(--rbl-ac); border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.rbl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rbl-author-box {
	display: flex; gap: 18px; align-items: flex-start;
	margin: 48px 0 0; padding: 24px 26px;
	border: 1px solid var(--rbl-line); border-radius: 18px; background: var(--rbl-soft);
}
.rbl-author-avatar {
	flex: none; width: 52px; height: 52px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--rbl-ac); color: #FFFFFF; font-weight: 700; font-size: 1.3rem;
}
.rbl-author-body p { margin: 0; }
.rbl-author-label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--rbl-ac); font-weight: 600; }
.rbl-author-name { font-size: 1.15rem; font-weight: 700; color: var(--rbl-ink); margin-top: 2px !important; }
.rbl-author-bio { color: var(--rbl-mut); margin-top: 6px !important; line-height: 1.55; }
.rbl-author-links { margin-top: 10px !important; font-size: .95rem; }
.rbl-author-links a,
.rbl-author-cta a { color: var(--rbl-ac); font-weight: 600; }
.rbl-author-cta { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--rbl-line); font-size: .9rem; color: var(--rbl-mut); }
@media (max-width: 520px) {
	.rbl-author-box { flex-direction: column; padding: 20px; }
}
