/* DVN Feedback & AI Support - Public Styles */

/* Forms */
.dvn-form-wrapper {
	max-width: 520px;
	margin: 20px 0;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dvn-form-wrapper h3 {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 1.35rem;
	color: #1a1a1a;
}

.dvn-field {
	margin-bottom: 16px;
}

.dvn-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: #333;
}

.dvn-field input[type="text"],
.dvn-field input[type="email"],
.dvn-field input[type="tel"],
.dvn-field select,
.dvn-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 8px;
	font-size: 15px;
	transition: border-color 0.2s;
}

.dvn-field input:focus,
.dvn-field select:focus,
.dvn-field textarea:focus {
	border-color: #c9a227;
	outline: none;
	box-shadow: 0 0 0 3px rgba(201,162,39,0.15);
}

/* Star rating */
.dvn-star-rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 4px;
}

.dvn-star-rating input {
	display: none;
}

.dvn-star-rating label {
	font-size: 28px;
	color: #ddd;
	cursor: pointer;
	transition: color 0.15s;
}

.dvn-star-rating input:checked ~ label,
.dvn-star-rating label:hover,
.dvn-star-rating label:hover ~ label {
	color: #c9a227;
}

.dvn-submit-btn {
	background: linear-gradient(135deg, #c9a227, #a8841a);
	color: #fff;
	border: none;
	padding: 12px 28px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.15s;
}

.dvn-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(201,162,39,0.35);
}

.dvn-form-message {
	margin-top: 14px;
	padding: 12px;
	border-radius: 8px;
	font-size: 0.95rem;
}

.dvn-form-message.success {
	background: #e8f5e9;
	color: #2e7d32;
}

.dvn-form-message.error {
	background: #fdecea;
	color: #c62828;
}

.dvn-form-branding {
	margin-top: 18px;
	text-align: center;
	color: #888;
}

.dvn-form-branding a {
	color: #666;
	text-decoration: none;
}

.dvn-form-branding a:hover {
	text-decoration: underline;
}

/* Side Popup - position controlled by inline styles from Settings */
.dvn-reviews-popup {
	position: fixed;
	max-height: 420px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.18);
	z-index: 99998;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dvn-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	background: linear-gradient(135deg, #1a1a1a, #333);
	color: #fff;
}

.dvn-popup-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
}

.dvn-popup-body {
	padding: 12px 16px;
	overflow-y: auto;
	flex: 1;
}

.dvn-popup-review {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
}

.dvn-popup-review:last-child {
	border-bottom: none;
}

.dvn-popup-review .stars {
	color: #c9a227;
	font-size: 14px;
	margin-bottom: 4px;
}

.dvn-popup-review .name {
	font-weight: 600;
	font-size: 0.9rem;
}

.dvn-popup-review .content {
	font-size: 0.85rem;
	color: #555;
	margin-top: 4px;
	line-height: 1.4;
}

.dvn-popup-footer {
	padding: 12px 16px;
	border-top: 1px solid #eee;
	text-align: center;
}

.dvn-view-all-btn {
	background: #1a1a1a;
	color: #fff;
	border: none;
	padding: 8px 18px;
	border-radius: 6px;
	font-size: 13px;
	cursor: pointer;
	width: 100%;
	margin-bottom: 8px;
}

.dvn-view-all-btn:hover {
	background: #333;
}

.dvn-popup-branding {
	font-size: 11px;
	color: #999;
}

.dvn-popup-branding a {
	color: #888;
	text-decoration: none;
}

/* Toggle button */
.dvn-popup-toggle {
	position: fixed;
	z-index: 99997;
	background: linear-gradient(135deg, #c9a227, #a8841a);
	color: #fff;
	border: none;
	padding: 12px 20px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(201,162,39,0.4);
	transition: transform 0.2s;
	/* bottom, left/right controlled via inline styles from settings */
}

.dvn-popup-toggle:hover {
	transform: scale(1.05);
}

/* Modal */
.dvn-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dvn-modal-content {
	background: #fff;
	border-radius: 14px;
	width: 100%;
	max-width: 700px;
	max-height: 85vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.dvn-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	background: #1a1a1a;
	color: #fff;
}

.dvn-modal-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

.dvn-modal-body {
	padding: 20px;
	overflow-y: auto;
}

/* All reviews list */
.dvn-review-item {
	padding: 16px 0;
	border-bottom: 1px solid #eee;
}

.dvn-review-header {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
}

.dvn-stars {
	color: #c9a227;
}

.dvn-date {
	color: #888;
	font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 480px) {
	.dvn-reviews-popup {
		width: calc(100% - 32px);
		right: 16px !important;
		left: 16px !important;
	}
	.dvn-popup-toggle {
		right: 16px !important;
		left: auto !important;
	}
}
