/* assets/gbp-review.css */

#gbp-review-container {
	max-width: 600px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gbp-step {
	display: none;
}

.gbp-step.active {
	display: block;
}

.gbp-form-wrapper {
	background: #ffffff;
	border-radius: 16px;
	padding: 40px 30px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	text-align: center;
	position: relative;
}

/* Logo */
.gbp-logo {
	margin-bottom: 30px;
}

.gbp-logo img {
	max-width: 120px;
	height: auto;
}

/* Typography */
.gbp-question {
	font-size: 24px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 20px 0 10px 0;
	line-height: 1.3;
}

.gbp-subtitle {
	font-size: 16px;
	color: #666;
	margin: 0 0 30px 0;
	line-height: 1.4;
}

/* Back Button */
.gbp-back-button {
	position: absolute;
	top: 20px;
	left: 20px;
}

.gbp-back-button button {
	background: none;
	border: none;
	color: #666;
	font-size: 16px;
	cursor: pointer;
	padding: 5px;
}

.gbp-back-button button:hover {
	color: #333;
}

/* Star Rating */
.gbp-star-rating {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 15px;
}

.gbp-star {
	font-size: 40px;
	cursor: pointer;
	transition: transform 0.2s ease;
	filter: grayscale(1);
}

.gbp-star:hover,
.gbp-star.selected {
	transform: scale(1.1);
	filter: grayscale(0);
}

.gbp-star-labels {
	display: flex;
	justify-content: space-between;
	font-size: 12px;
	color: #999;
	padding: 0 20px;
}

/* Emoji Rating */
.gbp-emoji-rating {
	display: flex;
	justify-content: space-between;
	gap: 15px;
	margin: 0 auto;
	max-width: 400px;
}

.gbp-emoji-option {
	flex: 1;
	cursor: pointer;
	padding: 20px 10px;
	border-radius: 12px;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.gbp-emoji-option:hover {
	background: #e3f2fd;
	transform: translateY(-2px);
}

.gbp-emoji-option.selected {
	background: #2196f3;
	color: white;
}

.gbp-emoji {
	font-size: 48px;
	margin-bottom: 10px;
}

.gbp-emoji-label {
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.gbp-emoji-option.selected .gbp-emoji-label {
	color: white;
}

/* Form Elements */
.gbp-form-group {
	margin-bottom: 20px;
	text-align: left;
	position: relative;
}

.gbp-form-group label {
	display: block;
	font-weight: 500;
	color: #333;
	margin-bottom: 8px;
	font-size: 14px;
}

.gbp-form-group input,
.gbp-form-group select,
.gbp-form-group textarea {
	width: 100%;
	padding: 12px 16px;
	border: 2px solid #e1e5e9;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s ease;
	box-sizing: border-box;
}

.gbp-form-group input:focus,
.gbp-form-group select:focus,
.gbp-form-group textarea:focus {
	outline: none;
	border-color: #2196f3;
}

.gbp-required {
	color: #f44336;
	font-weight: bold;
	position: absolute;
	right: 0;
	top: 0;
	display: none;
}

.gbp-required.show {
	display: inline;
}

/* Buttons */
.gbp-btn {
	padding: 14px 32px;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.gbp-btn-primary {
	background: #2196f3;
	color: white;
	width: 100%;
	justify-content: center;
}

.gbp-btn-primary:hover {
	background: #1976d2;
	transform: translateY(-1px);
}

/* Sad Emoji for bad experience */
.gbp-sad-emoji {
	font-size: 64px;
	margin-bottom: 20px;
}

/* Generated Review Display */
.gbp-generated-review {
	background: #e8f5e8;
	border: 2px solid #4caf50;
	border-radius: 12px;
	padding: 20px;
	margin: 20px 0;
	text-align: left;
	font-size: 16px;
	line-height: 1.5;
	min-height: 100px;
	cursor: text;
}

.gbp-generated-review:focus {
	outline: none;
	background: #f1f8e9;
}

/* Copy icon */
.gbp-copy-icon {
	font-size: 18px;
}

/* Google Link */
.gbp-google-link {
	margin-top: 20px;
}

.gbp-small-link {
	font-size: 14px;
	color: #666;
	text-decoration: none;
}

.gbp-small-link:hover {
	color: #2196f3;
	text-decoration: underline;
}

/* Success State */
.gbp-success-icon {
	font-size: 64px;
	margin-bottom: 20px;
}

/* Loading State */
.gbp-loading {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
}

.gbp-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #2196f3;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* reCAPTCHA */
.gbp-captcha {
	margin: 20px 0;
	display: flex;
	justify-content: center;
}

/* Responsive Design */
@media (max-width: 480px) {
	.gbp-form-wrapper {
		padding: 30px 20px;
		margin: 0 15px;
	}
	
	.gbp-question {
		font-size: 20px;
	}
	
	.gbp-emoji-rating {
		gap: 8px;
	}
	
	.gbp-emoji {
		font-size: 36px;
	}
	
	.gbp-emoji-option {
		padding: 15px 5px;
	}
	
	.gbp-star {
		font-size: 32px;
	}
}

/* Error States */
.gbp-form-group.error input,
.gbp-form-group.error select,
.gbp-form-group.error textarea {
	border-color: #f44336;
}

.gbp-error-message {
	color: #f44336;
	font-size: 14px;
	margin-top: 5px;
	display: none;
}

.gbp-error-message.show {
	display: block;
}

/* Animation for step transitions */
.gbp-step {
	animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}