/*
 * The homepage and popup reuse form 1. Keep every rule inside the single-post
 * sidebar widget; never change the shared form's fields or submission settings.
 */
.single-post #secondary #custom_html-2 {
    border: 1px solid #dce8e1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 28px rgb(6 69 42 / 7%);
    overflow: hidden;
}

.single-post #secondary #custom_html-2,
.single-post #secondary #custom_html-2 * {
    box-sizing: border-box;
}

.single-post #secondary #custom_html-2 > .widget-title {
    margin: 0;
    padding: 18px 20px;
    border-radius: 0;
    background: #00833e;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.single-post #secondary #custom_html-2 > .is-divider {
    display: none;
}

.single-post #secondary #custom_html-2 > .textwidget {
    container-name: atp-blog-form;
    container-type: inline-size;
}

.single-post #secondary #custom_html-2 .form-flat-vien {
    width: 100%;
    margin: 0;
    padding: 22px 20px 12px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.single-post #secondary #custom_html-2 .fluentform,
.single-post #secondary #custom_html-2 form.frm-fluent-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.single-post #secondary #custom_html-2 .ff-t-container {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    gap: 0;
}

.single-post #secondary #custom_html-2 .ff-t-cell {
    display: block;
    flex-basis: 100% !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.single-post #secondary #custom_html-2 .ff-el-group {
    width: 100%;
    min-width: 0;
    margin: 0 0 17px;
}

.single-post #secondary #custom_html-2 .ff-el-input--label {
    display: block;
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
    text-align: left;
    line-height: 1.45;
}

.single-post #secondary #custom_html-2 .ff-el-input--label label {
    display: inline;
    margin: 0;
    padding: 0;
    color: #243c30;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    white-space: normal;
}

.single-post #secondary #custom_html-2 .ff-el-input--content {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.single-post #secondary #custom_html-2 .ff-el-form-control {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 12px;
    border: 1px solid #ccdcd2;
    border-radius: 9px;
    background-color: #fff;
    color: #243c30;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.single-post #secondary #custom_html-2 .ff-el-form-control::placeholder {
    color: #7a8880;
    font-size: 14px;
    opacity: 1;
}

.single-post #secondary #custom_html-2 select.ff-el-form-control {
    padding-right: 32px;
    font-size: 14px;
}

.single-post #secondary #custom_html-2 textarea.ff-el-form-control {
    height: 96px;
    min-height: 96px;
    resize: vertical;
}

.single-post #secondary #custom_html-2 .ff-el-form-control:focus {
    border-color: #00833e;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(0 131 62 / 12%);
}

.single-post #secondary #custom_html-2 .ff-el-is-error .ff-el-form-control,
.single-post #secondary #custom_html-2 .ff-el-form-control[aria-invalid="true"] {
    border-color: #c43c38;
}

.single-post #secondary #custom_html-2 .error,
.single-post #secondary #custom_html-2 .text-danger,
.single-post #secondary #custom_html-2 .ff-el-error-message {
    margin-top: 6px;
    color: #b1322e;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.single-post #secondary #custom_html-2 .ff_submit_btn_wrapper {
    margin: 5px 0 0;
    text-align: left;
}

.single-post #secondary #custom_html-2 .ff-btn-submit:not(.ff_btn_no_style) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    margin: 0 !important; /* Override the legacy global -50px bottom margin. */
    padding: 12px 16px;
    border: 1px solid #00833e;
    border-radius: 9px;
    background: #00833e;
    color: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: .3px;
    text-align: center;
    white-space: normal;
    cursor: pointer;
    transition: background-color .18s ease;
}

.single-post #secondary #custom_html-2 .ff-btn-submit:not(.ff_btn_no_style):hover {
    border-color: #006b33;
    background: #006b33;
    color: #fff;
}

.single-post #secondary #custom_html-2 .ff-btn-submit:focus-visible {
    outline: 3px solid #ffc200;
    outline-offset: 3px;
}

.single-post #secondary #custom_html-2 .ff-btn-submit:disabled {
    opacity: .65;
    cursor: wait;
}

.single-post #secondary #custom_html-2 .ff-message-success {
    margin: 0;
    padding: 14px;
    border: 1px solid #b9ddc8;
    border-radius: 9px;
    background: #eef8f2;
    color: #06452a;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.6;
}

.single-post #secondary #custom_html-2 .textwidget > i {
    display: block;
    margin: 0 !important;
    padding: 0 20px 20px;
    color: #64776b;
    font-size: 12px !important;
    font-style: normal;
    line-height: 1.5;
}

/* A narrow desktop/tablet sidebar must still have room for readable controls. */
@media (min-width: 850px) and (max-width: 1199px) {
    body.single-post #main #content.blog-single > .row > .post-sidebar.large-3.col {
        flex: 0 0 320px !important;
        max-width: 320px !important;
    }

    body.single-post #main #content.blog-single > .row > .large-9.col {
        flex: 0 1 calc(100% - 320px) !important;
        max-width: calc(100% - 320px) !important;
    }
}

/* Use the form's available space, not the screen width, to enable two columns.
 * Older browsers gracefully keep the default single-column layout above. */
@container atp-blog-form (min-width: 520px) {
    .single-post #secondary #custom_html-2 .ff-column-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 20px;
    }

    .single-post #secondary #custom_html-2 .form-flat-vien {
        padding: 24px 24px 12px;
    }

    .single-post #secondary #custom_html-2 .textwidget > i {
        padding-right: 24px;
        padding-left: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-post #secondary #custom_html-2 .ff-el-form-control,
    .single-post #secondary #custom_html-2 .ff-btn-submit {
        transition: none;
    }
}
