-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapply.html
More file actions
1154 lines (981 loc) · 50.7 KB
/
apply.html
File metadata and controls
1154 lines (981 loc) · 50.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Apply - Valley of the Commons</title>
<link rel="icon" type="image/svg+xml" href="icon.svg">
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
<style>
:root {
--forest: #2d5016;
--forest-light: #4a7c23;
--cream: #faf8f5;
--sand: #f5f5f0;
--charcoal: #2c2c2c;
--error: #c53030;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Inter', -apple-system, sans-serif;
background: var(--cream);
color: var(--charcoal);
line-height: 1.6;
}
.header {
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border-bottom: 1px solid rgba(0,0,0,0.1);
padding: 1rem 2rem;
position: sticky;
top: 0;
z-index: 100;
}
.header-content {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.header h1 {
font-family: 'Cormorant Garamond', serif;
font-size: 1.5rem;
font-weight: 400;
color: var(--forest);
}
.header a { color: var(--forest); text-decoration: none; }
.container {
max-width: 700px;
margin: 0 auto;
padding: 2rem;
}
.intro {
text-align: center;
margin-bottom: 2rem;
padding: 2rem;
background: white;
border-radius: 12px;
}
.intro h1 {
font-family: 'Cormorant Garamond', serif;
font-size: 2.25rem;
color: var(--forest);
margin-bottom: 1rem;
}
.intro p { color: #666; font-size: 0.95rem; }
.event-badge {
display: inline-block;
background: var(--forest);
color: white;
padding: 0.5rem 1rem;
border-radius: 20px;
font-size: 0.875rem;
margin-bottom: 1rem;
}
/* Progress */
.progress-container {
margin-bottom: 2rem;
}
.progress-bar {
height: 4px;
background: #ddd;
border-radius: 2px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: var(--forest);
transition: width 0.3s ease;
}
.progress-text {
text-align: center;
font-size: 0.8rem;
color: #666;
margin-top: 0.5rem;
}
/* Form */
.form-section {
background: white;
border-radius: 12px;
padding: 2rem;
margin-bottom: 1rem;
display: none;
}
.form-section.active { display: block; animation: fadeIn 0.3s; }
@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}
.question-number {
font-size: 0.75rem;
color: #999;
margin-bottom: 0.5rem;
}
.form-section h2 {
font-family: 'Cormorant Garamond', serif;
font-size: 1.5rem;
color: var(--forest);
margin-bottom: 0.5rem;
}
.form-section > p.hint {
color: #666;
font-size: 0.9rem;
margin-bottom: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
label {
display: block;
font-weight: 500;
margin-bottom: 0.5rem;
font-size: 0.9rem;
}
label .required { color: var(--error); }
label .optional { color: #999; font-weight: 400; font-size: 0.8rem; }
input[type="text"],
input[type="email"],
textarea,
select {
width: 100%;
padding: 0.75rem 1rem;
border: 1px solid #ddd;
border-radius: 8px;
font-family: inherit;
font-size: 1rem;
}
input:focus, textarea:focus, select:focus {
outline: none;
border-color: var(--forest);
box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.1);
}
textarea { min-height: 120px; resize: vertical; }
.field-hint {
font-size: 0.8rem;
color: #666;
margin-top: 0.25rem;
}
/* Theme ranking */
.theme-list {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.theme-item {
display: flex;
align-items: center;
gap: 1rem;
padding: 0.75rem 1rem;
background: var(--sand);
border-radius: 8px;
cursor: grab;
user-select: none;
}
.theme-item:active { cursor: grabbing; }
.theme-item .emoji { font-size: 1.25rem; }
.theme-item .text { flex: 1; font-size: 0.9rem; }
.theme-item .rank {
width: 24px;
height: 24px;
background: var(--forest);
color: white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.75rem;
font-weight: 600;
}
/* Week cards */
.week-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.week-card {
border: 2px solid #ddd;
border-radius: 10px;
padding: 1rem;
cursor: pointer;
transition: all 0.2s;
}
.week-card:hover { border-color: var(--forest-light); }
.week-card.selected { border-color: var(--forest); background: rgba(45, 80, 22, 0.05); }
.week-card input { display: none; }
.week-card h4 { font-size: 0.95rem; color: var(--forest); margin-bottom: 0.25rem; }
.week-card .dates { font-size: 0.8rem; color: #666; margin-bottom: 0.5rem; }
.week-card .desc { font-size: 0.85rem; color: #555; }
/* Select-all card */
.select-all-card {
border-style: dashed;
background: var(--sand);
}
.select-all-card.selected {
border-style: solid;
}
.ticket-note {
font-size: 0.8rem;
color: #666;
background: var(--sand);
padding: 0.75rem 1rem;
border-radius: 8px;
margin-top: 1rem;
}
/* Nav */
.form-nav {
display: flex;
justify-content: space-between;
gap: 1rem;
margin-top: 2rem;
}
.btn {
padding: 0.875rem 2rem;
border: none;
border-radius: 8px;
font-family: inherit;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
}
.btn-primary { background: var(--forest); color: white; }
.btn-primary:hover { background: var(--forest-light); }
.btn-secondary { background: var(--sand); color: var(--charcoal); }
.btn-secondary:hover { background: #eee; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Success */
.success-message { text-align: center; padding: 2rem; }
.success-icon {
width: 70px;
height: 70px;
background: var(--forest);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto 1.5rem;
}
.success-icon svg { width: 35px; height: 35px; stroke: white; }
.success-message h2 {
font-family: 'Cormorant Garamond', serif;
font-size: 1.75rem;
color: var(--forest);
margin-bottom: 1rem;
}
/* Error */
.error-message {
background: #fef2f2;
border: 1px solid #fecaca;
color: var(--error);
padding: 1rem;
border-radius: 8px;
margin-bottom: 1rem;
font-size: 0.9rem;
}
.field-error { border-color: var(--error) !important; }
.footer {
text-align: center;
padding: 2rem;
color: #666;
font-size: 0.875rem;
}
.footer a { color: var(--forest); }
@media (max-width: 600px) {
.container { padding: 1rem; }
.form-section { padding: 1.5rem; }
}
</style>
</head>
<body>
<header class="header">
<div class="header-content">
<h1><a href="/">Valley of the Commons</a></h1>
<a href="/">← Back</a>
</div>
</header>
<div class="container">
<div class="intro">
<span class="event-badge">August 24 – September 20, 2026</span>
<h1>Application Form</h1>
<p>Valley of the Commons is a four-week pop-up village exploring housing, production, decision-making and ownership in community. We ask that you be thoughtful in your answers to help us understand if you are the right fit. We will not penalize you for unfamiliarity with any topic; please be honest.</p>
</div>
<div class="progress-container">
<div class="progress-bar"><div class="progress-fill" id="progress-fill"></div></div>
<div class="progress-text"><span id="progress-percent">0</span>% complete</div>
</div>
<form id="application-form">
<!-- Q1: Contact Information -->
<div class="form-section active" data-step="1">
<div class="question-number">Question 1 of 12</div>
<h2>Contact Information</h2>
<div class="form-group" style="display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;">
<div>
<label for="first_name">First Name <span class="required">*</span></label>
<input type="text" id="first_name" name="first_name" required placeholder="First name">
</div>
<div>
<label for="last_name">Last Name <span class="required">*</span></label>
<input type="text" id="last_name" name="last_name" required placeholder="Last name">
</div>
</div>
<div class="form-group">
<label for="email">Email <span class="required">*</span></label>
<input type="email" id="email" name="email" required placeholder="your@email.com">
</div>
<div class="form-group">
<label for="social_media">Social Media Handles <span class="optional">(optional)</span></label>
<input type="text" id="social_media" name="social_media" placeholder="@handle (please specify which platforms)">
</div>
<div class="form-group">
<label for="contact_other">Anything else? <span class="optional">(optional)</span></label>
<textarea id="contact_other" name="contact_other" rows="2" placeholder="Phone, website, etc."></textarea>
</div>
<div class="form-nav">
<div></div>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q2: How did you hear -->
<div class="form-section" data-step="2">
<div class="question-number">Question 2 of 12</div>
<h2>How did you hear about Valley of the Commons? <span class="required">*</span></h2>
<div class="form-group">
<textarea id="how_heard" name="how_heard" required placeholder="Social media, friend referral, newsletter, event..."></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q3: Referral names -->
<div class="form-section" data-step="3">
<div class="question-number">Question 3 of 12</div>
<h2>Referral name(s) <span class="optional">(optional)</span></h2>
<p class="hint">Who can vouch for you?</p>
<div class="form-group">
<textarea id="referral_names" name="referral_names" placeholder="Names of people who know you or referred you"></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q4: Affiliations -->
<div class="form-section" data-step="4">
<div class="question-number">Question 4 of 12</div>
<h2>What are your affiliations? <span class="required">*</span></h2>
<p class="hint">What projects or groups are you affiliated with?</p>
<div class="form-group">
<textarea id="affiliations" name="affiliations" required placeholder="Organizations, DAOs, cooperatives, communities, projects..."></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q5: Why join -->
<div class="form-section" data-step="5">
<div class="question-number">Question 5 of 12</div>
<h2>Why would you like to join Valley of the Commons, and why are you a good fit? <span class="required">*</span></h2>
<div class="form-group">
<textarea id="why_join" name="why_join" required placeholder="What draws you to this gathering? Why are you a good fit for this community?"></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q6: Current work -->
<div class="form-section" data-step="6">
<div class="question-number">Question 6 of 12</div>
<h2>What are you currently building, researching, or working on? <span class="required">*</span></h2>
<div class="form-group">
<textarea id="current_work" name="current_work" required placeholder="Tell us about your current projects, research, or focus areas..."></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q7: How contribute -->
<div class="form-section" data-step="7">
<div class="question-number">Question 7 of 12</div>
<h2>How will you contribute to Valley of the Commons? <span class="required">*</span></h2>
<p class="hint">Villagers co-create their experience. You can start an interest club, lead a discussion or workshop, teach a cooking class, or more.</p>
<div class="form-group">
<textarea id="contribution" name="contribution" required placeholder="What skills, energy, workshops, or perspectives will you bring?"></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q8: Rank themes -->
<div class="form-section" data-step="8">
<div class="question-number">Question 8 of 12</div>
<h2>Please rank your interest in our themes <span class="required">*</span></h2>
<p class="hint">Drag to reorder from most interested (top) to least interested (bottom).</p>
<div class="theme-list" id="theme-list">
<div class="theme-item" data-theme="valley-future">
<span class="rank">1</span>
<span class="emoji">🏞️</span>
<span class="text">Developing the Future of the Valley</span>
</div>
<div class="theme-item" data-theme="cosmo-localism">
<span class="rank">2</span>
<span class="emoji">🌐</span>
<span class="text">Cosmo-localism</span>
</div>
<div class="theme-item" data-theme="funding-token">
<span class="rank">3</span>
<span class="emoji">🪙</span>
<span class="text">Funding Models & Token Engineering</span>
</div>
<div class="theme-item" data-theme="fablabs">
<span class="rank">4</span>
<span class="emoji">👾</span>
<span class="text">Fablabs & Hackerspaces</span>
</div>
<div class="theme-item" data-theme="future-living">
<span class="rank">5</span>
<span class="emoji">🌌</span>
<span class="text">Future Living Design & Development</span>
</div>
<div class="theme-item" data-theme="network-governance">
<span class="rank">6</span>
<span class="emoji">🧑⚖️</span>
<span class="text">Network Societies & Decentralized Governance</span>
</div>
<div class="theme-item" data-theme="commons-theory">
<span class="rank">7</span>
<span class="emoji">⛲️</span>
<span class="text">Commons Theory & Practice</span>
</div>
<div class="theme-item" data-theme="privacy">
<span class="rank">8</span>
<span class="emoji">👤</span>
<span class="text">Privacy & Digital Sovereignty</span>
</div>
<div class="theme-item" data-theme="dacc">
<span class="rank">9</span>
<span class="emoji">🌏</span>
<span class="text">d/acc: defensive accelerationism</span>
</div>
<div class="theme-item" data-theme="rationality">
<span class="rank">10</span>
<span class="emoji">💭</span>
<span class="text">(Meta)rationality & Cognitive Sovereignty</span>
</div>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q9: Theme familiarity -->
<div class="form-section" data-step="9">
<div class="question-number">Question 9 of 12</div>
<h2>Please explain your familiarity and interest in our themes and event overall <span class="required">*</span></h2>
<p class="hint">🏞️ Valley Future · 🌐 Cosmo-localism · 🪙 Funding & Token Engineering · 👾 Fablabs · 🌌 Future Living · 🧑⚖️ Network Governance · ⛲️ Commons · 👤 Privacy · 🌏 d/acc · 💭 (Meta)rationality</p>
<div class="form-group">
<textarea id="theme_familiarity" name="theme_familiarity" required placeholder="Share your experience, learning journey, or curiosity about any of these themes..."></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q10: Belief update -->
<div class="form-section" data-step="10">
<div class="question-number">Question 10 of 12</div>
<h2>Describe a belief you have updated within the last 1-2 years <span class="required">*</span></h2>
<p class="hint">What was the belief and why did it change?</p>
<div class="form-group">
<textarea id="belief_update" name="belief_update" required placeholder="We value intellectual humility. Share how your thinking has evolved..."></textarea>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q11: Weeks & Options -->
<div class="form-section" data-step="11">
<div class="question-number">Question 11 of 12</div>
<h2>Which week(s) would you like to attend? <span class="required">*</span></h2>
<p class="hint">Select the weeks you'd like to join. Base registration is €300 per week.</p>
<div class="week-cards">
<label class="week-card select-all-card" onclick="toggleAllWeeks(this)">
<input type="checkbox" id="select-all-weeks">
<h4>Select all 4 weeks</h4>
<div class="desc">Full residency: August 24 – September 20, 2026</div>
</label>
<label class="week-card" onclick="toggleWeek(this)">
<input type="checkbox" name="weeks" value="week1">
<h4>Week 1: Return to the Commons</h4>
<div class="dates">August 24 – 30, 2026</div>
<div class="desc">A five-day course with Michel Bauwens and Adam Arvidsson exploring the history and future of the commons.</div>
</label>
<label class="week-card" onclick="toggleWeek(this)">
<input type="checkbox" name="weeks" value="week2">
<h4>Week 2: Post-Capitalist Production</h4>
<div class="dates">August 31 – September 6, 2026</div>
<div class="desc">How global knowledge commons and local production can sustain livelihoods and community resilience.</div>
</label>
<label class="week-card" onclick="toggleWeek(this)">
<input type="checkbox" name="weeks" value="week3">
<h4>Week 3: Future Living</h4>
<div class="dates">September 7 – 13, 2026</div>
<div class="desc">From vision to scouting: cooperative housing, mapping local resources, ecological design.</div>
</label>
<label class="week-card" onclick="toggleWeek(this)">
<input type="checkbox" name="weeks" value="week4">
<h4>Week 4: Governance & Funding Models</h4>
<div class="dates">September 14 – 20, 2026</div>
<div class="desc">Participatory governance, cooperative legal structures, and mechanisms for shared assets.</div>
</label>
</div>
<!-- Accommodation -->
<div style="margin-top: 2rem;">
<h3 style="font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--forest); margin-bottom: 1rem;">Accommodation</h3>
<label class="week-card" onclick="toggleAddon(this, 'accommodation')" style="margin-bottom: 0.75rem;">
<input type="checkbox" id="need_accommodation">
<h4>Include accommodation with registration</h4>
<div class="desc">On-site housing paid upfront with your registration fee.</div>
</label>
<div id="accommodation-options" style="display: none;">
<!-- Venue selection -->
<div style="padding: 0.75rem 0; margin-bottom: 0.5rem;">
<label style="font-weight: 600; margin-bottom: 0.75rem; display: block;">Choose your venue</label>
<label class="week-card" style="margin-bottom: 0.5rem; cursor: pointer;" onclick="selectVenue('ch')">
<input type="radio" name="venue" value="ch" style="display:none;">
<h4>Commons Hub</h4>
<div class="desc">Shared community living in the main hub building.</div>
</label>
<label class="week-card" style="cursor: pointer;" onclick="selectVenue('hh')">
<input type="radio" name="venue" value="hh" style="display:none;">
<h4>Herrnhof Villa</h4>
<div class="desc">Private villa rooms with more comfort and privacy.</div>
</label>
</div>
<!-- Commons Hub room types -->
<div id="ch-rooms" style="display: none; padding: 0.75rem 0;">
<label style="font-weight: 600; margin-bottom: 0.75rem; display: block;">Room type — Commons Hub</label>
<label class="week-card" style="margin-bottom: 0.5rem; cursor: pointer;" onclick="selectRoom('ch-multi')">
<input type="radio" name="room_type" value="ch-multi" style="display:none;">
<h4>Bed in Multi-Room <span style="float:right; color: var(--forest); font-weight: 600;">€275/wk</span></h4>
<div class="desc">Bed in a shared multi-bed room. The most affordable option.</div>
</label>
<label class="week-card" style="cursor: pointer;" onclick="selectRoom('ch-double')">
<input type="radio" name="room_type" value="ch-double" style="display:none;">
<h4>Bed in Double Room <span style="float:right; color: var(--forest); font-weight: 600;">€350/wk</span></h4>
<div class="desc">Shared with one other person.</div>
</label>
</div>
<!-- Herrnhof room types -->
<div id="hh-rooms" style="display: none; padding: 0.75rem 0;">
<label style="font-weight: 600; margin-bottom: 0.75rem; display: block;">Room type — Herrnhof Villa</label>
<label class="week-card" style="margin-bottom: 0.5rem; cursor: pointer;" onclick="selectRoom('hh-living')">
<input type="radio" name="room_type" value="hh-living" style="display:none;">
<h4>Bed in Living Room <span style="float:right; color: var(--forest); font-weight: 600;">€315/wk</span></h4>
<div class="desc">Shared living space with flexible sleeping arrangement.</div>
</label>
<label class="week-card" style="margin-bottom: 0.5rem; cursor: pointer;" onclick="selectRoom('hh-triple')">
<input type="radio" name="room_type" value="hh-triple" style="display:none;">
<h4>Bed in Triple Room <span style="float:right; color: var(--forest); font-weight: 600;">€350/wk</span></h4>
<div class="desc">Room shared between three people.</div>
</label>
<label class="week-card" style="margin-bottom: 0.5rem; cursor: pointer;" onclick="selectRoom('hh-twin')">
<input type="radio" name="room_type" value="hh-twin" style="display:none;">
<h4>Single Bed in Double Room <span style="float:right; color: var(--forest); font-weight: 600;">€420/wk</span></h4>
<div class="desc">Your own bed in a room shared with one other person.</div>
</label>
<label class="week-card" style="margin-bottom: 0.5rem; cursor: pointer;" onclick="selectRoom('hh-single')">
<input type="radio" name="room_type" value="hh-single" style="display:none;">
<h4>Single Room <span style="float:right; color: var(--forest); font-weight: 600;">€665/wk</span></h4>
<div class="desc">Private room for one person.</div>
</label>
<label class="week-card" style="cursor: pointer;" onclick="selectRoom('hh-couple')">
<input type="radio" name="room_type" value="hh-couple" style="display:none;">
<h4>Couple Room <span style="float:right; color: var(--forest); font-weight: 600;">€700/wk</span></h4>
<div class="desc">Private room with double bed for couples.</div>
</label>
</div>
</div>
<input type="hidden" id="accommodation_type" name="accommodation_type" value="">
<!-- Food add-on -->
<h3 style="font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; color: var(--forest); margin-bottom: 1rem; margin-top: 2rem;">Food</h3>
<label class="week-card" onclick="toggleAddon(this, 'food')">
<input type="checkbox" id="want_food">
<h4>I would like to include food for the week</h4>
<div class="desc">We are exploring co-producing our own meals as a community. More details and costs will be shared soon — checking this box registers your interest so we can plan accordingly.</div>
</label>
</div>
<!-- Price summary -->
<div id="price-summary" class="ticket-note" style="margin-top: 1.5rem;">
<div id="price-calc">Select at least one week</div>
</div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="button" class="btn btn-primary" onclick="nextStep()">Continue</button>
</div>
</div>
<!-- Q12: Anything else -->
<div class="form-section" data-step="12">
<div class="question-number">Question 12 of 12</div>
<h2>Anything else you'd like to add? <span class="optional">(optional)</span></h2>
<div class="form-group">
<textarea id="anything_else" name="anything_else" placeholder="Questions, accessibility needs, dietary requirements, or anything else..."></textarea>
</div>
<div class="form-group" style="margin-top: 2rem;">
<label style="display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer;">
<input type="checkbox" id="privacy_accepted" name="privacy_accepted" required style="width: 18px; height: 18px; margin-top: 0.2rem;">
<span>I agree to the <a href="privacy.html" target="_blank">privacy policy</a> and consent to my data being processed for this application <span class="required">*</span></span>
</label>
</div>
<div id="form-error" class="error-message" style="display: none;"></div>
<div class="form-nav">
<button type="button" class="btn btn-secondary" onclick="prevStep()">Back</button>
<button type="submit" class="btn btn-primary" id="submit-btn">Submit Application</button>
</div>
</div>
<!-- Success -->
<div class="form-section" data-step="success" style="display: none;">
<div class="success-message">
<div class="success-icon">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
<path d="M20 6L9 17l-5-5"/>
</svg>
</div>
<h2>Application Submitted!</h2>
<p>Thank you for applying to Valley of the Commons.</p>
<p>We've sent a confirmation to <strong id="confirm-email"></strong>.</p>
<p style="margin-top: 1.5rem; color: #666;">Our team will review your application and get back to you within 2-3 weeks.</p>
<p style="margin-top: 2rem;">
<a href="/" class="btn btn-primary">Return to Homepage</a>
</p>
</div>
</div>
</form>
</div>
<footer class="footer">
<p>© 2026 Commons Hub · <a href="mailto:team@valleyofthecommons.com">team@valleyofthecommons.com</a> · <a href="/privacy.html">Privacy Policy</a> · <a href="/sponsorships.html">Sponsorships</a></p>
</footer>
<script>
let currentStep = 1;
const totalSteps = 12;
const PROCESSING_FEE_PERCENT = 0.02;
// Tiered registration pricing (must match api/mollie.js)
const REGISTRATION_PRICING = {
early: { perWeek: 120, perMonth: 300 },
standard: { perWeek: 200, perMonth: 500 },
lastMin: { perWeek: 240, perMonth: 600 },
};
function getPricingTier() {
const now = new Date();
if (now < new Date('2026-05-15')) return 'early';
if (now < new Date('2026-07-15')) return 'standard';
return 'lastMin';
}
const currentTier = getPricingTier();
const tierPricing = REGISTRATION_PRICING[currentTier];
const TIER_LABELS = { early: 'Early Bird', standard: 'Standard', lastMin: 'Last Minute' };
// Accommodation prices — flat rates (must match api/mollie.js)
const ACCOMMODATION_PRICES = {
'ch-multi': { perWeek: 275, perMonth: 1100 },
'ch-double': { perWeek: 350, perMonth: 1400 },
'hh-living': { perWeek: 315, perMonth: 1260 },
'hh-triple': { perWeek: 350, perMonth: 1400 },
'hh-twin': { perWeek: 420, perMonth: 1680 },
'hh-single': { perWeek: 665, perMonth: 2660 },
'hh-couple': { perWeek: 700, perMonth: 2800 },
};
const ACCOMMODATION_LABELS = {
'ch-multi': 'Commons Hub — Bed in Multi-Room',
'ch-double': 'Commons Hub — Bed in Double Room',
'hh-living': 'Herrnhof Villa — Bed in Living Room',
'hh-triple': 'Herrnhof Villa — Bed in Triple Room',
'hh-twin': 'Herrnhof Villa — Single Bed in Double Room',
'hh-single': 'Herrnhof Villa — Single Room',
'hh-couple': 'Herrnhof Villa — Couple Room',
};
function getAccommodationPrice(accomType, weeksCount) {
if (!accomType || !ACCOMMODATION_PRICES[accomType]) return 0;
const prices = ACCOMMODATION_PRICES[accomType];
if (weeksCount === 4) return prices.perMonth;
return prices.perWeek * weeksCount;
}
function updateProgress() {
const percent = Math.round(((currentStep - 1) / totalSteps) * 100);
document.getElementById('progress-fill').style.width = percent + '%';
document.getElementById('progress-percent').textContent = percent;
}
function showStep(step) {
document.querySelectorAll('.form-section').forEach(s => s.classList.remove('active'));
const target = document.querySelector(`.form-section[data-step="${step}"]`);
if (target) {
target.classList.add('active');
window.scrollTo({ top: 0, behavior: 'smooth' });
}
updateProgress();
}
function validateStep(step) {
const section = document.querySelector(`.form-section[data-step="${step}"]`);
const required = section.querySelectorAll('[required]');
let valid = true;
required.forEach(field => {
field.style.borderColor = '';
if (field.type === 'checkbox') {
if (!field.checked) valid = false;
} else if (!field.value.trim()) {
valid = false;
field.style.borderColor = 'var(--error)';
}
});
// Email validation
const emailField = section.querySelector('input[type="email"]');
if (emailField && emailField.value && !emailField.value.includes('@')) {
valid = false;
emailField.style.borderColor = 'var(--error)';
}
// Week selection (step 11)
if (step === 11) {
const checked = document.querySelectorAll('input[name="weeks"]:checked');
if (checked.length === 0) {
valid = false;
alert('Please select at least one week.');
}
}
return valid;
}
function nextStep() {
if (!validateStep(currentStep)) return;
if (currentStep < totalSteps) {
currentStep++;
showStep(currentStep);
}
}
function prevStep() {
if (currentStep > 1) {
currentStep--;
showStep(currentStep);
}
}
function toggleWeek(card) {
const cb = card.querySelector('input');
cb.checked = !cb.checked;
card.classList.toggle('selected', cb.checked);
syncSelectAll();
updatePriceSummary();
}
function toggleAllWeeks(card) {
const selectAllCb = card.querySelector('input');
selectAllCb.checked = !selectAllCb.checked;
card.classList.toggle('selected', selectAllCb.checked);
const weekCbs = document.querySelectorAll('input[name="weeks"]');
weekCbs.forEach(cb => {
cb.checked = selectAllCb.checked;
cb.closest('.week-card').classList.toggle('selected', selectAllCb.checked);
});
updatePriceSummary();
}
function syncSelectAll() {
const weekCbs = document.querySelectorAll('input[name="weeks"]');
const allChecked = Array.from(weekCbs).every(cb => cb.checked);
const selectAllCb = document.getElementById('select-all-weeks');
const selectAllCard = selectAllCb.closest('.week-card');
selectAllCb.checked = allChecked;
selectAllCard.classList.toggle('selected', allChecked);
}
function toggleAddon(card, type) {
const cb = card.querySelector('input');
cb.checked = !cb.checked;
card.classList.toggle('selected', cb.checked);
if (type === 'accommodation') {
const opts = document.getElementById('accommodation-options');
opts.style.display = cb.checked ? 'block' : 'none';
if (!cb.checked) {
// Clear accommodation selection
document.getElementById('accommodation_type').value = '';
document.querySelectorAll('input[name="venue"]').forEach(r => { r.checked = false; r.closest('.week-card').classList.remove('selected'); });
document.querySelectorAll('input[name="room_type"]').forEach(r => { r.checked = false; r.closest('.week-card').classList.remove('selected'); });
document.getElementById('ch-rooms').style.display = 'none';
document.getElementById('hh-rooms').style.display = 'none';
}
}
// Always refresh summary (food toggle also affects it)
updatePriceSummary();
}
function selectVenue(venue) {
// Update radio + card styling
document.querySelectorAll('input[name="venue"]').forEach(r => {
r.checked = (r.value === venue);
r.closest('.week-card').classList.toggle('selected', r.checked);
});
// Show/hide room type sections
document.getElementById('ch-rooms').style.display = venue === 'ch' ? 'block' : 'none';
document.getElementById('hh-rooms').style.display = venue === 'hh' ? 'block' : 'none';
// Clear previous room selection
document.querySelectorAll('input[name="room_type"]').forEach(r => {
r.checked = false;
r.closest('.week-card').classList.remove('selected');
});
document.getElementById('accommodation_type').value = '';
updatePriceSummary();
}
function selectRoom(roomType) {
document.querySelectorAll('input[name="room_type"]').forEach(r => {
r.checked = (r.value === roomType);
r.closest('.week-card').classList.toggle('selected', r.checked);
});
document.getElementById('accommodation_type').value = roomType;
updatePriceSummary();
}
function updatePriceSummary() {
const weeksCount = document.querySelectorAll('input[name="weeks"]:checked').length;
const el = document.getElementById('price-calc');
if (weeksCount === 0) {
el.textContent = 'Select at least one week';
return;
}
const registration = weeksCount === 4 ? tierPricing.perMonth : tierPricing.perWeek * weeksCount;
const accomType = document.getElementById('accommodation_type').value;
const accommodation = getAccommodationPrice(accomType, weeksCount);
const subtotal = registration + accommodation;
const fee = subtotal * PROCESSING_FEE_PERCENT;
const total = subtotal + fee;
const tierLabel = TIER_LABELS[currentTier];
let html = weeksCount === 4
? `<strong>Registration:</strong> €${tierPricing.perMonth} (full month, ${tierLabel})`
: `<strong>Registration:</strong> €${tierPricing.perWeek} × ${weeksCount} wk = €${registration.toFixed(2)} (${tierLabel})`;
if (accommodation > 0) {
const label = ACCOMMODATION_LABELS[accomType] || accomType;
const prices = ACCOMMODATION_PRICES[accomType];
if (weeksCount === 4) {
html += `<br><strong>Accommodation:</strong> ${label}<br> €${prices.perMonth} (full month)`;
} else {
html += `<br><strong>Accommodation:</strong> ${label}<br> €${prices.perWeek} × ${weeksCount} wk = €${accommodation.toFixed(2)}`;