form {

max-width:600px;
margin:auto;

}

input,select,textarea {

width:100%;
padding:8px;
margin-bottom:10px;

}

h3 {

margin-top:30px;

}

.funrun-form-wrapper {
    max-width: 600px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.funrun-styled-form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.form-section {
    margin-top: 0 !important;   /* Kill the ghost margin */
    margin-bottom: 10px !important; 
    padding-top: 0 !important;  /* Ensure no top padding is pushing it down */
    padding-bottom: 15px !important;
    border-bottom: 1px solid #f0f0f0;
}

/* Kill the space specifically above the titles inside sections */
.form-section h2, 
.form-section h4 {
    margin-top: 0 !important;
    padding-top: 5px !important;
    margin-bottom: 10px !important;
}

.form-group {
    margin-bottom: 15px;
}

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

input#waiver[type="checkbox"] {
    /* Restore the default browser checkmark look */
    -webkit-appearance: checkbox !important;
    -moz-appearance: checkbox !important;
    appearance: checkbox !important;

    /* Reset the sizing and background to default */
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    background: initial !important;
    border: initial !important;
}

.count-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.counter input, .form-group input, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

/* Participant Cards */
.participant-card {
    background: #f9f9fb;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #007cba;
    animation: slideDown 0.3s ease-out;
}

.participant-card h5 { margin: 0 0 10px 0; color: #555; }

/* Totals & Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.total-display {
    font-size: 24px;
    font-weight: 800;
    color: #2c3e50;
}

.submit-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-button:hover { background: #006799; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Friendly */
@media (max-width: 480px) {
    .count-grid { grid-template-columns: 1fr; }
    .form-footer { flex-direction: column; gap: 15px; }
}
.course-selection label {
    font-size: 14px;
    margin-bottom: 5px;
}

.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: normal !important;
}

.radio-label:has(input:checked) {
    border-color: #007cba;
    background: #e7f3ff;
    color: #007cba;
    font-weight: 600 !important;
}

.radio-label input {
    margin-right: 8px;
    width: auto; /* Overrides the 100% width from general inputs */
}