/*
|--------------------------------------------------------------------------
| SweetMeet Contact Form
|--------------------------------------------------------------------------
*/

.sm-contact {
    width: 100%;
    max-width: 1060px;
    margin: 0 auto;

    padding: 32px 26px 34px;

    background: #fff;

    border: 1px solid #ddd;
    border-radius: 5px;

    box-sizing: border-box;
}


/*
|--------------------------------------------------------------------------
| Heading
|--------------------------------------------------------------------------
*/

.sm-contact__icon {
    margin-bottom: 18px;

    color: #c8a96a;
}


.sm-contact__title {
    margin: 0 0 18px;

    color: #111;

    font-size: 28px;
    line-height: 1.2;
    font-weight: 600;
}


.sm-contact__intro {
    margin-bottom: 28px;

    color: #333;

    font-size: 17px;
    line-height: 1.75;
}


.sm-contact__intro p {
    margin: 0;
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.sm-contact__row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 28px;

    margin-bottom: 24px;
}


.sm-contact__field {
    width: 100%;
}


.sm-contact input[type="text"],
.sm-contact input[type="email"],
.sm-contact input[type="number"],
.sm-contact textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d8d8d8;
    border-radius: 4px;

    background: #fafafa;

    color: #222;

    font-size: 15px;
    line-height: 1.4;

    box-sizing: border-box;

    outline: none;

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


.sm-contact input[type="text"],
.sm-contact input[type="email"],
.sm-contact input[type="number"] {
    min-height: 47px;
}


.sm-contact textarea {
    min-height: 165px;

    resize: vertical;
}


.sm-contact input::placeholder,
.sm-contact textarea::placeholder {
    color: #b9bdc4;

    opacity: 1;
}


.sm-contact input:focus,
.sm-contact textarea:focus {
    border-color: #c8a96a;

    background: #fff;

    box-shadow:
        0 0 0 2px rgba(200, 169, 106, 0.14);
}


.sm-contact__field--message {
    margin-bottom: 24px;
}


/*
|--------------------------------------------------------------------------
| Security Check
|--------------------------------------------------------------------------
*/

.sm-contact__security {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 24px;

    margin: 2px 0 24px;
    padding: 18px 20px;

    background: #f7f7f7;

    border: 1px solid #e2e2e2;
    border-radius: 4px;
}


.sm-contact__security-copy {
    flex: 1 1 auto;
}


.sm-contact__security-title {
    margin-bottom: 4px;

    color: #111;

    font-size: 14px;
    font-weight: 600;
}


.sm-contact__security-question {
    color: #666;

    font-size: 14px;
    line-height: 1.5;
}


.sm-contact__security-question strong {
    color: #111;
}


.sm-contact__security-answer {
    flex: 0 0 125px;
}


.sm-contact__security-answer input {
    text-align: center;
}


/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.sm-contact__footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;
}


.sm-contact__privacy {
    display: flex;

    align-items: center;

    gap: 9px;

    margin: 0;

    color: #222;

    font-size: 13px;

    cursor: pointer;
}


.sm-contact__privacy input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #c8a96a;
}


.sm-contact__privacy a {
    color: #b18f4f;

    text-decoration: none;
}


.sm-contact__privacy a:hover {
    text-decoration: underline;
}


/*
|--------------------------------------------------------------------------
| Send Button
|--------------------------------------------------------------------------
*/

.sm-contact__submit {
    min-width: 86px;

    padding: 11px 21px;

    border: 1px solid #aa8745;
    border-radius: 4px;

    background: #c8a96a;

    color: #fff;

    font-size: 15px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}


.sm-contact__submit:hover,
.sm-contact__submit:focus {
    background: #b79453;

    border-color: #9d7b3e;

    color: #fff;
}


/*
|--------------------------------------------------------------------------
| Messages
|--------------------------------------------------------------------------
*/

.sm-contact__notice {
    margin: 0 0 24px;
    padding: 13px 16px;

    border-radius: 4px;

    font-size: 14px;
    line-height: 1.55;
}


.sm-contact__notice--success {
    background: #f3f8f2;

    border: 1px solid #cbdcc8;

    color: #31542c;
}


.sm-contact__notice--error {
    background: #fff5f5;

    border: 1px solid #e5c7c7;

    color: #8a3333;
}


/*
|--------------------------------------------------------------------------
| Honeypot
|--------------------------------------------------------------------------
|
| Deliberately visually hidden.
|
*/

.sm-contact__website {
    position: absolute !important;

    left: -99999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;

    opacity: 0 !important;

    pointer-events: none !important;
}


/*
|--------------------------------------------------------------------------
| WordPress Screen Reader Text
|--------------------------------------------------------------------------
*/

.sm-contact .screen-reader-text {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 620px) {

    .sm-contact {
        padding: 26px 20px 28px;
    }


    .sm-contact__title {
        font-size: 25px;
    }


    .sm-contact__intro {
        font-size: 16px;
        line-height: 1.65;
    }


    .sm-contact__row {
        grid-template-columns: 1fr;

        gap: 16px;

        margin-bottom: 16px;
    }


    .sm-contact__field--message {
        margin-bottom: 18px;
    }


    .sm-contact__security {
        align-items: flex-start;

        flex-direction: column;

        gap: 13px;

        padding: 16px;
    }


    .sm-contact__security-answer {
        width: 130px;

        flex: none;
    }


    .sm-contact__footer {
        align-items: flex-start;

        flex-direction: column;

        gap: 20px;
    }


    .sm-contact__submit {
        width: 100%;
    }

}