/* General Styles */
body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	text-align: center;
	background-color: #f4f4f4;
}

header {
	background-color: #dc3545; /* Changed to Crimson Red */
	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;
	color: #333;
}

/* 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;
}

input:focus, 
select:focus, 
textarea:focus {
	outline: none;
	border-color: #dc3545; /* Red border on focus */
	box-shadow: 0 0 5px rgba(220, 53, 69, 0.2);
}

textarea {
	resize: vertical;
	height: 80px;
}

/* Button */
button {
	padding: 10px;
	background-color: #dc3545; /* Changed from Blue to Red */
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

button:disabled {
	background-color: #ccc;
	cursor: not-allowed;
}

button:hover:not(:disabled) {
	background-color: #b02a37; /* Darker Red on hover */
}

/* Error Message */
.error {
	color: #dc3545;
	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: #fffafa; /* Very light red tint */
	padding: 15px;
	border-radius: 5px;
	border: 1px solid #f5c6cb;
}

.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: #dc3545; /* Header changed from Blue to Red */
	color: white;
}

table tbody tr:nth-child(even) {
	background-color: #f8f9fa;
}

