/* ------------------------------------------------------------
   Become a Contributor — application page
   ------------------------------------------------------------
   Same palette as the rest of the Articles system:
     navy  #0a2a4a   gold  #fcc50a

   NOTE: the guideline content block intentionally has almost no
   typography rules of its own — it uses the theme's existing
   .article-content / .generaldetails classes (the same ones
   single-article.php uses for the article body) so headings,
   paragraphs, and lists automatically match the rest of the
   site instead of needing to be redefined here.
------------------------------------------------------------ */

/* ==========================================================================
   HERO — H1 weight fix.
   Bootstrap's base "h1, .h1, h2, .h2..." rule sets font-weight:500
   and ties in specificity with style.css's own plain "h1{font-weight:700}"
   rule — on this page nothing else breaks that tie, so it was
   silently falling through to Bootstrap's 500 (Sora-SemiBold)
   instead of the site's real heading weight (Sora-Bold). This
   selector's specificity beats both, page-scoped, no style.css edit.
   ========================================================================== */
/* HERO — H1 fix: match Editorial hero exactly */
.heroinnerpages.ac-hero h1 {
    font-size: 66px !important;
    line-height: 83px !important;
    margin-bottom: 16px !important;
    font-weight: 700 !important;
}


/* ==========================================================================
   HERO — square background, no clip-path triangle.
   The global .heroinnerpages clip-path leaves white gaps on either
   side of the triangle before the bluish body section starts right
   after. Simplest fix: kill the clip-path entirely and let the
   background fill a plain rectangle, matching the rest of the
   Articles sections' full-rectangle look.
   ========================================================================== */
.heroinnerpages.ac-hero {
    clip-path: none !important;
    -webkit-clip-path: none !important;
    background-size: 100% 100% !important;
    background-position: center !important;
}

.ibm-contrib-section {
    padding: 20px 0 60px;
}

/* Layout only — no width cap, no font rules. Fills the column
   it's placed in rather than being artificially narrowed. */
.ibm-contrib-content {
    width: 100%;
    margin: 0 0 40px;
    text-align: left;
}

/* Reusable accent highlight — use <span class="ibm-highlight">
   in the page's Code/Text editor, NOT inline style="color:...".
   WordPress's TinyMCE strips raw inline styles on save even
   though the tag itself survives; a class doesn't have that
   problem. */
.ibm-contrib-content .ibm-highlight {
    color: #b33f00 !important;
    font-weight: 600;
}

/* Defensive — in case any global CSS reset weakens <strong>,
   make sure it always actually bolds inside this content block */
.ibm-contrib-content strong {
    font-weight: 700 !important;
}

.ibm-contrib-field input[type="file"] {
    width: 100%;
    box-sizing: border-box;
    border: 1px dashed #d3d8e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 13px;
    background: #f9fafb;
}

.ibm-contrib-field small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #6b7280;
}

.ibm-contrib-current-image {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
    color: #6b7280;
}

.ibm-contrib-current-image img {
    border-radius: 6px;
    border: 1px solid #e3e7ee;
}

/* wp_editor's own iframe has its own chrome — just make sure it
   doesn't look visually disconnected from the rest of the form */
.ibm-contrib-field .wp-editor-container {
    border: 1px solid #d3d8e0;
    border-radius: 8px;
    overflow: hidden;
}

.ibm-contrib-field .wp-editor-tabs {
    display: none; /* hide the Visual/Text toggle — keep it simple for contributors */
}

.ibm-contrib-tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 16px;
}

.ibm-contrib-tag-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}

/* Editorial rejection note shown when revising a submission */
.ibm-contrib-note {
    background: rgba(217, 142, 43, 0.1);
    border: 1px solid #d98e2b;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #7a5416;
}

.ibm-contrib-note p {
    margin: 6px 0 0;
}

.ibm-contrib-field-note {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}

/* Payment details box on the success screen (paid submissions) */
.ibm-contrib-payment-box {
    background: #fffaf0;
    border: 2px solid #fcc50a;
    border-radius: 16px;
    padding: 24px;
    margin-top: 20px;
}

.ibm-contrib-payment-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0a2a4a;
    margin: 0 0 12px;
}

.ibm-contrib-payment-box p {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin: 0 0 10px;
}

.ibm-contrib-payment-note {
    font-size: 12px !important;
    color: #6b7280 !important;
    font-style: italic;
}


.ibm-contrib-error {
    background: rgba(196, 90, 74, 0.1);
    border: 1px solid #c45a4a;
    color: #8a3a2f;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

/* ── FORM ── */
.ibm-contrib-form {
    background: #ffffff;
    border: 2px solid #fcc50a;
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(10, 42, 74, 0.08);
}

.ibm-contrib-field {
    margin-bottom: 18px;
}

.ibm-contrib-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0a2a4a;
    margin-bottom: 6px;
}

.ibm-contrib-field input[type="text"],
.ibm-contrib-field input[type="email"],
.ibm-contrib-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d3d8e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: #14213d;
    font-family: inherit;
}

.ibm-contrib-field input:focus,
.ibm-contrib-field textarea:focus {
    outline: none;
    border-color: #fcc50a;
    box-shadow: 0 0 0 3px rgba(252, 197, 10, 0.2);
}

.ibm-contrib-radio-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ibm-contrib-radio-col label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.ibm-contrib-radio-col input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.ibm-contrib-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #0a2a4a;
    color: #fcc50a !important;
    border: none;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ibm-contrib-submit-btn:hover {
    background: #123c68;
}

.ibm-contrib-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

/* ── SUCCESS STATE ── */
.ibm-contrib-success {
    background: #ffffff;
    border: 2px solid #2f9e6e;
    border-radius: 16px;
    padding: 40px 28px;
    text-align: center;
}

.ibm-contrib-success-icon {
    font-size: 40px;
    color: #2f9e6e;
    margin-bottom: 14px;
}

.ibm-contrib-success h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0a2a4a;
    margin-bottom: 10px;
}

.ibm-contrib-success p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

/* HERO — gold highlight for <strong> inside Become a Contributor hero */
.heroinnerpages.ac-hero strong,
.heroinnerpages.ac-hero b {
    color: #FCC50A !important;
    font-weight: 700 !important;
}
/* HERO — paragraph spacing fix */
.heroinnerpages.ac-hero p {
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 18px !important;
    color: rgba(255,255,255,0.88);
}
.heroinnerpages.ac-hero p:last-child {
    margin-bottom: 0 !important;
}
