/* ss-frontend.css - สไตล์แบบสำรวจความพึงพอใจ */

.ss-survey-container {
	max-width: 1000px;
	margin: 30px auto;
	background: #fff;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.1 );
	overflow: hidden;
	font-family: inherit;
}

.ss-survey-header {
	background: linear-gradient( 135deg, #2e7d32 0%, #388e3c 100% );
	color: #fff;
	padding: 40px 30px;
	text-align: center;
}

.ss-survey-header .dashicons {
	font-size: 48px;
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
}

.ss-survey-header h1 {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
	color: #fff;
}

.ss-survey-header h2 {
	font-size: 18px;
	font-weight: 400;
	opacity: 0.95;
	margin: 0;
	color: #fff;
}

.ss-survey-alert {
	margin: 20px 30px 0;
	padding: 14px 18px;
	border-radius: 8px;
	font-weight: 600;
}

.ss-survey-alert.ss-alert-success {
	background: #e8f5e9;
	color: #1b5e20;
	border: 1px solid #a5d6a7;
}

.ss-survey-alert.ss-alert-error {
	background: #ffebee;
	color: #b71c1c;
	border: 1px solid #ef9a9a;
}

#ssSurveyForm {
	padding: 30px;
}

/* Honeypot: ซ่อนจากผู้ใช้จริง แต่บอทที่ไม่ประมวลผล CSS จะยังเห็นและกรอก */
.ss-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ss-section {
	margin-bottom: 35px;
	padding: 25px;
	background: #f9f9f9;
	border-radius: 12px;
	border-left: 5px solid #4caf50;
}

.ss-section h3 {
	color: #2e7d32;
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 20px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ss-section h4 {
	color: #388e3c;
	font-size: 17px;
	margin: 25px 0 12px;
}

.ss-form-group {
	margin-bottom: 18px;
}

.ss-form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #333;
}

.ss-required {
	color: #e53935;
}

.ss-form-group input[type='text'],
.ss-form-group input[type='number'],
.ss-form-group select,
.ss-form-group textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c8e6c9;
	border-radius: 8px;
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
}

.ss-form-group textarea {
	resize: vertical;
}

.ss-inline-group {
	display: flex;
	gap: 12px;
}

.ss-inline-group input {
	flex: 1;
}

.ss-radio-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ss-radio-group.inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 20px;
}

.ss-radio-group label {
	font-weight: 400;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 6px;
	transition: background 0.2s;
	cursor: pointer;
}

.ss-radio-group label:hover,
.ss-radio-group label.ss-active {
	background: #e8f5e9;
}

.ss-satisfaction-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 18px;
	font-size: 14px;
	color: #555;
}

.ss-satisfaction-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 10px;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
}

.ss-satisfaction-table th,
.ss-satisfaction-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	text-align: center;
	font-size: 14px;
}

.ss-satisfaction-table th {
	background: #2e7d32;
	color: #fff;
	font-weight: 600;
}

.ss-satisfaction-table td:first-child {
	text-align: left;
	width: 55%;
}

.ss-satisfaction-table tr:hover {
	background: #f1f8f2;
}

.ss-form-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	margin-top: 30px;
}

.ss-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 30px;
	border: none;
	border-radius: 30px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
}

.ss-btn-submit {
	background: linear-gradient( 135deg, #2e7d32 0%, #388e3c 100% );
	color: #fff;
}

.ss-btn-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.ss-btn-reset {
	background: #eee;
	color: #555;
}

.ss-recaptcha-note {
	text-align: center;
	font-size: 12px;
	color: #999;
	padding: 15px 30px 25px;
}

.ss-recaptcha-note a {
	color: #666;
}

@media ( max-width: 600px ) {
	#ssSurveyForm {
		padding: 18px;
	}
	.ss-section {
		padding: 16px;
	}
	.ss-inline-group {
		flex-direction: column;
	}
}
