/* ==========================================================
   THE OPEN PAGE - PUBLIC STORY SUBMISSION
========================================================== */

.top-public-submit-shell {
    width: min(960px, 100%);
    margin: 0 auto;
    color: #202020;
}

.top-public-submit-heading {
    margin-bottom: 35px;
}

.top-public-submit-heading > span {
    display: block;
    margin-bottom: 8px;
    color: #006c55;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 11px;
    font-weight: 700;
}

.top-public-submit-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.05;
}

.top-public-submit-heading p {
    max-width: 760px;
    margin: 0;
    color: #666666;
    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================
   Messages
========================================================== */

.top-submit-message {
    margin-bottom: 30px;
    padding: 18px 20px;
    border: 1px solid;
    font-size: 14px;
    line-height: 1.65;
}

.top-submit-message strong {
    display: block;
    margin-bottom: 4px;
}

.top-submit-message p {
    margin: 0;
}

.top-submit-success {
    border-color: #b9d8c7;
    background: #f0f8f3;
    color: #245b3c;
}

.top-submit-error {
    border-color: #e5b8b8;
    background: #fff4f4;
    color: #8b2d2d;
}


/* ==========================================================
   Form Sections
========================================================== */

.top-public-submit-form {
    width: 100%;
}

.top-submit-section {
    margin-bottom: 28px;
    padding: 32px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
}

.top-submit-section-heading {
    display: flex;
    gap: 16px;
    margin-bottom: 27px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.top-submit-section-heading > span {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f4b3d;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.top-submit-section-heading h2 {
    margin: 0 0 5px;
    font-size: 24px;
    line-height: 1.2;
}

.top-submit-section-heading p {
    margin: 0;
    color: #777777;
    font-size: 13px;
    line-height: 1.6;
}

.top-submit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* ==========================================================
   Fields
========================================================== */

.top-submit-field {
    margin-bottom: 20px;
}

.top-submit-field:last-child {
    margin-bottom: 0;
}

.top-submit-field label {
    display: block;
    margin-bottom: 7px;
    color: #282828;
    font-size: 13px;
    font-weight: 700;
}

.top-submit-field input[type="text"],
.top-submit-field input[type="email"],
.top-submit-field input[type="file"],
.top-submit-field select,
.top-submit-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d6d6d6;
    border-radius: 0;
    background: #ffffff;
    color: #202020;
    font: inherit;
    outline: none;
}

.top-submit-field textarea {
    min-height: 110px;
    resize: vertical;
}

.top-submit-field input:focus,
.top-submit-field select:focus,
.top-submit-field textarea:focus {
    border-color: #0f4b3d;
    box-shadow: 0 0 0 1px #0f4b3d;
}

.top-submit-field small {
    display: block;
    margin-top: 6px;
    color: #777777;
    font-size: 12px;
    line-height: 1.5;
}


/* ==========================================================
   Consent
========================================================== */

.top-submit-consent {
    margin: 8px 0 25px;
    padding: 20px;
    background: #f7f6f2;
}

.top-submit-consent label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #4f4f4f;
    font-size: 13px;
    line-height: 1.65;
}

.top-submit-consent input {
    flex: 0 0 auto;
    margin-top: 4px;
}


/* ==========================================================
   Submit
========================================================== */

.top-submit-final {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.top-submit-button {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #0f4b3d;
    border-radius: 0;
    background: #0f4b3d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.top-submit-button:hover {
    background: #0a392f;
}

.top-submit-final p {
    margin: 0;
    color: #777777;
    font-size: 12px;
}


/* ==========================================================
   Honeypot
========================================================== */

.top-submit-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ==========================================================
   Elementor Compatibility
========================================================== */

.elementor-widget-shortcode
.top-public-submit-shell {
    width: 100%;
}


/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 767px) {

    .top-submit-section {
        padding: 23px 18px;
    }

    .top-submit-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .top-submit-section-heading {
        gap: 12px;
    }

    .top-submit-final {
        display: block;
    }

    .top-submit-button {
        width: 100%;
    }

    .top-submit-final p {
        margin-top: 10px;
    }
}