/* =========================================================
   AZPA ARTICLE SUBMISSIONS
   Front-End Submission Form
========================================================= */

.azpa-article-submission-form {
    max-width: 900px;
    margin: 30px auto;
    color: #111;
    font-size: 16px;
    line-height: 1.6;
}

.azpa-as-section {
    background: #fff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
}

.azpa-as-section h2 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.3;
    color: #022559;
}

.azpa-as-section-intro {
    margin: 0 0 25px;
    color: #555;
}

.azpa-as-field {
    margin-bottom: 24px;
}

.azpa-as-field:last-child {
    margin-bottom: 0;
}

.azpa-as-field label {
    display: block;
    margin-bottom: 7px;
    color: #111;
    font-weight: 600;
}

.azpa-required {
    color: #c62828;
}

.azpa-as-field input[type="text"],
.azpa-as-field input[type="url"],
.azpa-as-field input[type="email"],
.azpa-as-field textarea,
.azpa-as-field select {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 5px;
    background: #fff;
    color: #111;
    font-size: 16px;
    line-height: 1.5;
}

.azpa-as-field input:focus,
.azpa-as-field textarea:focus,
.azpa-as-field select:focus {
    border-color: #022559;
    outline: none;
    box-shadow: 0 0 0 1px #022559;
}

.azpa-as-field input[type="file"] {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px dashed #b8b8b8;
    border-radius: 5px;
    background: #fafafa;
}

.azpa-as-field small {
    display: block;
    margin-top: 6px;
    color: #666;
}


/* =========================================================
   WORD + CHARACTER COUNTERS
========================================================= */

.azpa-as-word-counter,
.azpa-as-character-counter {
    margin-top: 7px;
    color: #555;
    font-size: 14px;
}

.azpa-as-word-counter strong {
    color: #022559;
}

.azpa-as-validation-message {
    margin-top: 5px;
    color: #b42318;
    font-size: 14px;
}


/* =========================================================
   WORDPRESS EDITOR
========================================================= */

.azpa-article-submission-form .wp-editor-wrap {
    margin-top: 5px;
}

.azpa-article-submission-form .wp-editor-container {
    border: 1px solid #cfcfcf;
}

.azpa-article-submission-form .mce-toolbar-grp {
    background: #f7f7f7;
}


/* =========================================================
   AGREEMENT
========================================================= */

.azpa-as-agreement {
    background: #f8f9fb;
}

.azpa-as-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.azpa-as-checkbox input {
    margin-top: 6px;
    flex: 0 0 auto;
}

.azpa-as-checkbox span {
    color: #333;
}


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

.azpa-as-submit {
    margin: 30px 0;
    text-align: center;
}

.azpa-as-submit-button {
    display: inline-block;
    min-width: 260px;
    padding: 15px 28px;
    border: 0;
    border-radius: 5px;
    background: #022559;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: opacity .2s ease;
}

.azpa-as-submit-button:hover:not(:disabled) {
    opacity: .9;
}

.azpa-as-submit-button:disabled {
    background: #a8adb5;
    color: #fff;
    cursor: not-allowed;
}

.azpa-as-submit-note {
    margin: 10px 0 0;
    color: #666;
    font-size: 14px;
}


/* =========================================================
   SUCCESS / ERROR MESSAGES
========================================================= */

.azpa-as-message {
    max-width: 900px;
    box-sizing: border-box;
    margin: 25px auto;
    padding: 18px 20px;
    border-radius: 5px;
}

.azpa-as-success {
    border: 1px solid #a6d8b2;
    background: #edf8f0;
    color: #175c28;
}

.azpa-as-error {
    border: 1px solid #efb1ad;
    background: #fff0ef;
    color: #9d211b;
}


/* =========================================================
   CONTRIBUTOR BYLINE
========================================================= */

.azpa-contributor-byline {
    margin: 0 0 28px;
    padding: 18px 20px;
    border-left: 4px solid #022559;
    background: #f5f7fa;
}

.azpa-contributor-label {
    margin-bottom: 5px;
    color: #022559;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.azpa-contributor-written-by {
    color: #111;
    font-size: 18px;
    line-height: 1.4;
}

.azpa-contributor-written-by strong {
    color: #022559;
}

.azpa-contributor-top-disclosure {
    margin-top: 4px;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   CONTRIBUTOR / AUTHOR BOX
========================================================= */

.azpa-contributor-box {
    margin: 45px 0 25px;
    border: 1px solid #dcdfe4;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.azpa-contributor-box-heading {
    padding: 13px 22px;
    background: #022559;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.azpa-contributor-box-inner {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 25px;
}

.azpa-contributor-logo {
    flex: 0 0 150px;
    text-align: center;
}

.azpa-contributor-logo-image {
    display: block;
    width: auto;
    max-width: 150px;
    max-height: 120px;
    margin: 0 auto;
    object-fit: contain;
}

.azpa-contributor-details {
    flex: 1;
    min-width: 0;
}

.azpa-contributor-company-name {
    margin: 0 0 5px !important;
    color: #022559 !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
}

.azpa-contributor-location {
    margin-bottom: 12px;
    color: #666;
    font-size: 14px;
}

.azpa-contributor-description {
    color: #222;
}

.azpa-contributor-description p {
    margin: 0 0 12px;
}

.azpa-contributor-website {
    margin-top: 15px;
}

.azpa-contributor-website-button {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 4px;
    background: #022559;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
}

.azpa-contributor-website-button:hover {
    opacity: .9;
}


/* =========================================================
   CONTRIBUTOR DISCLAIMER
========================================================= */

.azpa-contributor-disclaimer {
    padding: 16px 22px;
    border-top: 1px solid #e5e5e5;
    background: #f7f7f7;
    color: #666;
    font-size: 12px;
    line-height: 1.6;
}

.azpa-contributor-disclaimer strong {
    color: #444;
}


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

@media (max-width: 767px) {

    .azpa-article-submission-form {
        margin: 20px auto;
    }

    .azpa-as-section {
        padding: 20px;
    }

    .azpa-as-section h2 {
        font-size: 22px;
    }

    .azpa-as-submit-button {
        width: 100%;
        min-width: 0;
    }

    .azpa-contributor-box-inner {
        display: block;
        padding: 20px;
    }

    .azpa-contributor-logo {
        margin-bottom: 20px;
    }

    .azpa-contributor-logo-image {
        max-width: 140px;
    }

    .azpa-contributor-company-name {
        font-size: 21px !important;
    }

}