/* ================================================
   Butar Consultancy - Feedback Form
   ================================================ */

/* Root Variables */
:root {
	--primary-color: #17a2b8;
	--primary-dark: #0aa1b6;
	--primary-light: #5eb3ca;
	--accent-color: #28a745;
	--danger-color: #ff6b6b;
	--text-dark: #1a1a1a;
	--text-light: #666;
	--border-color: #e8e8e8;
	--bg-light: #f8f9fa;
	--bg-white: #ffffff;
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
	--shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================
   Feedback Section
   ======================== */

.bbc-feedback-section {
	padding: 80px 0;
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	position: relative;
	overflow: hidden;
}

.bbc-feedback-section::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(40, 167, 69, 0.08) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.bbc-feedback-section::after {
	content: '';
	position: absolute;
	bottom: -30%;
	left: -10%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(23, 162, 184, 0.06) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

/* ========================
   Feedback Container
   ======================== */

.bbc-feedback-container {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	z-index: 2;
}

/* ========================
   Form Styling
   ======================== */

.bbc-form-wrapper {
	background: var(--bg-white);
	padding: 45px;
	border-radius: 12px;
	box-shadow: var(--shadow-lg);
	animation: slideInUp 0.6s ease-out 0.1s both;
	max-width: 600px;
	width: 100%;
}

.bbc-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.bbc-form-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}

.bbc-form-label {
	font-size: 16px;
	font-weight: 400;
	color: var(--text-dark);
	margin-bottom: 10px;
	text-transform: capitalize;
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
}

.bbc-required {
	color: var(--danger-color);
	font-weight: bold;
	margin-left: 2px;
}

.bbc-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.bbc-input-icon {
	position: absolute;
	left: 15px;
	font-size: 18px;
	color: var(--primary-color);
	pointer-events: none;
	transition: var(--transition);
}

.bbc-form-input,
.bbc-form-textarea {
	width: 100%;
	padding: 13px 15px 13px 45px;
	border: 2px solid var(--border-color);
	border-radius: 8px;
	font-size: 15px;
	transition: var(--transition);
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
	background: var(--bg-white);
	color: var(--text-dark);
}

.bbc-form-input::placeholder,
.bbc-form-textarea::placeholder {
	color: #aaa;
}

.bbc-form-input:focus,
.bbc-form-textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	background: rgba(23, 162, 184, 0.02);
	box-shadow: 0 0 0 4px rgba(23, 162, 184, 0.1);
}

.bbc-form-input:focus ~ .bbc-input-icon {
	color: var(--primary-dark);
	transform: scale(1.2);
}

.bbc-form-input.bbc-input-error,
.bbc-form-textarea.bbc-input-error {
	border-color: var(--danger-color);
	background: rgba(255, 107, 107, 0.03);
}

.bbc-form-textarea {
	resize: vertical;
	min-height: 140px;
	padding-top: 13px;
}

/* Error Messages */
.bbc-error-message {
	display: none;
	font-size: 12px;
	color: var(--danger-color);
	margin-top: 6px;
	font-weight: 500;
	animation: shake 0.3s ease-out;
}

.bbc-error-message.active {
	display: block;
}

/* Character Count */
.bbc-character-count {
	font-size: 12px;
	color: #999;
	text-align: right;
	margin-top: 6px;
	font-weight: 500;
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
}

.bbc-character-count.warning {
	color: #ff9800;
}

.bbc-character-count.danger {
	color: var(--danger-color);
}

/* ========================
   Image Upload
   ======================== */

.bbc-image-upload-wrapper {
	position: relative;
}

.bbc-image-input {
	display: none;
}

.bbc-upload-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px;
	border: 2px dashed var(--border-color);
	border-radius: 8px;
	cursor: pointer;
	transition: var(--transition);
	background: var(--bg-light);
	text-align: center;
}

.bbc-upload-box:hover {
	border-color: var(--primary-color);
	background: rgba(23, 162, 184, 0.05);
}

.bbc-upload-box.dragover {
	border-color: var(--primary-color);
	background: rgba(23, 162, 184, 0.1);
	transform: scale(1.02);
}

.bbc-upload-icon {
	font-size: 40px;
	color: var(--primary-color);
	margin-bottom: 10px;
}

.bbc-upload-text {
	font-size: 15px;
	font-weight: 600;
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
	color: var(--text-dark);
	margin: 0;
}

.bbc-upload-hint {
	font-size: 12px;
	color: var(--text-light);
	margin: 5px 0 0 0;
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
}

/* Image Preview */
.bbc-image-preview-wrapper {
	margin-top: 20px;
	animation: slideInUp 0.4s ease-out;
}

.bbc-preview-container {
	position: relative;
	display: inline-block;
	width: 120px;
	height: 120px;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow-md);
	border: 2px solid var(--primary-color);
}

.bbc-image-preview {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bbc-preview-remove {
	position: absolute;
	top: -10px;
	right: -10px;
	width: 30px;
	height: 30px;
	background: var(--danger-color);
	color: white;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	transition: var(--transition);
	box-shadow: var(--shadow-md);
}

.bbc-preview-remove:hover {
	background: #e63946;
	transform: scale(1.1);
}

/* ========================
   Captcha Section
   ======================== */

.bbc-captcha-group {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 2px solid var(--border-color);
}

.bbc-captcha-label {
	font-size: 15px;
	font-weight: 400;
	color: var(--text-dark);
	margin-bottom: 12px;
	display: block;
	text-transform: capitalize;
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
}

.bbc-captcha-container {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bbc-captcha-display {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 20px;
	background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
	border-radius: 8px;
	color: white;
	font-size: 28px;
	font-weight: bold;
	letter-spacing: 6px;
	min-height: 55px;
	user-select: none;
	font-family: 'Courier New', monospace;
	box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.bbc-captcha-code {
	flex: 1;
	text-align: center;
}

.bbc-captcha-refresh {
	background: rgba(255, 255, 255, 0.25);
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: white;
	padding: 8px 12px;
	border-radius: 6px;
	cursor: pointer;
	transition: var(--transition);
	font-size: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
}

.bbc-captcha-refresh:hover {
	background: rgba(255, 255, 255, 0.4);
	border-color: rgba(255, 255, 255, 0.6);
	transform: rotate(-180deg);
}

/* Submit Button */
.bbc-submit-btn {
	width: 100%;
	padding: 14px 30px;
	margin-top: 25px;
	background: linear-gradient(135deg, #11b9e4 0%, #0da1b7 100%);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: var(--transition);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: "Roboto", sans-serif;
	letter-spacing: 1px;
	gap: 10px;
	text-transform: capitalize;
	box-shadow: 0 4px 12px rgb(20 162 184 / 7%);
}

.bbc-submit-btn:hover:not(:disabled) {
	background: linear-gradient(135deg, #11b9e4 0%, #0da1b7 100%);
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.bbc-submit-btn:active:not(:disabled) {
	transform: translateY(-1px);
}

.bbc-submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Form Message */
.bbc-form-message {
	display: none;
	margin-top: 15px;
	padding: 14px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	animation: slideInUp 0.4s ease-out;
}

.bbc-form-message.bbc-success {
	display: block;
	background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
	color: #155724;
	border: 1px solid #c3e6cb;
}

.bbc-form-message.bbc-error {
	display: block;
	background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
	color: #721c24;
	border: 1px solid #f5c6cb;
}



/* ========================
   Animations
   ======================== */

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(-5px); }
	75% { transform: translateX(5px); }
}

/* ========================
   Responsive Design
   ======================== */

@media (max-width: 1024px) {
	.bbc-form-wrapper {
		padding: 35px;
	}

	.bbc-form-row {
		grid-template-columns: 1fr;
		gap: 15px;
	}
}

@media (max-width: 768px) {
	.bbc-feedback-section {
		padding: 50px 0;
	}

	.bbc-form-wrapper {
		padding: 30px 20px;
	}

	.bbc-form-input,
	.bbc-form-textarea {
		padding: 12px 12px 12px 40px;
		font-size: 15px;
	}

	.bbc-upload-box {
		padding: 30px 20px;
	}



	.bbc-submit-btn {
		padding: 12px 25px;
		font-size: 15px;
	}

	.bbc-captcha-display {
		font-size: 24px;
		letter-spacing: 4px;
		min-height: 50px;
	}


}

@media (max-width: 480px) {
	.bbc-feedback-section {
		padding: 30px 0;
	}

	.bbc-form-wrapper {
		padding: 20px 15px;
	}

	.bbc-form-row {
		grid-template-columns: 1fr;
		gap: 12px;
		margin-bottom: 15px;
	}

	.bbc-form-group {
		margin-bottom: 15px;
	}

	.bbc-form-input,
	.bbc-form-textarea {
		padding: 11px 11px 11px 38px;
		font-size: 14px;
	}

	.bbc-input-icon {
		left: 12px;
		font-size: 16px;
	}

	.bbc-upload-box {
		padding: 20px 15px;
	}

	.bbc-preview-container {
		width: 100px;
		height: 100px;
	}

	.bbc-error-message {
		font-size: 11px;
		margin-top: 4px;
	}

	.bbc-character-count {
		font-size: 11px;
	}

	.bbc-captcha-display {
		font-size: 22px;
		letter-spacing: 3px;
		padding: 12px 15px;
		min-height: 45px;
	}

	.bbc-captcha-refresh {
		width: 35px;
		height: 35px;
		font-size: 16px;
	}

	.bbc-submit-btn {
		padding: 11px 20px;
		font-size: 14px;
		gap: 8px;
		margin-top: 20px;
	}


}

/* ========================
   Print Styles
   ======================== */

@media print {
	.bbc-submit-btn,
	.bbc-captcha-refresh,
	.bbc-preview-remove {
		display: none;
	}
}
