/* Dev Stories "I'd Like to Be Featured" Modal Wizard Styles */

.ds-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	padding: 16px;
	box-sizing: border-box;
}

.ds-modal-overlay.active {
	opacity: 1;
	visibility: visible;
}

.ds-modal-card {
	background: var(--popup-bg);
	border-radius: 16px;
	width: 100%;
	max-width: 600px;
	max-height: min(90vh, 860px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
	transform: scale(0.95);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ds-modal-overlay.active .ds-modal-card {
	transform: scale(1);
}

.ds-modal-header {
	padding: 20px 24px 16px 24px;
	border-bottom: 1px solid rgba(155, 155, 155, 0.3);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
}



.ds-modal-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--body-deep, #0f172a);
}

.ds-modal-close-btn {
	background: none;
	border: none;
	color: var(--body-gray);
	font-size: 22px;
	cursor: pointer;
	padding: 4px 8px;
	line-height: 1;
	border-radius: 6px;
	transition: color 0.15s ease, background 0.15s ease;
}

.ds-modal-close-btn:hover {
	color: var(--body-deep);
	background: #f1f5f9;
}

#dsFeatureRequestForm {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
	overflow: hidden;
}

.ds-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 24px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: #cbd5e1 transparent;
}

body.dark-theme .ds-modal-body {
	scrollbar-color: #475569 transparent;
}

.ds-modal-body::-webkit-scrollbar {
	width: 6px;
}

.ds-modal-body::-webkit-scrollbar-track {
	background: transparent;
}

.ds-modal-body::-webkit-scrollbar-thumb {
	background: #cbd5e1;
	border-radius: 4px;
}

body.dark-theme .ds-modal-body::-webkit-scrollbar-thumb {
	background: #475569;
}

.ds-modal-body::-webkit-scrollbar-thumb:hover {
	background: #94a3b8;
}

body.dark-theme .ds-modal-body::-webkit-scrollbar-thumb:hover {
	background: #64748b;
}

/* Question Sections */
.ds-form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ds-form-label {
	font-size: 15px;
	font-weight: 700;
	color: var(--body-deep, #0f172a);
	margin: 0;
}

body.dark-theme .ds-form-label {
	color: #f1f5f9;
}

.ds-form-sublabel {
	font-size: 12px;
	color: var(--body-gray, #64748b);
	font-style: italic;
	margin: 0 0 4px 0;
}

body.dark-theme .ds-form-sublabel {
	color: #94a3b8;
}

.ds-options-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ds-option-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	cursor: pointer;
	font-size: 14px;
	color: #334155;
	line-height: 1.4;
	user-select: none;
}

body.dark-theme .ds-option-item {
	color: #cbd5e1;
}

.ds-option-item input[type="radio"],
.ds-option-item input[type="checkbox"] {
	margin-top: 3px;
	accent-color: #6366f1;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.ds-star-icon {
	color: #f59e0b;
	margin-left: 4px;
	font-size: 14px;
}

.ds-pro-footnote {
	font-size: 12px;
	color: #d97706;
	margin: 4px 0 0 0;
	display: flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
}

body.dark-theme .ds-pro-footnote {
	color: #f59e0b;
}

/* User inputs row */
.ds-inputs-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

@media (max-width: 500px) {
	.ds-inputs-grid {
		grid-template-columns: 1fr;
	}
}

.ds-text-input {
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 14px;
	color: var(--body-deep, #0f172a);
	outline: none;
	width: 100%;
	box-sizing: border-box;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.ds-text-input:focus {
	border-color: #6366f1;
	background: #ffffff;
}

body.dark-theme .ds-text-input {
	background: #0f172a;
	border-color: #334155;
	color: #ffffff;
}

body.dark-theme .ds-text-input:focus {
	background: #0f172a;
	border-color: #6366f1;
}

/* Pro Upsell Box */
.ds-pro-upsell-box {
	background: rgba(245, 158, 11, 0.08);
	border: 1px solid rgba(245, 158, 11, 0.35);
	border-radius: 12px;
	padding: 16px;
	display: none;
	flex-direction: column;
	gap: 10px;
	animation: dsFadeIn 0.2s ease;
}

body.dark-theme .ds-pro-upsell-box {
	background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.05) 100%);
	border-color: rgba(245, 158, 11, 0.35);
}

.ds-pro-upsell-box.visible {
	display: flex;
}

@keyframes dsFadeIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.ds-pro-upsell-title {
	font-size: 14px;
	font-weight: 700;
	color: #b45309;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

body.dark-theme .ds-pro-upsell-title {
	color: #fbbf24;
}

.ds-pro-upsell-desc {
	font-size: 13px;
	color: #4b5563;
	margin: 0;
	line-height: 1.4;
}

body.dark-theme .ds-pro-upsell-desc {
	color: #e2e8f0;
}

.ds-pro-actions {
	display: flex;
	gap: 10px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.ds-pro-btn-upgrade {
	background: #f59e0b;
	color: #000000;
	font-size: 13px;
	font-weight: 700;
	padding: 7px 14px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

.ds-pro-btn-upgrade:hover {
	background: #fbbf24;
}

.ds-pro-btn-skip {
	background: transparent;
	border: 1px solid #cbd5e1;
	color: #475569;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 14px;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.ds-pro-btn-skip:hover {
	background: #f1f5f9;
	border-color: #94a3b8;
}

body.dark-theme .ds-pro-btn-skip {
	border-color: #475569;
	color: #cbd5e1;
}

body.dark-theme .ds-pro-btn-skip:hover {
	background: rgba(255, 255, 255, 0.05);
	border-color: #94a3b8;
}

.ds-pro-active-notice {
	background: rgba(16, 185, 129, 0.08);
	border: 1px solid rgba(16, 185, 129, 0.3);
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 13px;
	color: #047857;
	display: none;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

body.dark-theme .ds-pro-active-notice {
	background: rgba(16, 185, 129, 0.12);
	color: #6ee7b7;
}

.ds-pro-active-notice.visible {
	display: flex;
}

/* Modal Footer */
.ds-modal-footer {
	padding: 16px 24px 20px 24px;
	border-top: 1px solid rgba(155, 155, 155, 0.3);
	display: flex;
	justify-content: flex-end;
	flex-shrink: 0;
}

.ds-submit-btn {
	background: var(--primary-button-bg);
	color: var(--on-primary-btn);
	font-size: 14px;
	font-weight: 500;
	padding: 12px 24px;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ds-submit-btn:disabled,
.ds-submit-btn.ds-btn-disabled {
	background: #777a7e;
	color: #d1d2d5;
	cursor: not-allowed;
	opacity: 0.8;
}

/* Success Card */
.ds-success-screen {
	text-align: center;
	padding: 36px 20px;
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	overflow-y: auto;
	flex: 1 1 auto;
	min-height: 0;
}

.ds-success-screen.visible {
	display: flex;
}

.ds-success-icon {
	font-size: 48px;
	line-height: 1;
}

.ds-success-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--body-deep, #0f172a);
	margin: 0;
}

body.dark-theme .ds-success-title {
	color: #f8fafc;
}

.ds-success-desc {
	font-size: 14px;
	color: var(--body-gray, #475569);
	max-width: 440px;
	margin: 0;
	line-height: 1.5;
}

body.dark-theme .ds-success-desc {
	color: #94a3b8;
}