/*
 Theme Name:   Charitywp Child
 Theme URI:    http://charitywp.thimpress.com/
 Description:  Charitywp Child Theme
 Author:       ThimPress
 Author URI:   http://thimpress.com
 Template:     charitywp
 Version:      1.0.0
 Text Domain:  charitywp-child
*/

.home-page .tnp-subscription {
    max-width: 640px;
}

.home-page .newsletter-anchor-target {
    scroll-margin-top: 120px;
}

.home-page .tnp-subscription form {
    display: flex;
    align-items: end;
    gap: 12px;
    flex-wrap: nowrap;
}

.home-page .tnp-subscription .tnp-field {
    margin-bottom: 0;
}

.home-page .tnp-subscription .tnp-field-firstname,
.home-page .tnp-subscription .tnp-field-email {
    flex: 1 1 0;
}

.home-page .tnp-subscription .tnp-field-button {
    flex: 0 0 auto;
}

.home-page .tnp-subscription input[type="text"],
.home-page .tnp-subscription input[type="email"] {
    min-height: 54px;
    padding: 0 18px;
    border: 1px solid #d9d3ca;
    border-radius: 12px;
    background: #fff;
    color: #383636;
}

.home-page .tnp-subscription input[type="text"]:focus,
.home-page .tnp-subscription input[type="email"]:focus {
    border-color: #f54c1e;
    box-shadow: 0 0 0 3px rgba(245, 76, 30, 0.16);
    outline: none;
}

.home-page .tnp-subscription input.tnp-submit {
    min-height: 54px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #f54c1e;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .tnp-subscription input.tnp-submit:hover,
.home-page .tnp-subscription input.tnp-submit:focus {
    background: #d94218;
    box-shadow: 0 12px 24px rgba(245, 76, 30, 0.22);
    transform: translateY(-1px);
    outline: none;
}

@media (max-width: 767px) {
    .home-page .tnp-subscription form {
        flex-wrap: wrap;
    }

    .home-page .tnp-subscription .tnp-field-firstname,
    .home-page .tnp-subscription .tnp-field-email,
    .home-page .tnp-subscription .tnp-field-button {
        flex: 1 1 100%;
    }

    .home-page .tnp-subscription input.tnp-submit {
        width: 100%;
    }
}

.home-page .tnp-inline-message,
.home-page .tnp-message,
.home-page .tnp-error {
    position: relative;
    width: 100%;
    margin: 10px 0 0;
    padding: 16px 18px 16px 52px;
    border-radius: 14px;
    font-size: 15px;
    line-height: 1.5;
}

.home-page .tnp-inline-message p,
.home-page .tnp-message p,
.home-page .tnp-error p {
    margin: 0;
}

.home-page .tnp-inline-message::before,
.home-page .tnp-message::before,
.home-page .tnp-error::before {
    position: absolute;
    top: 50%;
    left: 18px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    transform: translateY(-50%);
}

.home-page .tnp-inline-message.is-success,
.home-page .tnp-message {
    border: 1px solid #b9e5c8;
    background: #eefaf1;
    color: #1f6b3a;
}

.home-page .tnp-inline-message.is-success::before,
.home-page .tnp-message::before {
    content: "\\2713";
    background: #2e8b57;
}

.home-page .tnp-inline-message.is-error,
.home-page .tnp-error {
    border: 1px solid #efc2c2;
    background: #fff3f3;
    color: #9f2d2d;
}

.home-page .tnp-inline-message.is-error::before,
.home-page .tnp-error::before {
    content: "!";
    background: #c83d3d;
}
