@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* WDN Ultimate Forms Frontend Style */
:root {
	--wdn-forms-primary: #18181b;
	--wdn-forms-primary-foreground: #ffffff;
	--wdn-forms-background: #ffffff;
	--wdn-forms-foreground: #09090b;
	--wdn-forms-muted: #f4f4f5;
	--wdn-forms-muted-foreground: #71717a;
	--wdn-forms-border: #e4e4e7;
	--wdn-forms-input: #e4e4e7;
	--wdn-forms-ring: #18181b;
	--wdn-forms-destructive: #ef4444;
	--wdn-forms-success: #22c55e;
	--wdn-forms-radius: 8px;
	--wdn-forms-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wdn-form-wrapper {
	background: var(--wdn-forms-background);
	color: var(--wdn-forms-foreground);
	border: 1px solid var(--wdn-forms-border);
	border-radius: var(--wdn-forms-radius);
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	font-family: var(--wdn-forms-font);
	max-width: 650px;
	margin: 20px auto;
}

.wdn-form-wrapper h3 {
	margin: 0 0 8px 0;
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--wdn-forms-foreground);
}

.wdn-form-desc {
	margin: 0 0 20px 0;
	font-size: 14px;
	color: var(--wdn-forms-muted-foreground);
	line-height: 1.5;
}

.wdn-form-fields-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.wdn-form-field-wrap {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.wdn-form-field-wrap .wdn-label {
	font-size: 14px;
	font-weight: 500;
	color: var(--wdn-forms-foreground);
}

.wdn-form-field-wrap input.wdn-input,
.wdn-form-field-wrap textarea.wdn-textarea,
.wdn-form-field-wrap select.wdn-select {
	width: 100%;
	padding: 8px 12px;
	background: var(--wdn-forms-background);
	border: 1px solid var(--wdn-forms-input);
	border-radius: calc(var(--wdn-forms-radius) - 2px);
	font-size: 14px;
	color: var(--wdn-forms-foreground);
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wdn-form-field-wrap input.wdn-input:focus,
.wdn-form-field-wrap textarea.wdn-textarea:focus,
.wdn-form-field-wrap select.wdn-select:focus {
	border-color: var(--wdn-forms-ring);
	box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.1);
}

.wdn-form-field-wrap textarea.wdn-textarea {
	min-height: 100px;
	resize: vertical;
}

.wdn-form-field-wrap input[type="file"].wdn-input {
	padding: 6px;
	font-size: 13px;
	cursor: pointer;
}

.wdn-checkbox-list,
.wdn-radio-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 4px 0;
}

.wdn-checkbox-list label,
.wdn-radio-list label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--wdn-forms-foreground);
	cursor: pointer;
	user-select: none;
}

.wdn-checkbox-list input[type="checkbox"],
.wdn-radio-list input[type="radio"] {
	margin: 0;
	width: 16px;
	height: 16px;
	border: 1px solid var(--wdn-forms-input);
	border-radius: 4px;
	cursor: pointer;
}

.wdn-radio-list input[type="radio"] {
	border-radius: 50%;
}

.wdn-form-submit-wrap {
	margin-top: 10px;
}

.wdn-form-submit-wrap .wdn-submit-button {
	width: 100%;
	padding: 10px 16px;
	background: var(--wdn-forms-primary);
	color: var(--wdn-forms-primary-foreground);
	border: none;
	border-radius: var(--wdn-forms-radius);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color 0.15s ease, opacity 0.15s ease;
	display: inline-flex;
	justify-content: center;
	align-items: center;
}

.wdn-form-submit-wrap .wdn-submit-button:hover {
	background: #27272a;
}

.wdn-form-submit-wrap .wdn-submit-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wdn-form-feedback {
	margin-top: 15px;
	padding: 12px;
	border-radius: var(--wdn-forms-radius);
	font-size: 14px;
	display: none;
	line-height: 1.4;
}

.wdn-form-feedback.success {
	display: block;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.2);
	color: #15803d;
}

.wdn-form-feedback.error {
	display: block;
	background: rgba(239, 68, 68, 0.1);
	border: 1px solid rgba(239, 68, 68, 0.2);
	color: #b91c1c;
}
