/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header and Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-bottom: 2rem;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: #2c5aa0;
    font-size: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #2c5aa0;
}

/* Registration Layout */
.registration-wrapper {
    display: flex;
    gap: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Progress Sidebar */
.progress-sidebar {
    background-color: #f8f9fa;
    padding: 2rem 1.5rem;
    min-width: 250px;
    border-right: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.progress-step.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
}

.progress-step.active .step-number {
    background-color: #2c5aa0;
    color: white;
}

.progress-step.completed .step-number {
    background-color: #4caf50;
    color: white;
}

.progress-step.completed .step-number::before {
    content: "✓";
}

.step-label {
    font-weight: 500;
    color: #666;
}

.progress-step.active .step-label {
    color: #2c5aa0;
    font-weight: 600;
}

/* Form Content Area */
.form-content {
    flex: 1;
    padding: 2rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-step p {
    color: #666;
    margin-bottom: 2rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
}

label.required::after {
    content: " *";
    color: #d32f2f;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row-thirds {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: #2c5aa0;
    color: white;
}

.btn-primary:hover {
    background-color: #234780;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-danger {
    background-color: #c62828;
    color: white;
}

.btn-danger:hover {
    background-color: #a02020;
}

.btn-success {
    background-color: #4caf50;
    color: white;
}

.btn-success:hover {
    background-color: #388e3c;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Registration Type Selection */
.registration-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.registration-type-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.registration-type-card:hover {
    border-color: #2c5aa0;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

.registration-type-card.selected {
    border-color: #2c5aa0;
    background-color: #e3f2fd;
}

.registration-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

.registration-type-card h3 {
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.registration-type-card p {
    color: #666;
    margin: 0;
}

/* Child Selection */
.child-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.child-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}

.child-card:hover,
.child-card.selected {
    border-color: #4caf50;
    background-color: #f1f8e9;
}

.child-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.child-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.child-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Event Summary Sidebar */
.event-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.event-summary h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.event-summary .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.event-summary .detail-row:last-child {
    border-bottom: none;
}

.event-summary .detail-label {
    font-weight: 500;
    color: #666;
}

.event-summary .detail-value {
    color: #333;
}

/* Waiver Section */
.waiver-container {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.waiver-container h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.waiver-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #333;
}

.checkbox-group {
    margin: 1rem 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.signature-pad {
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-top: 1rem;
}

/* Payment Section */
.invoice-summary {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.invoice-row.total {
    border-top: 2px solid #333;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 1rem;
    padding-top: 1rem;
}

.payment-method {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.payment-info {
    display: flex;
    flex-direction: column;
}

.payment-brand {
    font-weight: bold;
    font-size: 1.1rem;
}

.payment-last4 {
    color: #666;
}

/* Confirmation Page */
.confirmation-content {
    text-align: center;
    padding: 2rem;
}

.confirmation-content .success-icon {
    font-size: 5rem;
    color: #4caf50;
    margin-bottom: 1rem;
}

.confirmation-content h2 {
    color: #4caf50;
    margin-bottom: 1rem;
}

.confirmation-details {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: left;
}

/* Admin Page */
.admin-section {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-section h2 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #2c5aa0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th {
    background-color: #2c5aa0;
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e0e0e0;
}

table tr:hover {
    background-color: #f5f5f5;
}

.no-data {
    text-align: center;
    color: #666;
    padding: 2rem;
    font-style: italic;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-wrapper {
        flex-direction: column;
    }

    .progress-sidebar {
        min-width: auto;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }

    .form-row,
    .form-row-thirds {
        grid-template-columns: 1fr;
    }

    .registration-type-selection {
        grid-template-columns: 1fr;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
}
