/* ================================
   Online Update Stm - Contact Us
================================ */

#stm-contact-page {
    --stm-primary: #1769e0;
    --stm-secondary: #084a9e;
    --stm-text: #263449;
    --stm-muted: #5d6b7e;
    --stm-border: #e5ebf3;

    width: 100%;
    max-width: 100%;
    margin: 25px 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--stm-text);
    line-height: 1.8;
}

#stm-contact-page *,
#stm-contact-page *::before,
#stm-contact-page *::after {
    box-sizing: border-box;
}

#stm-contact-page .stm-contact-container {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--stm-border);
    border-radius: 0px 0px 18px 18px;
    padding: 35px;
    box-shadow: 0 8px 30px rgba(20, 60, 110, 0.08);
}

#stm-contact-page .stm-contact-section {
    margin-bottom: 32px;
}

#stm-contact-page .stm-contact-section:last-child {
    margin-bottom: 0;
}

#stm-contact-page .stm-contact-section h2 {
    position: relative;
    margin: 0 0 15px;
    padding: 0 0 12px 15px;
    border-bottom: 1px solid var(--stm-border);
    font-size: 23px;
    line-height: 1.4;
    font-weight: 750;
    color: #123f78;
}

#stm-contact-page .stm-contact-section h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 12px;
    width: 4px;
    border-radius: 10px;
    background: linear-gradient(180deg, #1769e0, #0b4b9e);
}

#stm-contact-page .stm-contact-section p {
    margin: 0 0 13px;
    font-size: 15px;
    line-height: 1.9;
    color: var(--stm-text);
}

#stm-contact-page .stm-contact-section strong {
    color: #163f72;
}

/* Response time badge */
#stm-contact-page .stm-response-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 9px 16px;
    background: #eef5ff;
    border: 1px solid #dbe8fa;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: #145dc0;
}

/* FAQ grid (same card style as About Us content categories) */
#stm-contact-page .stm-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 18px;
}

#stm-contact-page .stm-faq-card {
    padding: 20px;
    background: #f7faff;
    border: 1px solid #e1eaf7;
    border-radius: 12px;
}

#stm-contact-page .stm-faq-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #1455a3;
}

#stm-contact-page .stm-faq-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--stm-muted);
}

/* Status message (shown after redirect back with ?status=) */
#stm-contact-page .stm-form-msg {
    display: none;
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 8px;
    font-size: 14px;
}

#stm-contact-page .stm-form-msg.stm-msg-success {
    background: #eafaf0;
    border: 1px solid #b6e8c8;
    color: #1e7a43;
}

#stm-contact-page .stm-form-msg.stm-msg-error {
    background: #fdecec;
    border: 1px solid #f3bcbc;
    color: #b13030;
}

/* Form fields */
#stm-contact-page .stm-form-row {
    margin-bottom: 16px;
}

#stm-contact-page .stm-form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #163f72;
}

#stm-contact-page .stm-form-row input[type="text"],
#stm-contact-page .stm-form-row input[type="email"],
#stm-contact-page .stm-form-row textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    color: var(--stm-text);
    background: #f7faff;
    border: 1px solid #e1eaf7;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#stm-contact-page .stm-form-row input:focus,
#stm-contact-page .stm-form-row textarea:focus {
    border-color: #a8c8f3;
    box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

#stm-contact-page .stm-form-row textarea {
    min-height: 140px;
    resize: vertical;
}

#stm-contact-page .stm-form-submit {
    display: inline-block;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #1769e0, #084a9e);
    border: none;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(23, 105, 224, 0.18);
    transition: all 0.25s ease;
}

#stm-contact-page .stm-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 105, 224, 0.3);
}

/* Honeypot field - hidden from real users, bots fill it */
#stm-contact-page .stm-hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

/* Mobile */
@media (max-width: 520px) {
    #stm-contact-page {
        margin: 10px 0;
    }

    #stm-contact-page .stm-contact-container {
        padding: 22px 16px;
        border-radius: 0px 0px 12px 12px;
    }

    #stm-contact-page .stm-contact-section h2 {
        font-size: 20px;
    }

    #stm-contact-page .stm-faq-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
