/* General Styles */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	text-align: center;
	background-color: #f4f4f4;
}

header {
	background-color: #ff5733;
	color: white;
	padding: 20px;
}

/* Layout */
.container {
	display: flex;
	gap: 20px;
	padding: 20px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Form & Preview Box */
.survey-form,
.preview {
	background: white;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	width: 400px;
	padding: 20px;
	text-align: left;
}

h2 {
	text-align: center;
}

/* Form Elements */
form {
	display: flex;
	flex-direction: column;
}

label {
	font-weight: bold;
	margin-top: 10px;
}

input,
select,
textarea {
	margin-bottom: 10px;
	padding: 10px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

textarea {
	resize: vertical;
	height: 80px;
}

/* Button */
button {
	padding: 10px;
	background-color: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
}

button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

button:hover:not(:disabled) {
	background-color: #0056b3;
}

/* Error Message */
.error {
	color: red;
	font-size: 14px;
	margin-bottom: 10px;
	display: none;
}

/* Live Preview Box */
.preview {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
}

.preview-box {
	background-color: #f9f9f9;
	padding: 15px;
	border-radius: 5px;
}

.preview-box p {
	font-size: 16px;
	margin: 5px 0;
}

/* Responses Section */
.responses {
	margin-top: 20px;
	padding: 20px;
	text-align: left;
}

.response-card {
	background: white;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Table */
table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

table th,
table td {
	padding: 12px;
	border: 1px solid #ccc;
}

table th {
	background-color: #007bff;
	color: white;
}

table tbody tr:nth-child(even) {
	background-color: #f4f4f4;
}
