/*
    Project: GoGoChart website revamp
    Author: http://www.CodingCat.hk
*/

main > section:not(:last-child) { border-bottom: 1px solid #d3d3d3; }
h1, h2, h3 { margin: 0; padding: 0; }

/* Page Cover */
.page-cover {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 95px);
    padding-top: 40px; padding-bottom: 40px;
    color: #4b4b4b;
}
.page-cover h1 { font-size: 38px; font-weight: 700; }
.page-cover h2 { font-size: 26px; text-transform: none; }

.page-cover content {
    flex-grow: 1;
    flex-direction: column;
    align-items: center;
    display: flex;
    width: 100%;
}
.page-cover__google-icon {
    margin-bottom: 28px;
    width: 100px;
}
.page-cover content > div {
    flex-grow: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 1100px;
    background-image: url('../images/Google-Ad.html/cover.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* What is Google Ads */
.google-aw {
    padding-top: 50px;
    padding-bottom: 50px;
    color: #4b4b4b;
}
.google-aw header {
    text-transform: uppercase;
}
.google-aw header h2 {
    font-size: 38px;
    font-weight: 700;
}
.google-aw content p {
    margin: 0 auto;
    max-width: 780px;
}

.google-aw__grid {
    display: grid;
    grid-template-columns: 32% 32% 32%;
    grid-column-gap: 4px;
    margin: 0;
    margin-top: 28px;
    padding: 0;
}
.google-aw__grid img {
    max-width: 90px;
}
.google-aw__grid li {
    position: relative;
    margin: 0;
    padding: 14px;
    list-style-type: none;
    font-weight: 700;
    font-size: 21px;
    color: #14bd94;
}

/* Why Google Ads */
.why-google-aw {
    padding-top: 50px;
    padding-bottom: 50px;
    color: #4b4b4b;
}

.why-google-aw header h2 {
    font-size: 38px;
    font-weight: 700;
}

.why-google-aw content p {
    margin: 0 auto;
    max-width: 780px;
}

/* Contact Us */
.contact-us h2 { font-size: 38px; font-weight: 700; color: #4b4b4b; }
.contact-us content p { color: #4b4b4b; }
.contact-us content .form-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 58px;
    grid-column-gap: 30px;
}
.contact-us content .form-controls input {
    padding: 21px 14px;
    -moz-box-shadow: 0 0 0 0 rgba(217, 83, 79, .5);
    -webkit-box-shadow: 0 0 0 0 rgba(217, 83, 79, .5);
    box-shadow: 0 0 0 0 rgba(217, 83, 79, .5);
}
.contact-us content .form-controls input:focus {
    -moz-box-shadow: 0 0 0 3px rgba(217, 83, 79, .5);
    -webkit-box-shadow: 0 0 0 3px rgba(217, 83, 79, .5);
    box-shadow: 0 0 0 3px rgba(217, 83, 79, .5);
}
.contact-us.focused content .form-controls input.focused:not(:valid) {
    -moz-box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.7);
    -webkit-box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.7);
}
.contact-us.focused content .form-controls input.focused:not(:valid) ~ * {
    margin-top: 7px;
    max-height: 100px;
    height: auto;
    opacity: 1;
}
.contact-us content .form-controls span {
    position: absolute;
    display: inline-block;
    margin-top: 0;
    max-height: 0;
    height: 0;
    overflow: hidden;
    opacity: 0;
}

.contact-us content .form-controls ~ * { position: relative; }
.contact-us content button {
    border: 2px solid #4b4b4b;
    background-color: transparent;
    padding: 10px 30px;
    font-weight: 400;
    color: #4b4b4b;
    text-transform: uppercase;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    border-radius: 4px;
}
.contact-us content button:hover,
.contact-us content button:focus {
    border-color: #1de9b6;
    outline-width: 0;
    background-color: #1de9b6;
    color: #fff;
}
.contact-us content button ~ * {
    position: absolute;
    margin-top: 10px;
    top: 100%;
    left: 0;
    width: 100%;
}
.contact-us content button ~ .text-danger { display: none; font-size: 14px; color: #e74c3c; }
.contact-us content .form-controls.shake-horizon ~ * button ~ .text-danger { display: block; }

.contact-us content button ~ .text-info { display: none; font-size: 26px; color: #18bc9c; }
.contact-us content.submitted button ~ .text-info { display: block; }