/* =========================================================
   CONTACT PAGE
   CharacterCounter.com
========================================================= */


/* =========================================================
   PAGE BASE
========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #ffffff;
}


/* =========================================================
   MAIN CONTACT AREA
========================================================= */

.contact-main {
    width: 100%;
    background: #ffffff;
}

.contact-section {
    padding: 115px 20px 75px;
}

.contact-container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.contact-header {
    text-align: center;
    margin-bottom: 32px;
}

.contact-header h1 {
    margin: 0 0 12px;
    padding: 0;

    font-size: 42px;
    line-height: 1.2;
    font-weight: 600;

    color: #333333;
}

.contact-header p {
    max-width: 650px;
    margin: 0 auto;

    font-size: 17px;
    line-height: 1.7;

    color: #666666;
}


/* =========================================================
   CONTACT CARD
========================================================= */

.contact-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 10px;

    padding: 34px 36px;

    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 14px rgba(0, 0, 0, 0.05);
}


/* =========================================================
   FORM
========================================================= */

.contact-form {
    width: 100%;
}

.form-group {
    width: 100%;
    margin-bottom: 24px;
}


/* =========================================================
   LABELS
========================================================= */

.form-group label {
    display: block;

    margin: 0 0 8px;

    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    color: #333333;
}

.required-mark {
    color: #d93025;
}


/* =========================================================
   INPUTS AND TEXTAREA
========================================================= */

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    display: block;

    width: 100%;

    margin: 0;

    padding: 12px 14px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;

    color: #333333;

    background: #ffffff;

    border: 1px solid #c9c9c9;
    border-radius: 6px;

    outline: none;

    box-sizing: border-box;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
    min-height: 48px;
}

.contact-form textarea {
    min-height: 70px;
    resize: vertical;
}


/* =========================================================
   PLACEHOLDER TEXT
========================================================= */

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999999;
    opacity: 1;
}


/* =========================================================
   FIELD HOVER
========================================================= */

.contact-form input[type="text"]:hover,
.contact-form input[type="email"]:hover,
.contact-form textarea:hover {
    border-color: #aaaaaa;
}


/* =========================================================
   FIELD FOCUS
========================================================= */

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #1a73e8;

    box-shadow:
        0 0 0 2px rgba(26, 115, 232, 0.14);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.submit-button {
    display: block;

    width: 100%;
    min-height: 50px;

    margin: 4px 0 0;

    padding: 12px 20px;

    border: none;
    border-radius: 6px;

    background: #1a73e8;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;

    text-align: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.05s ease;
}

.submit-button:hover {
    background: #1765cc;

    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.14);
}

.submit-button:focus {
    outline: none;

    box-shadow:
        0 0 0 3px rgba(26, 115, 232, 0.22);
}

.submit-button:active {
    background: #1558b0;
    transform: translateY(1px);
}


/* =========================================================
   CONTACT NOTE
========================================================= */

.contact-note {
    margin: 17px 0 0;

    text-align: center;

    font-size: 14px;
    line-height: 1.6;

    color: #777777;
}


/* =========================================================
   FOOTER SPACING
========================================================= */

.contact-main + .footer {
    margin-top: 0;
}


/* =========================================================
   TABLET
========================================================= */

@media screen and (max-width: 768px) {

    .contact-section {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .contact-container {
        max-width: 650px;
    }

    .contact-header {
        margin-bottom: 26px;
    }

    .contact-header h1 {
        font-size: 36px;
    }

    .contact-header p {
        font-size: 16px;
    }

    .contact-card {
        padding: 30px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media screen and (max-width: 600px) {

    .contact-section {
        padding:
            92px
            15px
            50px;
    }

    .contact-header {
        margin-bottom: 24px;
    }

    .contact-header h1 {
        margin-bottom: 10px;
        font-size: 32px;
    }

    .contact-header p {
        font-size: 16px;
        line-height: 1.6;
    }

    .contact-card {
        padding: 24px 20px;

        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 21px;
    }

    .form-group label {
        font-size: 15px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 16px;

        padding: 11px 12px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"] {
        min-height: 46px;
    }

    .contact-form textarea {
        min-height: 70px;
    }

    .submit-button {
        min-height: 48px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media screen and (max-width: 400px) {

    .contact-section {
        padding-left: 12px;
        padding-right: 12px;
    }

    .contact-header h1 {
        font-size: 30px;
    }

    .contact-card {
        padding:
            22px
            16px;
    }

}