Coder Wrap provides free to use snippets Coder Wrap provides free to use snippets

Back to Forms
Preview Source Code
Download
HTML
CSS
/**Typeo CSS Start**/
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,400;0,500;0,700;0,800;1,300;1,400;1,500;1,600;1,700&display=swap');

* {
 box-sizing: border-box;
}

body {
 margin: 0px;
 background-color: #ffffff;
}

/**Typeo CSS End**/
.contact-info-group, .contact-info-group * {
 --page-width: 1230px;
 --base-fm: 'Rubik', sans-serif;
 --title-size: 30px;
 --base-size: 16px;
 --base-clr: #2e2e2e;
 --white-clr: #ffffff;
 --theme-clr: #ff6200;
 --bg-clr: #f8f9fa;
}

.contact-info-group {
 font-family: var(--base-fm);
 font-size: var(--base-size);
 color: var(--base-clr);
}

.text-center {
 text-align: center;
}

.page-width {
 max-width: var(--page-width);
 margin: auto;
 width: 100%;
 padding: 0 15px;
}

.contact-info-scn {
 background-attachment: fixed;
 width: 100%;
 background-size: cover;
 background-position: center center;
 padding: 80px 0;
}

.cont-details {
 display: flex;
 flex-flow: row wrap;
}

.cont-details .cont-part {
 background-color: var(--white-clr);
 margin: 20px;
 width: calc(33.33% - 40px);
 padding: 20px;
 min-height: 200px;
 text-align: center;
 display: flex;
 flex-flow: row wrap;
 align-content: center;
 justify-content: center;
 border-radius: 4px;
}

.cont-part .c-info-label {
 font-weight: 500;
 display: block;
 width: 100%;
 margin-bottom: 5px;
}

.cont-part p {
 margin: 0;
 display: block;
 min-height: 60px;
}

.cont-part a {
 color: var(--theme-clr);
}

.cont-part a:hover {
 text-decoration: none;
}

.cont-details .cont-part {
 background-color: var(--white-clr);
 margin: 20px;
 width: calc(33.33% - 40px);
 padding: 20px;
 min-height: 200px;
 text-align: center;
 display: flex;
 flex-flow: row wrap;
 align-content: center;
 justify-content: center;
 border-radius: 4px;
}

.cont-part p a {
 display: flex;
 flex-flow: row wrap;
 margin: 6px 0px;
}

.contactus-scn {
 padding: 50px 0px;
 background-color: var(--bg-clr);
}

.contact-view {
 display: flex;
 flex-flow: row wrap;
 width: 100%;
 justify-content: space-between;
 padding-top: 30px;
}

.contact-view .map-part, .contact-view .content-form {
 width: 48%;
}

.contact-view .map-part iframe {
 width: 100%;
 height: 504px;
 border: #f3f3f3 4px solid;
}

.contactus-scn .sub-title {
 display: block;
 color: var(--theme-clr);
}

.contactus-scn .global-title {
 margin: 6px 0;
 font-size: var(--title-size);
}

.twice-two {
 display: grid;
 grid-gap: 20px;
 grid-template-columns: 1fr 1fr;
 margin-bottom: 20px;
}

.twice {
 margin-bottom: 20px;
}

.content-form input, .content-form textarea {
 background: var(--bg-clr);
 border: 2px solid rgba(216, 216, 216, 0.3);
 color: #777;
 font-size: var(--base-size);
 padding: 12px 15px;
 width: 100%;
 border-radius: 4px;
 height: 55px;
 font-family: var(--base-fm);
}

.content-form form textarea {
 resize: none;
 min-height: 200px;
}

.content-form .btn-contact {
 border: none;
 font-size: 16px;
 padding: 15px 30px;
 margin: 20px auto 0;
 color: var(--theme-clr);
 background: transparent;
 display: inline-block;
 font-weight: 400;
 text-align: center;
 vertical-align: middle;
 cursor: pointer;
 -webkit-user-select: none;
 -moz-user-select: none;
 -ms-user-select: none;
 user-select: none;
 border: 1px solid var(--theme-clr);
 border-radius: 0.25rem;
 transition: 0.5s all;
 font-family: var(--base-fm);
 text-transform: uppercase;
 width: 100%;
}

.content-form .btn-contact:hover {
 color: var(--white-clr);
 background: var(--theme-clr);
}

@media(max-width:1200px) {
 .contact-info-scn {
  background-position: center center;
  padding: 40px 0;
 }

 .cont-details .cont-part {
  min-height: 160px;
  margin: 10px;
  width: calc(33.33% - 20px);
 }

 .contact-view {
  padding-top: 10px;
 }

 .content-form form textarea {
  min-height: 140px;
 }

 .twice-two {
  grid-gap: 10px;
  margin-bottom: 10px;
 }

 .twice {
  margin-bottom: 10px;
 }

 .contact-view .map-part iframe {
  height: 414px;
 }

}

@media(max-width:767px) {
 .cont-details .cont-part {
  min-height: 160px;
  margin: 6px;
  width: 100%;
 }

 .contactus-scn .global-title {
  font-size: calc(var(--title-size) - 6px);
 }

 .contact-view .map-part, .contact-view .content-form {
  width: 100%;
 }

 .contact-view .map-part {
  margin-top: 30px;
 }

}

Related Snippets

Leave a comment

Your email address will not be published. Required fields are marked *