Multi-step_Form/style.css

131 lines
2.4 KiB
CSS
Raw Permalink Normal View History

2024-12-27 07:06:45 +00:00
body {
margin: 0;
padding: 0;
2024-12-26 12:23:20 +00:00
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
box-sizing: border-box;
display: flex;
2024-12-27 07:06:45 +00:00
justify-content: center;
align-items: center;
background-image: linear-gradient(#FAF6E3, #D8DBBD, #B59F78);
2024-12-26 12:23:20 +00:00
height: 100vh;
width: 100vw;
}
2024-12-27 07:06:45 +00:00
html
{
scroll-behavior: smooth;
}
input, select, button {
border: 1px solid #ccc;
2024-12-26 12:23:20 +00:00
border-radius: 8px;
2024-12-27 07:06:45 +00:00
padding: 10px;
margin: 10px 0;
width: 100%;
box-sizing: border-box;
font-size: 16px;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
input::placeholder {
font-size: 14px;
color: #888;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
.form-container {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
width: 75%;
max-width: 600px;
display: flex;
flex-direction: column;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
#gender {
display: flex;
justify-content: space-between;
align-items: center;
flex-direction: row;
gap: 20px;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
.step {
display: none;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
.step.active {
display: block;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
#btn-div {
2024-12-26 12:23:20 +00:00
padding: 20px;
display: flex;
2024-12-27 07:06:45 +00:00
justify-content: space-between;
width: 100%;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
#prev-btn, #next-btn, #submit-btn, #refresh-btn {
background-color: rgb(57, 57, 220);
color: white;
2024-12-26 12:23:20 +00:00
border: none;
border-radius: 10px;
2024-12-27 07:06:45 +00:00
padding: 10px 20px;
cursor: pointer;
max-width: 150px;
transition: background-color 0.3s ease;
margin-right: 35px;
}
2024-12-26 12:23:20 +00:00
2024-12-27 07:06:45 +00:00
#prev-btn:hover, #next-btn:hover, #submit-btn:hover, #refresh-btn:hover {
background-color: rgb(13, 13, 242);
transform: translateY(2px);
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
fieldset {
border: 1px solid #ccc;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
legend {
font-size: 18px;
font-weight: bold;
}
2024-12-26 12:23:20 +00:00
2024-12-27 07:06:45 +00:00
h2 {
text-align: center;
margin-bottom: 20px;
2024-12-26 12:23:20 +00:00
}
2024-12-27 07:06:45 +00:00
.skills label {
display: inline-block;
margin-bottom: 10px;
}
#review button {
background-color: #f17e13;
color: white;
border: none;
border-radius: 5px;
padding: 8px 15px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease, transform 0.3s ease;
margin-top: 10px;
max-width: 85px;
}
#review button:hover {
background-color: #ec971f;
transform: translateY(-2px);
}
#review button:focus {
outline: none;
}
#review button:active {
transform: translateY(2px);
2024-12-26 12:23:20 +00:00
}