/* Bradati Guru — Raskid Ugovora — Frontend */

.bgru-form-wrap {
	--bgru-color: #1a1a2e;
	--bgru-radius: 8px;
	max-width: 680px;
	margin: 0 auto;
	padding: 0 16px;
	font-size: 16px;
	line-height: 1.5;
}

/* Intro */
.bgru-form-title { font-size: 1.6em; margin: 0 0 .4em; }
.bgru-form-intro { margin-bottom: 24px; }
.bgru-form-intro p { margin: 0 0 .6em; color: #444; }

/* Notices */
.bgru-notice {
	padding: 14px 18px;
	border-radius: var(--bgru-radius);
	margin-bottom: 24px;
	font-size: .95em;
}
.bgru-notice--info    { background: #e9f3ff; border-left: 4px solid var(--bgru-color); }
.bgru-notice--error   { background: #fde8e8; border-left: 4px solid #d63638; color: #7a1a1a; }

/* Steps */
.bgru-step {
	background: #fff;
	border: 1px solid #e2e2e2;
	border-radius: var(--bgru-radius);
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.bgru-step__title {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 1.05em;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 14px;
	border-bottom: 1px solid #f0f0f0;
}

.bgru-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bgru-color);
	color: #fff;
	font-size: .85em;
	font-weight: 700;
	flex-shrink: 0;
}

/* Fields */
.bgru-field { margin-bottom: 20px; }
.bgru-field:last-child { margin-bottom: 0; }

.bgru-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: .95em;
	color: #222;
}

.bgru-required { color: #d63638; margin-left: 2px; }

.bgru-input {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #ccc;
	border-radius: 5px;
	font-size: 1em;
	background: #fff;
	color: #222;
	transition: border-color .18s, box-shadow .18s;
	box-sizing: border-box;
}

.bgru-input:focus {
	outline: none;
	border-color: var(--bgru-color);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--bgru-color) 15%, transparent);
}

.bgru-input.bgru-input--error {
	border-color: #d63638;
	box-shadow: 0 0 0 3px rgba(214,54,56,.1);
}

.bgru-textarea { resize: vertical; min-height: 110px; }

.bgru-help {
	font-size: .83em;
	color: #666;
	margin: 5px 0 0;
}

.bgru-char-count { margin-top: 4px; }

.bgru-error {
	display: block;
	color: #d63638;
	font-size: .83em;
	margin-top: 4px;
	min-height: 18px;
}

/* Checkbox */
.bgru-field--checkbox { margin-bottom: 16px; }
.bgru-checkbox-label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
	font-size: .95em;
}
.bgru-checkbox-label input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	cursor: pointer;
	accent-color: var(--bgru-color);
}

/* Submit */
.bgru-submit-wrap { margin-top: 24px; text-align: center; }

.bgru-submit-btn {
	display: inline-block;
	padding: 14px 32px;
	border: none;
	border-radius: 6px;
	color: #fff !important;
	font-size: 1.05em;
	font-weight: 700;
	cursor: pointer;
	transition: opacity .18s, transform .1s;
	width: 100%;
	max-width: 380px;
	letter-spacing: .3px;
}
.bgru-submit-btn:hover   { opacity: .88; }
.bgru-submit-btn:active  { transform: scale(.98); }
.bgru-submit-btn:disabled { opacity: .55; cursor: not-allowed; }
.bgru-submit-help { font-size: .83em; color: #666; margin-top: 10px; }

/* Success */
.bgru-success {
	text-align: center;
	padding: 40px 24px;
	background: #f0fff6;
	border: 1px solid #7de8a4;
	border-radius: var(--bgru-radius);
}
.bgru-success__icon  { font-size: 3em; margin-bottom: 12px; }
.bgru-success__title { font-size: 1.4em; color: #0a6630; margin-bottom: 12px; }
.bgru-success__msg   { color: #2a4a35; margin-bottom: 16px; }
.bgru-success__info {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 14px 18px;
	margin: 16px 0;
	text-align: left;
	font-size: .9em;
}

/* Buttons */
.bgru-btn-wrap { margin: 16px 0; }

.bgru-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	background: var(--bgru-color, #1a1a2e);
	color: #fff !important;
	text-decoration: none !important;
	border-radius: 5px;
	font-weight: 600;
	font-size: .95em;
	transition: opacity .18s;
}
.bgru-btn:hover  { opacity: .85; color: #fff !important; }

.bgru-btn--link {
	background: transparent;
	color: var(--bgru-color, #1a1a2e) !important;
	padding: 0;
	font-weight: normal;
	text-decoration: underline !important;
}

.bgru-btn--footer {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 9999;
	box-shadow: 0 4px 16px rgba(0,0,0,.22);
	border-radius: 50px;
}

/* Thank-you notice */
.bgru-thankyou-notice {
	background: #f8f9fa;
	border: 1px solid #e0e0e0;
	border-left: 4px solid var(--bgru-color, #1a1a2e);
	padding: 16px 20px;
	margin: 20px 0;
	border-radius: 4px;
	font-size: .95em;
}

@media (max-width: 480px) {
	.bgru-step { padding: 16px; }
	.bgru-btn--footer { bottom: 12px; right: 12px; font-size: .88em; padding: 8px 16px; }
	.bgru-submit-btn { max-width: 100%; }
}
