|
2 | 2 |
|
3 | 3 | {% block content %} |
4 | 4 | <style> |
| 5 | +/* Survey Container */ |
5 | 6 | .survey-container { |
6 | 7 | max-width: 900px; |
7 | 8 | margin: 2rem auto; |
8 | 9 | padding: 0 1rem; |
9 | 10 | } |
| 11 | + |
| 12 | +/* Progress Bar */ |
| 13 | +.progress-container { |
| 14 | + background: rgba(255, 255, 255, 0.9); |
| 15 | + backdrop-filter: blur(20px); |
| 16 | + border-radius: 20px; |
| 17 | + padding: 2rem; |
| 18 | + margin-bottom: 2rem; |
| 19 | + box-shadow: var(--shadow-large); |
| 20 | + border: 1px solid rgba(59, 130, 246, 0.1); |
| 21 | +} |
| 22 | + |
| 23 | +.progress-title { |
| 24 | + font-size: 1.5rem; |
| 25 | + font-weight: 700; |
| 26 | + color: var(--dark-blue); |
| 27 | + margin-bottom: 1rem; |
| 28 | + text-align: center; |
| 29 | +} |
| 30 | + |
| 31 | +.progress-bar { |
| 32 | + width: 100%; |
| 33 | + height: 8px; |
| 34 | + background: rgba(59, 130, 246, 0.1); |
| 35 | + border-radius: 10px; |
| 36 | + overflow: hidden; |
| 37 | + position: relative; |
| 38 | +} |
| 39 | + |
| 40 | +.progress-fill { |
| 41 | + height: 100%; |
| 42 | + background: var(--gradient-primary); |
| 43 | + border-radius: 10px; |
| 44 | + transition: width 0.5s ease; |
| 45 | + position: relative; |
| 46 | +} |
| 47 | + |
| 48 | +.progress-fill::after { |
| 49 | + content: ''; |
| 50 | + position: absolute; |
| 51 | + top: 0; |
| 52 | + left: 0; |
| 53 | + right: 0; |
| 54 | + bottom: 0; |
| 55 | + background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent); |
| 56 | + animation: shimmer 2s infinite; |
| 57 | +} |
| 58 | + |
| 59 | +@keyframes shimmer { |
| 60 | + 0% { transform: translateX(-100%); } |
| 61 | + 100% { transform: translateX(100%); } |
| 62 | +} |
| 63 | + |
10 | 64 | /* Main Survey Form */ |
11 | 65 | .survey-form { |
12 | 66 | background: rgba(255, 255, 255, 0.95); |
|
67 | 121 | font-size: 2rem; |
68 | 122 | box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); |
69 | 123 | } |
| 124 | + |
| 125 | +/* Question Cards */ |
70 | 126 | .question-card { |
71 | 127 | background: rgba(255, 255, 255, 0.8); |
72 | 128 | border-radius: 20px; |
|
77 | 133 | position: relative; |
78 | 134 | overflow: hidden; |
79 | 135 | } |
80 | | -.question-number { |
81 | | - display: inline-block; |
82 | | - width: 35px; |
83 | | - height: 35px; |
84 | | - background: var(--gradient-primary); |
85 | | - color: white; |
86 | | - border-radius: 50%; |
87 | | - text-align: center; |
88 | | - line-height: 35px; |
89 | | - font-weight: 700; |
90 | | - font-size: 0.9rem; |
91 | | - margin-bottom: 1rem; |
92 | | - box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); |
93 | | -} |
94 | | -.submit-section { |
95 | | - text-align: center; |
96 | | - margin-top: 3rem; |
97 | | - padding-top: 2rem; |
98 | | - border-top: 2px solid rgba(59, 130, 246, 0.1); |
99 | | -} |
100 | | - |
101 | | -.submit-button { |
102 | | - background: var(--gradient-primary); |
103 | | - color: white; |
104 | | - font-weight: 700; |
105 | | - font-size: 1.1rem; |
106 | | - padding: 1.2rem 3rem; |
107 | | - border: none; |
108 | | - border-radius: 50px; |
109 | | - cursor: pointer; |
110 | | - transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); |
111 | | - position: relative; |
112 | | - overflow: hidden; |
113 | | - box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3); |
114 | | - text-transform: uppercase; |
115 | | - letter-spacing: 1px; |
116 | | -} |
117 | 136 |
|
118 | | -.submit-button::before { |
| 137 | +.question-card::before { |
119 | 138 | content: ''; |
120 | 139 | position: absolute; |
121 | 140 | top: 0; |
122 | 141 | left: -100%; |
123 | 142 | width: 100%; |
124 | 143 | height: 100%; |
125 | | - background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); |
126 | | - transition: left 0.6s ease; |
| 144 | + background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.05), transparent); |
| 145 | + transition: left 0.5s ease; |
127 | 146 | } |
128 | 147 |
|
129 | | -.submit-button:hover::before { |
130 | | - left: 100%; |
131 | | -} |
132 | 148 |
|
133 | | -.submit-button:hover { |
134 | | - transform: translateY(-3px); |
135 | | - box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4); |
136 | | -} |
137 | | - |
138 | | -.submit-button:active { |
139 | | - transform: translateY(-1px); |
140 | | -} |
141 | 149 |
|
142 | 150 |
|
143 | 151 | </style> |
|
0 commit comments