/* =============================================================
   subpages.css  —  Supplemental styles for IMKT sub-pages
   Loaded in addition to indexmain.css on all pages except
   the landing page.
   ============================================================= */


/* ── Typography supplements ────────────────────────────────── */

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-top: 10px;
    margin-bottom: 15px;
}

ul.bullet-list {
    margin: 0 0 20px 25px;
    color: #555;
    font-size: 1.1rem;
}

ul.bullet-list li {
    margin-bottom: 8px;
}


/* ── Hero with logo (About, Portal, Contact pages) ──────────── */
/* Scoped classes so the plain .hero on the landing page is     */
/* unaffected.                                                   */

.hero-with-logo {
    position: relative;
}

.hero-logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
}

@media (max-width: 1100px) {
    .hero-logo {
        display: none;
    }
}


/* ── Portal page ────────────────────────────────────────────── */

.portal-categories {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.portal-category {
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-left: 4px solid #004488;
    padding: 20px 25px;
    border-radius: 4px;
}

.portal-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
    color: #333;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 10px;
}

.portal-category ul {
    list-style-type: none;
    padding-left: 0;
    margin: 0;
}

.portal-category ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.portal-category ul li::before {
    content: "\2022";
    color: #004488;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    position: absolute;
    left: 0;
}

.portal-category a {
    text-decoration: none;
    color: #004488;
}

.portal-category a:hover {
    text-decoration: underline;
}

.status-tag {
    font-size: 0.85em;
    color: #666;
    margin-left: 5px;
    background-color: #eee;
    padding: 2px 6px;
    border-radius: 3px;
}


/* ── Contact form (IMKT_contact.html and contact.html) ──────── */

.contact-intro {
    max-width: 700px;
    margin: 0 auto 10px;
    text-align: center;
}

.contact-form-wrap {
    max-width: 640px;
    margin: 0 auto;
    background-color: #fcfcfc;
    border: 1px solid #eaeaea;
    border-radius: 6px;
    padding: 35px 40px;
}

.form-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-field {
    flex: 1;
    min-width: 220px;
    margin-bottom: 20px;
    text-align: left;
}

.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 6px;
}

.form-field .required {
    color: #a33;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    color: #222;
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #7e3e97;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: #b33;
}

.field-error {
    display: none;
    color: #b33;
    font-size: 0.85rem;
    margin-top: 6px;
}

.form-field.has-error .field-error {
    display: block;
}

/* Honeypot field: off-screen rather than display:none so bots
   still fill it in (bots skip display:none but not off-canvas). */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Math CAPTCHA challenge */
.captcha-box {
    background-color: #f4f0f6;
    border: 1px dashed #c9b3d3;
    border-radius: 4px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.captcha-question {
    font-weight: 700;
    font-size: 1.05rem;
    color: #41204e;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 16px;
    min-width: 90px;
    text-align: center;
}

.captcha-row input[type="text"] {
    max-width: 120px;
}

.captcha-refresh {
    background: none;
    border: none;
    color: #7e3e97;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.captcha-refresh:hover {
    color: #005177;
}

.captcha-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 8px;
    margin-bottom: 0;
}

.form-footer {
    text-align: left;
}

.form-footer .button {
    width: 100%;
}

.form-footer .button:disabled {
    background-color: #b7a7bf;
    cursor: not-allowed;
}

.form-status {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-status.visible {
    display: block;
}

.form-status.success {
    background-color: #e6f4ea;
    color: #1e6b34;
    border: 1px solid #b6dfc2;
}

.form-status.error {
    background-color: #fbeaea;
    color: #942828;
    border: 1px solid #eec3c3;
}

@media (max-width: 600px) {
    .contact-form-wrap {
        padding: 25px 20px;
    }
}
