/* Safety Week forms — minimalistic, theme-friendly */

.swr-form {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 4%;
	max-width: 640px;
	margin: 0 auto;
}

.swr-field {
	flex: 1 1 100%;
	margin: 0;
}

.swr-field-half {
	flex: 1 1 48%;
	min-width: 220px;
}

/* Hidden place-branch wrappers (domestic vs abroad) must not take up space. */
.swr-field[hidden] {
	display: none;
}

.swr-field label {
	display: block;
	font-weight: 600;
	font-size: 0.95rem;
	line-height: 1.4;
}

.swr-field input[type="text"],
.swr-field input[type="email"],
.swr-field input[type="number"],
.swr-field select,
.swr-field textarea {
	display: block;
	width: 100%;
	margin-top: 0.35rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid #bebebe;
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	background: #fff;
	color: #21220f;
	box-sizing: border-box;
}

.swr-field input:focus,
.swr-field select:focus,
.swr-field textarea:focus {
	outline: 2px solid #466496;
	outline-offset: 1px;
	border-color: #466496;
}

.swr-field select:disabled {
	background: #f5f5f0;
	color: #bebebe;
}

.swr-field input[type="file"] {
	margin-top: 0.35rem;
	font-weight: 400;
}

.swr-invalid {
	border-color: #fa4155 !important;
}

.swr-req {
	color: #d61f34;
}

.swr-field-error {
	margin: 0.3rem 0 0;
	color: #d61f34;
	font-size: 0.85rem;
}

.swr-hint {
	margin: 0.3rem 0 0;
	color: #5a5b4d;
	font-size: 0.85rem;
}

.swr-consent label {
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.9rem;
}

.swr-consent input {
	margin-top: 0.25rem;
	flex: none;
}

.swr-photos {
	margin-top: 0.6rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* An author display value overrides the [hidden] attribute, so restore it. */
.swr-photos[hidden] {
	display: none;
}

.swr-photo-chip {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	width: 110px;
}

.swr-photo-chip img {
	width: 110px;
	height: 82px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #bebebe;
	background: #f5f5f0;
}

.swr-photo-remove {
	position: absolute;
	top: -8px;
	right: -8px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: #d61f34;
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(33, 34, 15, 0.35);
}

.swr-photo-remove:hover {
	background: #fa4155;
}

.swr-photo-size {
	color: #5a5b4d;
	font-size: 0.78rem;
}

/* honeypot — visually removed but present for bots */
.swr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.swr-submit {
	flex: 1 1 100%;
	padding: 0.7rem 1.5rem;
	border: 0;
	border-radius: 8px;
	background: #053264;
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.swr-submit:hover:not(:disabled) {
	background: #466496;
}

.swr-submit:disabled {
	opacity: 0.6;
	cursor: wait;
}

.swr-status {
	flex: 1 1 100%;
	margin: 0;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	font-size: 0.95rem;
}

.swr-status-success {
	background: #d7ffaf;
	color: #21220f;
}

.swr-status-error {
	background: #ffd2d7;
	color: #21220f;
}

.swr-status-pending {
	background: #bef0fa;
	color: #053264;
}
