* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f5f0eb;
    color: #333;
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    background: #e87a1e;
    padding: 28px 20px 20px;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

header .logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 8px;
}

header .subtitle {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Poster section */
.poster-section {
    background: #fff;
    border-left: 1px solid #e0d6cc;
    border-right: 1px solid #e0d6cc;
    padding: 0;
    text-align: center;
}

.poster-section .poster {
    width: 100%;
    display: block;
}

/* Schedule link */
.schedule-link-section {
    background: #fff;
    border-left: 1px solid #e0d6cc;
    border-right: 1px solid #e0d6cc;
    padding: 16px 32px;
    text-align: center;
}

.schedule-link-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #1a73e8;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.schedule-link-btn:hover {
    background: #1557b0;
}

/* Form section */
.form-section {
    background: #fff;
    padding: 28px 32px;
    border-left: 1px solid #e0d6cc;
    border-right: 1px solid #e0d6cc;
    border-top: 1px solid #e0d6cc;
    border-bottom: 1px solid #e0d6cc;
    border-radius: 0 0 10px 10px;
}

.form-section h2 {
    font-size: 1.15rem;
    color: #e87a1e;
    border-bottom: 2px solid #f0c8a0;
    padding-bottom: 10px;
    margin-bottom: 24px;
}

.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full {
    flex: 1 1 100%;
}

label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.required {
    color: #d32f2f;
}

input[type="text"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="email"],
select,
textarea {
    padding: 10px 12px;
    border: 1px solid #d4c9be;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #e87a1e;
    box-shadow: 0 0 0 2px rgba(232, 122, 30, 0.15);
}

/* Checkbox group for class preferences */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
    background: #fef8f2;
    border: 1px solid #f0c8a0;
    border-radius: 6px;
    padding: 16px 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #e87a1e;
}

/* Schedule hint */
.schedule-hint {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 8px;
    font-weight: 400;
}

/* Schedule picker */
.schedule-picker {
    border: 1px solid #f0c8a0;
    border-radius: 6px;
    overflow: hidden;
    background: #fef8f2;
}

.schedule-picker.invalid {
    border-color: #d32f2f;
}

.day-tabs {
    display: flex;
    background: #f5ede5;
    border-bottom: 1px solid #f0c8a0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.day-tab {
    flex: 1;
    padding: 10px 4px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: #888;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 0;
    white-space: nowrap;
}

.day-tab.active {
    background: #e87a1e;
    color: #fff;
}

.day-tab:hover:not(.active) {
    background: #f0dcc8;
    color: #555;
}

.day-panel {
    display: none;
    padding: 12px;
}

.day-panel.active {
    display: block;
}

.day-title {
    font-size: 0.95rem;
    color: #e87a1e;
    margin-bottom: 12px;
    font-weight: 700;
}

.time-slot {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e4d8;
}

.time-slot:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.time-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
}

.slot-classes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.class-card {
    cursor: pointer;
    display: block;
    font-weight: 400;
    margin-bottom: 0;
}

.class-card input[type="checkbox"] {
    display: none;
}

.class-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 14px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
    min-width: 90px;
    text-align: center;
    opacity: 0.7;
}

.class-card input[type="checkbox"]:checked + .class-badge {
    border-color: #e87a1e;
    box-shadow: 0 0 0 2px rgba(232, 122, 30, 0.25);
    opacity: 1;
}

.class-badge:hover {
    opacity: 1;
}

.class-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.class-age {
    font-size: 0.72rem;
    color: #555;
    margin-top: 2px;
}

/* Selected classes summary */
.selected-summary {
    margin-top: 10px;
    display: none;
}

.selected-summary.visible {
    display: block;
}

.selected-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.selected-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
}

.clear-all-btn {
    background: none;
    border: none;
    color: #d32f2f;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
}

.clear-all-btn:hover {
    background: #fdecea;
}

.selected-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.selected-chip .chip-text {
    display: flex;
    flex-direction: column;
}

.selected-chip .chip-day-time {
    font-weight: 400;
    font-size: 0.68rem;
    color: #555;
}

.chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    color: #888;
    padding: 0 2px;
    border-radius: 50%;
    transition: color 0.15s;
}

.chip-remove:hover {
    color: #d32f2f;
}

/* Acknowledgement checkboxes */
.acknowledgements {
    margin-bottom: 16px;
    padding: 16px;
    background: #fef9f3;
    border: 1px solid #e0d6cc;
    border-radius: 8px;
}

.ack-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    margin-bottom: 10px;
}

.ack-label:last-of-type {
    margin-bottom: 0;
}

.ack-label input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #e87a1e;
}

/* Submit button */
.submit-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: #e87a1e;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.submit-btn:hover {
    background: #d06a12;
}

.submit-btn:active {
    background: #b85c0e;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Submit status message */
.submit-status {
    text-align: center;
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0;
    border-radius: 6px;
}

.submit-status.success {
    background: #edf7ed;
    color: #2e7d32;
    padding: 12px;
    border: 1px solid #c8e6c9;
}

.submit-status.error {
    background: #fdecea;
    color: #c62828;
    padding: 12px;
    border: 1px solid #f5c6cb;
}

/* Validation errors */
.error-msg {
    font-size: 0.8rem;
    color: #d32f2f;
    margin-top: 3px;
    min-height: 0;
}

input.invalid,
select.invalid {
    border-color: #d32f2f;
}

input.invalid:focus,
select.invalid:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

.checkbox-group.invalid {
    border-color: #d32f2f;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    color: #999;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 12px;
    }

    .form-section {
        padding: 20px 16px;
    }

    .form-row {
        flex-direction: column;
        gap: 12px;
    }

    header .logo {
        max-width: 120px;
    }
}
