assignment_multistep_form/style.css
2024-12-27 10:53:27 +05:30

156 lines
2.5 KiB
CSS

body {
background-image: url('https://images.pexels.com/photos/4951280/pexels-photo-4951280.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1');
background-repeat: no-repeat;
background-size: cover;
font-family: Arial, Helvetica, sans-serif;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.formContainer {
background: #49a1bc;
padding: 20px;
border-radius: 9px;
width: 100%;
max-width: 450px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
h1 {
text-align: center;
margin-bottom: 20px;
color: white;
}
label {
display: block;
margin-top: 10px;
color: white;
}
input, select {
width: 100%;
padding: 8px;
margin-top: 5px;
border: 1px solid #ccc;
border-radius: 3px;
box-sizing: border-box;
}
input[type="radio"], input[type="checkbox"] {
width: auto;
margin-right: 5px;
}
input:invalid {
border-color: red;
}
.error {
color: red;
font-size: 12px;
margin-top: 5px;
}
.gender {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 10px;
}
.skill {
display: flex;
flex-direction: column;
gap: 10px;
margin-top: 10px;
}
.skill label{
display: flex;
align-items: center;
gap: 5px;
}
.skill input[type="checkbox"] {
width: auto;
}
.form-navigation {
display: flex;
justify-content: space-between;
margin-top: 20px;
}
button {
background: #0E3949;
color: white;
padding: 10px 20px;
border-radius: 4px;
cursor: pointer;
border: none;
}
button:hover {
background-color: #17A1B4;
}
button:disabled {
background-color: #ccc;
cursor: not-allowed;
}
.step-indicator {
text-align: center;
margin-bottom: 20px;
}
.step-indicator span {
display: inline-block;
width: 20px;
height: 20px;
margin: 0 5px;
border-radius: 50%;
background: white;
line-height: 20px;
color: black;
}
.step-indicator .active {
background: #21B2DC;
}
.hidden {
display: none;
}
button[type="button"]:disabled {
background-color: #ccc;
}
#review {
margin-top: 20px;
background: #fff;
padding: 15px;
border-radius: 5px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
@media (max-width: 500px) {
.formContainer {
width: 100%;
padding: 15px;
}
h1 {
font-size: 20px;
}
.step-indicator span {
width: 15px;
height: 15px;
line-height: 15px;
}
}