-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
348 lines (300 loc) · 6.92 KB
/
Copy pathstyles.css
File metadata and controls
348 lines (300 loc) · 6.92 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
/* General styles */
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(to right, #ff7e5f, #feb47b);
box-sizing: border-box;
padding: 10px;
}
h2 {
text-align: center;
margin-bottom: 20px;
color: #fff;
font-size: 32px;/* General styles */
body {
font-family: 'Arial', sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(to right, #ff7e5f, #feb47b);
}
/* Heading styling */
h2 {
text-align: center;
margin-bottom: 20px;
color: #fff;
}
/* Form container styling */
.form-container {
background: #ffffff;
padding: 30px;
border-radius: 15px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 450px;
margin: 20px;
transition: transform 0.3s ease-in-out;
}
/* Hover effect for form container */
.form-container:hover {
transform: scale(1.05);
}
/* Input & Label Styling */
label {
font-weight: bold;
display: block;
margin-bottom: 5px;
color: #333;
}
/* Form fields (inputs, select) styling */
input, select {
width: 100%;
padding: 12px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.3s ease;
}
/* Input fields on focus */
input:focus, select:focus {
border-color: #ff7e5f;
outline: none;
}
/* Placeholder styling */
input::placeholder, select::placeholder {
color: #888;
}
/* Floating label effect */
input.focus, select.focus {
border-color: #ff7e5f;
}
/* Error message styling */
.error-message {
color: red;
font-size: 12px;
margin-top: 5px;
display: block;
}
/* Gender radio buttons container */
.gender-container {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 15px;
}
/* Button Styling */
button {
background: linear-gradient(to right, #ff7e5f, #feb47b);
color: #fff;
border: none;
cursor: pointer;
font-size: 18px;
font-weight: bold;
padding: 12px;
border-radius: 5px;
transition: opacity 0.3s ease;
}
/* Button hover effect */
button:hover {
opacity: 0.8;
}
/* Confirmation message styling */
.confirmation-message {
padding: 20px;
background-color: #e8f4f8;
border: 1px solid #a3c6e8;
border-radius: 5px;
margin-top: 20px;
color: #333;
display: none; /* Initially hidden */
}
/* Confirmation message title */
.confirmation-message h3 {
font-size: 24px;
color: #4CAF50;
}
/* Confirmation message paragraphs */
.confirmation-message p {
font-size: 16px;
line-height: 1.5;
}
/* Responsive design: Adjust layout for smaller screens */
@media (max-width: 600px) {
.form-container {
padding: 20px;
width: 90%;
}
h2 {
font-size: 20px;
}
button {
font-size: 16px;
padding: 10px;
}
}
text-transform: uppercase;
letter-spacing: 1px;
}
/* Form container styling */
.form-container {
background: #ffffff;
padding: 40px 40px;
border-radius: 15px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
width: 100%;
max-width: 500px;
margin: 20px;
transition: transform 0.3s ease-in-out;
}
.form-container:hover {
transform: scale(1.03);
}
/* Form field styling */
label {
font-weight: bold;
display: block;
margin-bottom: 8px;
color: #333;
font-size: 18px;
text-transform: capitalize;
}
input, select, button {
width: 100%;
padding: 12px;
margin-bottom: 18px;
border: 1px solid #ccc;
border-radius: 5px;
font-size: 16px;
box-sizing: border-box;
transition: border-color 0.3s ease-in-out;
}
input:focus, select:focus, button:focus {
border-color: #ff7e5f;
outline: none;
}
input[type="radio"] {
width: auto;
margin-right: 12px;
}
/* Gender selection styling */
.gender-container {
display: flex;
align-items: center;
gap: 20px;
margin-bottom: 20px;
}
.gender-container input {
margin-right: 8px;
}
button {
background: linear-gradient(to right, #ff7e5f, #feb47b);
color: #fff;
border: none;
cursor: pointer;
font-size: 18px;
font-weight: bold;
padding: 14px;
transition: opacity 0.3s ease, transform 0.3s ease;
}
button:hover {
opacity: 0.9;
transform: scale(1.05);
}
button:active {
transform: scale(1);
}
/* Confirmation message styling */
.confirmation-message {
padding: 30px;
background-color: #e8f4f8;
border: 1px solid #a3c6e8;
border-radius: 8px;
margin-top: 30px;
color: #333;
font-size: 18px;
font-weight: 600;
line-height: 1.6;
transition: opacity 0.5s ease-in-out;
opacity: 0;
animation: fadeIn 1s forwards;
}
@keyframes fadeIn {
0% {
opacity: 0;
}
100% {
opacity: 1;
}
}
.confirmation-message h3 {
font-size: 26px;
color: #4CAF50;
margin-bottom: 15px;
text-transform: uppercase;
}
.confirmation-message p {
font-size: 18px;
margin-bottom: 8px;
}
.confirmation-message p strong {
color: #ff7e5f;
}
/* Input Field Styles */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
border: 2px solid #ddd;
transition: border-color 0.3s ease;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="date"]:focus, select:focus {
border-color: #ff7e5f;
}
/* Responsive Design for Mobile */
@media (max-width: 600px) {
.form-container {
padding: 20px;
max-width: 100%;
}
label {
font-size: 16px;
}
input, select, button {
font-size: 14px;
}
.confirmation-message {
font-size: 16px;
padding: 20px;
}
}
/* Tooltip Styling for Form Inputs */
input:invalid, select:invalid {
border-color: #e74c3c;
}
input:invalid + span, select:invalid + span {
visibility: visible;
color: #e74c3c;
font-size: 14px;
font-style: italic;
margin-top: 5px;
display: block;
}
/* Custom Scrollbar Styling */
::-webkit-scrollbar {
width: 12px;
}
::-webkit-scrollbar-track {
background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
background: #888;
border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
background: #555;
}