.sap-widget {
	--sap-primary: #c9184a;
	--sap-primary-dark: #a1123a;
	--sap-bg: #fff8f9;
	--sap-border: #eadfe1;
	--sap-text: #2b2226;
	--sap-muted: #7a6a6d;
	max-width: 480px;
	margin: 0 auto;
	background: var(--sap-bg);
	border: 1px solid var(--sap-border);
	border-radius: 16px;
	padding: 28px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--sap-text);
	box-sizing: border-box;
}
.sap-widget * { box-sizing: border-box; }

.sap-heading {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
}
.sap-subheading {
	margin: 0 0 20px;
	color: var(--sap-muted);
	font-size: 14px;
}

.sap-upload-area {
	position: relative;
	border: 2px dashed var(--sap-border);
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	margin-bottom: 18px;
	background: #fff;
}
.sap-upload-area input[type="file"] {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
	width: 100%;
	height: 100%;
}
.sap-upload-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	color: var(--sap-muted);
	font-size: 14px;
	pointer-events: none;
}
.sap-upload-icon { font-size: 28px; }
.sap-preview {
	margin-top: 12px;
	max-width: 100%;
	max-height: 220px;
	border-radius: 10px;
	object-fit: cover;
}

.sap-field { margin-bottom: 14px; }
.sap-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}
.sap-field input[type="text"],
.sap-field input[type="email"],
.sap-field input[type="tel"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--sap-border);
	border-radius: 8px;
	font-size: 14px;
}
.sap-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
	font-size: 13px;
	color: var(--sap-muted);
}
.sap-consent input { margin-top: 3px; }

.sap-submit-btn {
	width: 100%;
	padding: 13px;
	background: var(--sap-primary);
	color: #fff;
	border: none;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s ease;
}
.sap-submit-btn:hover { background: var(--sap-primary-dark); }
.sap-submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.sap-error {
	margin-top: 12px;
	padding: 10px 12px;
	background: #fdeaea;
	border: 1px solid #f3c1c1;
	color: #a1123a;
	border-radius: 8px;
	font-size: 13px;
}

.sap-loading {
	text-align: center;
	padding: 40px 0;
}
.sap-spinner {
	width: 36px;
	height: 36px;
	border: 4px solid var(--sap-border);
	border-top-color: var(--sap-primary);
	border-radius: 50%;
	margin: 0 auto 12px;
	animation: sap-spin 0.8s linear infinite;
}
@keyframes sap-spin { to { transform: rotate(360deg); } }

.sap-results { text-align: left; }
.sap-results h3 {
	font-size: 20px;
	margin: 0 0 4px;
}
.sap-skin-type {
	display: inline-block;
	background: #ffe3ec;
	color: var(--sap-primary-dark);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 16px;
}

.sap-score-row {
	margin-bottom: 12px;
}
.sap-score-label {
	display: flex;
	justify-content: space-between;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 4px;
}
.sap-score-bar-bg {
	background: #f0e4e7;
	border-radius: 10px;
	height: 10px;
	overflow: hidden;
}
.sap-score-bar-fill {
	height: 100%;
	background: linear-gradient(90deg, var(--sap-primary), #ff7aa2);
	border-radius: 10px;
	transition: width 0.6s ease;
}

.sap-tips {
	margin: 18px 0;
	padding: 14px 16px;
	background: #fff;
	border: 1px solid var(--sap-border);
	border-radius: 10px;
}
.sap-tips ul { margin: 8px 0 0; padding-left: 18px; }
.sap-tips li { margin-bottom: 6px; font-size: 13px; }

.sap-disclaimer {
	font-size: 11px;
	color: var(--sap-muted);
	margin: 14px 0;
	line-height: 1.5;
}

.sap-cta-btn {
	display: block;
	text-align: center;
	width: 100%;
	padding: 13px;
	background: var(--sap-primary);
	color: #fff !important;
	border-radius: 30px;
	font-weight: 700;
	text-decoration: none;
	margin-top: 8px;
}
.sap-cta-btn:hover { background: var(--sap-primary-dark); color: #fff; }

@media (max-width: 480px) {
	.sap-widget { padding: 18px; border-radius: 12px; }
}
