/* BossNetwork Forms — front-end styles
 * Designed to be neutral / professional on most themes. The submit button
 * uses --bosnet-primary which you can override site-wide via your theme:
 *   :root { --bosnet-primary: #f57e6c; --bosnet-primary-hover: #e86552; }
 */

.bosnet-form {
	--bosnet-primary: #f57e6c;
	--bosnet-primary-hover: #e86552;
	--bosnet-primary-text: #ffffff;
	--bosnet-text: #1f2937;
	--bosnet-muted: #6b7280;
	--bosnet-border: #d1d5db;
	--bosnet-border-focus: #6b7280;
	--bosnet-bg-soft: #f9fafb;
	--bosnet-success-bg: #ecfdf5;
	--bosnet-success-border: #10b981;
	--bosnet-error-bg: #fef2f2;
	--bosnet-error-border: #ef4444;
	--bosnet-radius: 6px;

	max-width: 720px;
	margin: 0 auto;
	color: var(--bosnet-text);
	font-size: 16px;
	line-height: 1.5;
}

.bosnet-form--profile {
	max-width: 860px;
}

.bosnet-honeypot {
	position: absolute !important;
	left: -10000px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Notices */
.bosnet-notice {
	border-left: 4px solid;
	padding: 12px 16px;
	margin: 0 0 18px;
	border-radius: 4px;
	font-size: 15px;
}
.bosnet-notice--error   { background: var(--bosnet-error-bg);   border-color: var(--bosnet-error-border); color: #991b1b; }
.bosnet-notice--success { background: var(--bosnet-success-bg); border-color: var(--bosnet-success-border); color: #065f46; }

/* Section heading on the profile form */
.bosnet-section-heading {
	margin: 0 0 24px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--bosnet-border);
	font-size: 22px;
	font-weight: 600;
}

/* Field block */
.bosnet-field {
	margin: 0 0 18px;
	display: flex;
	flex-direction: column;
}
.bosnet-field > label,
.bosnet-field__label {
	font-weight: 600;
	font-size: 14px;
	margin: 0 0 6px;
	color: var(--bosnet-text);
}

.bosnet-form--profile .bosnet-field {
	margin: 0 0 22px;
}

@media (min-width: 720px) {
	.bosnet-form--profile {
		display: flex;
		flex-wrap: wrap;
		gap: 0 20px;
	}
	.bosnet-form--profile > * {
		width: 100%;
	}
	.bosnet-form--profile .bosnet-field {
		width: 100%;
	}
	.bosnet-form--profile .bosnet-field--half {
		width: calc(50% - 10px);
	}
}

.bosnet-req {
	color: var(--bosnet-error-border);
	font-weight: 700;
}

.bosnet-hint {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--bosnet-muted);
}

.bosnet-field input[type="text"],
.bosnet-field input[type="email"],
.bosnet-field input[type="url"],
.bosnet-field input[type="tel"],
.bosnet-field input[type="password"],
.bosnet-field input[type="number"],
.bosnet-field select,
.bosnet-field textarea {
	width: 100%;
	font-size: 16px;
	line-height: 1.4;
	padding: 10px 12px;
	border: 1px solid var(--bosnet-border);
	border-radius: var(--bosnet-radius);
	background: #ffffff;
	color: var(--bosnet-text);
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bosnet-field input:focus,
.bosnet-field select:focus,
.bosnet-field textarea:focus {
	outline: 0;
	border-color: var(--bosnet-border-focus);
	box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}

.bosnet-field--row {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.bosnet-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 15px;
	cursor: pointer;
}
.bosnet-checkbox input {
	margin: 0;
}

.bosnet-field--checkbox > label {
	font-weight: 400;
	margin: 0;
}

.bosnet-forgot {
	font-size: 14px;
	color: var(--bosnet-muted);
	text-decoration: underline;
}
.bosnet-forgot:hover {
	color: var(--bosnet-text);
}

.bosnet-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px 16px;
	padding: 14px 16px;
	border: 1px solid var(--bosnet-border);
	border-radius: var(--bosnet-radius);
	background: var(--bosnet-bg-soft);
}

.bosnet-role-desc {
	margin: -8px 0 18px;
	padding: 12px 16px;
	background: var(--bosnet-bg-soft);
	border-left: 3px solid var(--bosnet-primary);
	border-radius: 4px;
	font-size: 15px;
}
.bosnet-role-desc p { margin: 0; }

/* Submit + buttons */
.bosnet-submit {
	margin: 28px 0 0;
	text-align: center;
}
.bosnet-button {
	display: inline-block;
	background: var(--bosnet-primary);
	color: var(--bosnet-primary-text);
	border: 0;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	padding: 12px 26px;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.05s ease;
	min-width: 180px;
}
.bosnet-button:hover,
.bosnet-button:focus {
	background: var(--bosnet-primary-hover);
	color: var(--bosnet-primary-text);
}
.bosnet-button:active {
	transform: translateY(1px);
}

.bosnet-link-btn {
	background: none;
	border: 0;
	padding: 0;
	color: var(--bosnet-primary-hover);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	margin-top: 6px;
}
.bosnet-link-btn:hover { text-decoration: underline; }

.bosnet-subnote {
	text-align: center;
	font-size: 12px;
	color: var(--bosnet-muted);
	margin-top: 8px;
}

/* Media (profile picture) */
.bosnet-media__preview {
	margin: 0 0 10px;
}
.bosnet-form .bosnet-media__preview img,
.bosnet-form--profile .bosnet-media__preview img {
	width: 160px !important;
	height: 160px !important;
	border-radius: 50% !important;
	border: 1px solid var(--bosnet-border);
	display: block;
	object-fit: cover !important;
}

/* In-form Cropper.js stage — sits between the file input and the hint. */
.bosnet-cropper-stage {
	position: relative;
	width: 100%;
	max-width: 480px;
	aspect-ratio: 1 / 1;
	margin: 12px 0;
	background: #1f2937;
	border-radius: var(--bosnet-radius);
	overflow: hidden;
}
.bosnet-cropper-stage img {
	display: block;
	max-width: 100%;
	height: auto;
}
.bosnet-cropper-stage .cropper-view-box,
.bosnet-cropper-stage .cropper-face {
	border-radius: 50%;
}
.bosnet-cropper-stage .cropper-view-box {
	box-shadow: 0 0 0 1px var(--bosnet-primary);
	outline: 0;
}
.bosnet-cropper-stage .cropper-line,
.bosnet-cropper-stage .cropper-point {
	background-color: var(--bosnet-primary);
}
.bosnet-cropper-stage .cropper-bg {
	background-image: none;
	background-color: rgba(0,0,0,0.6);
}
.bosnet-cropper-stage .cropper-modal {
	background-color: rgba(0,0,0,0.55);
	opacity: 1;
}
.bosnet-cropper-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	margin: 0 0 8px;
	background: var(--bosnet-success-bg);
	border: 1px solid var(--bosnet-success-border);
	color: #065f46;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
}
.bosnet-cropper-status svg { color: var(--bosnet-success-border); flex: 0 0 auto; }

/* Repeater */
.bosnet-repeater__row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 8px 12px;
	align-items: center;
	padding: 10px;
	border: 1px solid var(--bosnet-border);
	border-radius: var(--bosnet-radius);
	margin: 0 0 10px;
	background: var(--bosnet-bg-soft);
}
.bosnet-repeater__row input[type="text"] {
	width: 100%;
}
.bosnet-repeater__current {
	grid-column: 1 / -1;
	font-size: 13px;
	color: var(--bosnet-muted);
}
.bosnet-repeater__remove {
	grid-column: 1 / -1;
	font-size: 13px;
}
@media (max-width: 600px) {
	.bosnet-repeater__row { grid-template-columns: 1fr; }
}

/* Inline success state (after successful registration) */
.bosnet-success-card {
	max-width: 560px;
	margin: 24px auto;
	padding: 36px 28px;
	text-align: center;
	background: #ffffff;
	border: 1px solid var(--bosnet-border);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.bosnet-success-icon {
	color: var(--bosnet-success-border);
	margin-bottom: 12px;
}
.bosnet-success-heading {
	margin: 0 0 12px;
	font-size: 24px;
	font-weight: 600;
	color: var(--bosnet-text);
}
.bosnet-success-body {
	font-size: 16px;
	color: var(--bosnet-text);
	line-height: 1.55;
}
.bosnet-success-body p { margin: 0 0 12px; }
.bosnet-success-body p:last-child { margin-bottom: 0; }

/* TinyMCE / wp_editor on the front-end */
.bosnet-form .wp-editor-container {
	border-radius: var(--bosnet-radius);
	border: 1px solid var(--bosnet-border);
	overflow: hidden;
}
.bosnet-form .mce-toolbar-grp {
	background: var(--bosnet-bg-soft);
}
