/* General page styling */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #fdfcfb, #e2d1c3);
  margin: 0;
  padding: 0;
  color: #333;
}

/* Header */
header {
  background: linear-gradient(135deg, #ff6f61, #d7263d);
  color: white;
  text-align: center;
  padding: 40px 20px;
}

header h1 {
  margin: 0;
  font-size: 2.8em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
  margin-top: 10px;
  font-size: 1.3em;
}

/* Section styling */
section {
  background: #ffffff;
  margin: 25px auto;
  padding: 25px;
  width: 70%;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Headings */
h2 {
  color: #d7263d;
  border-bottom: 3px solid #ff6f61;
  padding-bottom: 8px;
}

/* Form styling */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

fieldset {
  border: 2px solid #ff6f61;
  border-radius: 8px;
  padding: 15px;
  background: #fff7f5;
}

legend {
  font-weight: bold;
  color: #d7263d;
}

input, select, textarea {
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 100%;
  transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: #ff6f61;
  box-shadow: 0 0 8px rgba(255,111,97,0.5);
  outline: none;
}

input[type="radio"], input[type="checkbox"] {
  width: auto;
  margin-right: 6px;
}

/* Buttons */
input[type="submit"], input[type="reset"] {
  background: linear-gradient(135deg, #ff6f61, #ff9a76);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  letter-spacing: 1px;
  transition: transform 0.2s ease-in-out;
}

input[type="submit"]:hover, input[type="reset"]:hover {
  background: linear-gradient(135deg, #d7263d, #ff6f61);
  transform: scale(1.05);
}

/* Table styling */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th, td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: center;
}

th {
  background: #d7263d;
  color: white;
}

tbody tr:nth-child(even) {
  background: #ffe5e0;
}

tbody tr:hover {
  background-color: #ffefea;
  transform: scale(1.01);
  transition: all 0.2s ease-in-out;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #333, #111);
  color: #f1f1f1;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

footer p {
  margin: 6px 0;
}