/**
 * Frontend Styles — Optimized
 */

/* Container */
.wpp-pc-frontend-container {
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
	background: #ffffff;
	border: 1px solid #e1e1e1;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
}

/* Toggle Title */
.wpp-pc-title {
	font-size: 1.1em;
	font-weight: 600;
	color: #333;
	margin: 0;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	-webkit-user-select: none;
	user-select: none;
}

/* Toggle icon SVGs */
.wpp-pc-toggle-icon {
	flex-shrink: 0;
	color: #666;
	transition: transform 0.3s ease;
}

/* Fields container — animated via jQuery slideToggle */
.wpp-pc-fields {
	padding-top: 15px;
	will-change: height;
}

/* Form rows */
.wpp-pc-field-row {
	margin-bottom: 15px;
}

.wpp-pc-field-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	color: #555;
}

.wpp-pc-field-row .required {
	color: #e2401c;
	text-decoration: none;
	border: 0;
}

/* Inputs */
.wpp-pc-field-row input.input-text {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background-color: #fafafa;
	box-sizing: border-box;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

.wpp-pc-field-row input.input-text:focus {
	border-color: #999;
	outline: none;
	background-color: #fff;
}

/* Validation error state — applied via JS class toggle, not inline .css() */
.wpp-pc-field-row input.wpp-pc-input-error {
	border-color: #e2401c;
	background-color: #fff5f5;
}

/* Inline error notice — replaces blocking alert() */
.wpp-pc-error-notice {
	margin: 0 0 15px;
	padding: 10px 14px;
	background-color: #fef1f1;
	border-left: 4px solid #e2401c;
	color: #c00;
	border-radius: 4px;
	font-size: 0.9em;
}
