Prévisualisation
<div class="gbc-form-container">
<form class="gbc-form">
<div class="gbc-form-group">
<label for="gbc-email">Company Email</label>
<input type="text" id="gbc-email" name="email" required="">
</div>
<div class="gbc-form-group">
<label for="gbc-textarea">How Can We Help You?</label>
<textarea name="textarea" id="gbc-textarea" rows="10" cols="50" required=""></textarea>
</div>
<button class="gbc-form-submit-btn" type="submit">Submit</button>
</form>
</div>
/* ========== FORM 4: Gradient Border Contact (gbc-) ========== */
.gbc-form-container {
width: 340px;
background: linear-gradient(#212121, #212121) padding-box,
linear-gradient(145deg, transparent 35%,#e81cff, #40c9ff) border-box;
border: 2px solid transparent;
padding: 32px 24px;
font-size: 14px;
font-family: inherit;
color: white;
display: flex;
flex-direction: column;
gap: 20px;
box-sizing: border-box;
border-radius: 16px;
}
.gbc-form-container button:active {
scale: 0.95;
}
.gbc-form-container .gbc-form {
display: flex;
flex-direction: column;
gap: 20px;
}
.gbc-form-container .gbc-form-group {
display: flex;
flex-direction: column;
gap: 2px;
}
.gbc-form-container .gbc-form-group label {
display: block;
margin-bottom: 5px;
color: #717171;
font-weight: 600;
font-size: 12px;
}
.gbc-form-container .gbc-form-group input {
width: 100%;
padding: 12px 16px;
border-radius: 8px;
color: #fff;
font-family: inherit;
background-color: transparent;
border: 1px solid #414141;
}
.gbc-form-container .gbc-form-group textarea {
width: 100%;
padding: 12px 16px;
border-radius: 8px;
resize: none;
color: #fff;
height: 96px;
border: 1px solid #414141;
background-color: transparent;
font-family: inherit;
}
.gbc-form-container .gbc-form-group input::placeholder {
opacity: 0.5;
}
.gbc-form-container .gbc-form-group input:focus {
outline: none;
border-color: #e81cff;
}
.gbc-form-container .gbc-form-group textarea:focus {
outline: none;
border-color: #e81cff;
}
.gbc-form-container .gbc-form-submit-btn {
display: flex;
align-items: flex-start;
justify-content: center;
align-self: flex-start;
font-family: inherit;
color: #717171;
font-weight: 600;
width: 40%;
background: #313131;
border: 1px solid #414141;
padding: 12px 16px;
font-size: inherit;
gap: 8px;
margin-top: 8px;
cursor: pointer;
border-radius: 6px;
}
.gbc-form-container .gbc-form-submit-btn:hover {
background-color: #fff;
border-color: #fff;
}
License MIT
Original author:
gharsh11032000
Copyright - 2026 gharsh11032000 (Harsh Gupta)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.