/* 3.1 Global Styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    margin: 0;
    padding: 20px;
    color: #333;
}

/* 3.2 Event Title and Description */
header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* 3.3 Event Information Section */
.event-info {
    max-width: 600px;
    margin: 0 auto 30px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

/* 3.4 Registration Form Layout */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* 3.5 Fieldsets and Legends */
fieldset {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    color: #3498db;
}

/* 3.6 Improve Input Elements */
label {
    display: block;
    margin-top: 15px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

input:focus, select:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

/* 3.7 Button Styling */
.button-group {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.btn-submit {
    background-color: #27ae60;
    color: white;
}

.btn-submit:hover {
    background-color: #219150;
}

.btn-reset {
    background-color: #e74c3c;
    color: white;
}

.btn-reset:hover {
    background-color: #c0392b;
}

/* 3.8 Style the Participants Table */
.table-section {
    max-width: 600px;
    margin: 30px auto;
}

.participants-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.participants-table th, .participants-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

.participants-table th {
    background-color: #3498db;
    color: white;
}

/* Zebra Stripes and Hover */
.participants-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.participants-table tr:hover {
    background-color: #e1f5fe;
}

/* 3.10 Footer Design */
footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background-color: #2c3e50;
    color: white;
    font-size: 0.9rem;
    border-radius: 8px;
}
